DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Mon, 2017-12-18, 21:07

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri, 2017-08-25, 09:02 
Offline

Joined: Wed, 2017-06-07, 15:03
Posts: 2
Hello everybody,

I'm newbie in DCMTK. I'm doing a program that read a webcam using OpenCV and then send it to Slicer using OpenIgtlink.

My problem is that I don't get to include the DCMTK library in my program. In my C++ program I have:

Code:
#include "igtlOSUtil.h"
#include "igtlImageMessage2.h"
#include "igtlClientSocket.h"


#include "dcmtk/dcmdata/dctk.h"

int main(int argc, char* argv[])
{
....

DcmFileFormat format;

....


and I try to compile with the next command:

Code:

g++ *.c* -o openSeek `pkg-config libseek --libs --cflags` -I/usr/local/include/dcmtk/ -L/usr/local/lib -fpermissive -pthread -ldcmdata



but I get the next error message:

Code:
/usr/bin/ld: /usr/local/lib/libdcmdata.a(dcistrmz.cc.o): referencia sin definir al símbolo 'inflateInit2_'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libz.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status


I don't know what is happening.

Can somebody help me?

Thank you very much
Jorge


Top
 Profile  
 
PostPosted: Mon, 2017-09-04, 16:26 
Offline
OFFIS DICOM Team
OFFIS DICOM Team

Joined: Mon, 2014-03-03, 09:51
Posts: 223
Location: Oldenburg, Germany
You probably need to also link against the zlib, i.e.
Code:
-lz
should do the trick.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: Bing [Bot] 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