HELP!!! How can I compile DCMTK on Xcode 3.0??

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
DICOMNICO
Posts: 12
Joined: Thu, 2008-04-24, 09:22

HELP!!! How can I compile DCMTK on Xcode 3.0??

#1 Post by DICOMNICO »

Hi, I would like to understand how can I compile DCMTK on Xcode 3.0?
I've download the source package and now? How can I do? Thanks for your answer....

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1459
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

There is no support in DCMTK for compiling it on Xcode. On Mac OS X, like on any other Posix platform, use configure/make/make install as documented in the installation instructions in file dcmtk/INSTALL in the source code distribution.

DICOMNICO
Posts: 12
Joined: Thu, 2008-04-24, 09:22

#3 Post by DICOMNICO »

Thanks for your answer, I compiled using the UNIX commands, now
theory should be able to write my application linking the
libraries compiled exact?

Per
Posts: 99
Joined: Mon, 2007-09-03, 10:53
Location: Trondheim, Norway
Contact:

#4 Post by Per »

If you use the compiled libraries with Xcode you may need to add

#undef verify

before adding any DCMTK #include directives.

DICOMNICO
Posts: 12
Joined: Thu, 2008-04-24, 09:22

#5 Post by DICOMNICO »

Hi Per, I try your solution but when I compile my test program the compiler return this error message:

"DcmFileFormat::DcmFileFormat()", referenced from:
_main in main.o
"DcmFileFormat::~DcmFileFormat()", referenced from:
_main in main.o
_main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Do you have an idea of what is this? Thank you so much!

Per
Posts: 99
Joined: Mon, 2007-09-03, 10:53
Location: Trondheim, Norway
Contact:

#6 Post by Per »

I have no idea what that is. I should also say I have never actually tested DCMTK with Xcode 3.0, only the previous generation.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1459
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#7 Post by Marco Eichelberg »

ld: symbol(s) not found
That should be pretty clear, shouldn't it? The linker is unable to resolve all symbols, which means that you are not linking all libraries needed. Specifically, libdcmdata where DcmFileFormat is defined and libofstd which is needed by libdcmdata.

DICOMNICO
Posts: 12
Joined: Thu, 2008-04-24, 09:22

#8 Post by DICOMNICO »

Yes, sure! But I included all the necessary libraries and I don't know why the linker can't find them...

valley
Posts: 9
Joined: Fri, 2006-07-14, 19:18

#9 Post by valley »

How did you include them?

Are you sure the lib binaries are for the same platform as your XCode project?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest