DJLSDecoderRegistration problem

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
esilva
Posts: 2
Joined: Fri, 2017-08-04, 10:59

DJLSDecoderRegistration problem

#1 Post by esilva »

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: Select all

DJLSDecoderRegistration::registerCodecs()
.

I'm including:

Code: Select all

#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: Select all

-loflog
-lofstd
-ldcmdata
-ldcmimgle
-ldcmimage
-lijg8
-lijg12
-lijg16
-ldcmjpeg
-ldcmjpls
-ldcmnet
-llibi2d
-ldcmdsig
-ldcmsr
-ldcmtls
-ldcmpstat
-ldcmwlm
-ldcmqrdb
I'm getting
File not found: dcmjpls.lib(djcodecd.lib)
.
Can anyone help?

Thankyou in advance.

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: DJLSDecoderRegistration problem

#2 Post by Michael Onken »

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

esilva
Posts: 2
Joined: Fri, 2017-08-04, 10:59

Re: DJLSDecoderRegistration problem

#3 Post by esilva »

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!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest