install DCMTK

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Kaori
Posts: 4
Joined: Wed, 2014-08-13, 16:29

install DCMTK

#1 Post by Kaori »

Hello.

I'm a beginner of programing.
My problem is how to install DCMTK.

I succeeded in building DCMTK and get the folder.
Now, I can not understand how to install DCMTK.
In some manuals, is is written that do 'make install'.
But, where to write the command? terminal??

My computer environment is:
Mac OS 10.9.1
CMake 3.0.1
ITK 4.6.0
DCMTK 3.6.0
Xcode 5.1.1

Any informations will help me.
Thanks a lot.

Kaori

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: install DCMTK

#2 Post by Jan Schlamelcher »

The steps necessary to install DCMTK depend on your setup. From what you posted i would think you typed 'make' in a terminal to build DCMTK after you configured it using CMake. So you may type 'make install' in a terminal from the same location to install DCMTK to a directory specified by CMAKE_INSTALL_PREFIX.

Kaori
Posts: 4
Joined: Wed, 2014-08-13, 16:29

Re: install DCMTK

#3 Post by Kaori »

Thank you for your reply.

I'm sorry I misunderstood.
I've just done configuration of DCMTK with CMake.

I type 'make' in terminal at the directory which made by configuration
but the error message (under description) appeared.

Code: Select all

make: *** No targets specified and no makefile found.  Stop.
I also try to use Xcode, and open DCMTK.xcodeproj, choose "ALL_BUILD".
But it stopped with a error "undeclared use of identifier 'Init' " for the code.

Code: Select all

  if (Init(pixel))
What is the problem of me?

Kaori

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: install DCMTK

#4 Post by Jan Schlamelcher »

Kaori wrote:But it stopped with a error "undeclared use of identifier 'Init' " for the code.
Code:
if (Init(pixel))

What is the problem of me?
You did nothing wrong, thats a known issue on MacOS, fixed in this commit. So maybe use the latest snapshot instead of DCMTK 3.6.0.

Kaori
Posts: 4
Joined: Wed, 2014-08-13, 16:29

Re: install DCMTK

#5 Post by Kaori »

Thanks a lot.

I download the snap shot (dcmtk-3.6.1_20140617).
Compiling was done normally.
But, I can't open DCMTK.xcodeproj.
(the error message: DCMTK.xcodeproj cannot be opened because the project file cannot be parsed.)

It looks similar to previous fixed topic (Post subject: CMake + Xcode generator issue => fixed).

Other Xcode projects can be opened with my Mac.

Are there any ideas to solve this problem?

Best Regards,
Kaori

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: install DCMTK

#6 Post by Jan Schlamelcher »

I'm sorry, but i never worked with Xcode, so i can't help you with that. Maybe try using the makefile generator instead.

Kaori
Posts: 4
Joined: Wed, 2014-08-13, 16:29

Re: install DCMTK

#7 Post by Kaori »

I think I succeeded in installing by typing 'make' and 'make install' at terminal.
Thanks a lot.

Sincerely,
Kaori

zeta520
Posts: 1
Joined: Thu, 2014-09-18, 11:07
Location: Taiwan

Re: install DCMTK

#8 Post by zeta520 »

When i use my compiled library (*.a) in my ios project,
it cause some error like below

Code: Select all

Undefined symbols for architecture x86_64:
  "_opendir$INODE64", referenced from:
      OFStandard::dirExists(OFFilename const&) in libofstd.a(ofstd.o)
      OFStandard::searchDirectoryRecursively(OFFilename const&, OFList<OFFilename>&, OFFilename const&, OFFilename const&, bool) in libofstd.a(ofstd.o)
  "_readdir$INODE64", referenced from:
      OFStandard::searchDirectoryRecursively(OFFilename const&, OFList<OFFilename>&, OFFilename const&, OFFilename const&, bool) in libofstd.a(ofstd.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does any one have the same problem?
please help me.

OS X SDK: 10.9.5
iOS SDK: 8.0
Xcode: 6.0.1
Cmake: 3.0.2
dcmtk-3.6.1_20140617

Sincerely,
Ken
Stay Hungry, Stay Foolish.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest