DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Sat, 2017-11-25, 10:26

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri, 2017-08-04, 11:17 
Offline

Joined: Fri, 2017-08-04, 10:59
Posts: 2
I’m facing some problems with, DJLSDecoderRegistration::registerCodecs() (for JPEGLS), with information of unresolved external.
But I can operate with DJDecoderRegistration::registerCodecs() (JPEG Lossless), with no problem.

The error always occur in the line where I register codecs:
Code:
DJLSDecoderRegistration::registerCodecs()
.

I'm including:
Code:
#include "dcmtk/dcmjpls/djdecode.h"
#include "dcmtk/dcmjpeg/djdecode.h"
#include "dcmtk/dcmdata/dcrledrg.h"
#include "dcmtk/dcmimage/diregist.h"
#include "dcmtk/dcmjpls/djlsutil.h"
#include "dcmtk/dcmjpls/djcodecd.h"
#include "dcmtk/dcmjpls/djcparam.h"
#include "dcmtk/dcmjpls/djrparam.h"


I’m using DMTK 3.6.0 - MSVC 2015.

Compile output:
dcmjpls.lib(djcodecd.obj) : error LNK2019: unresolved external symbol _JpegLsDecode referenced in function "private: static class OFCondition __cdecl DJLSDecoderBase::decodeFrame(class DcmPixelSequence *,class DJLSCodecParameter const *,class DcmItem *,unsigned long,unsigned long &,void *,unsigned long,long,unsigned short,unsigned short,unsigned short,unsigned short)" (?decodeFrame@DJLSDecoderBase@@CA?AVOFCondition@@PAVDcmPixelSequence@@PBVDJLSCodecParameter@@PAVDcmItem@@KAAKPAXKJGGGG@Z)


Library linkage:
Code:
-loflog
-lofstd
-ldcmdata
-ldcmimgle
-ldcmimage
-lijg8
-lijg12
-lijg16
-ldcmjpeg
-ldcmjpls
-ldcmnet
-llibi2d
-ldcmdsig
-ldcmsr
-ldcmtls
-ldcmpstat
-ldcmwlm
-ldcmqrdb


I'm getting
Quote:
File not found: dcmjpls.lib(djcodecd.lib)
.
Can anyone help?

Thankyou in advance.


Top
 Profile  
 
PostPosted: Sun, 2017-08-06, 19:18 
Offline
DCMTK Developer

Joined: Fri, 2004-11-05, 13:47
Posts: 1635
Location: Oldenburg, Germany
Hi,

you are missing libcharls, the actual JPEG-LS implementation used by and shipped with DCMTK. Thus add "-lcharls" to the list of libraries.

Best regards,
Michael


Top
 Profile  
 
PostPosted: Tue, 2017-08-08, 12:04 
Offline

Joined: Fri, 2017-08-04, 10:59
Posts: 2
Michael Onken wrote:
Hi,

you are missing libcharls, the actual JPEG-LS implementation used by and shipped with DCMTK. Thus add "-lcharls" to the list of libraries.

Best regards,
Michael


Thank you so much Michael!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group