Build install failed of MAC OS

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
miniplayground
Posts: 9
Joined: Mon, 2011-04-25, 02:56

Build install failed of MAC OS

#1 Post by miniplayground »

Hello, excuse me for my bad english.

I'm try to compile and build DCMTK 3.6 with CMake 2.8 and use XCode4(MAC OS arch x86_64 i386)

1.Compile DCMTK with CMake,configuration is OK.(I do not modify CMakeLists.txt )but I enable >> openssl, png, tiff, xml,zlib

2.Build DCMTK.xcodeproj choose "ALL_BUILD".I think it OK(have some warning)

3.In DCMTK project choose "install" and build again.I stuck,it have 1 error see below.(I'm not sure to build install.I must build the install class with XCode4?)

Code: Select all

/Applications/CMake\ 2.8-5.app/Contents/bin/cmake -DBUILD_TYPE=Debug -P cmake_install.cmake
-- Install configuration: "Debug"
CMake Error at cmake_install.cmake:31 (FILE):
  file cannot create directory: /usr/local/include/dcmtk/config.  Maybe need
  administrative privileges.


make: *** [install_buildpart_0] Error 1
Command /bin/sh failed with exit code 2

Advice me to solve problem,please

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

#2 Post by Michael Onken »

Hi,

you are not permitted to write to the path /usr/local/include/ path where DCMTK tries to install its files after building.

You can either
- get super user privileges and then start again or
- during CMake configuration, set CMAKE_INSTALL_PREFIX to the directory where you want to DCMTK installed (and where your current uses has the necessary rights to write files).

Best regards,
Michael

miniplayground
Posts: 9
Joined: Mon, 2011-04-25, 02:56

#3 Post by miniplayground »

Thank you.I'm try to do that and send feedback to you.

Best regards

miniplayground
Posts: 9
Joined: Mon, 2011-04-25, 02:56

#4 Post by miniplayground »

It GREAT!!!

I set CMAKE_INSTALL_PREFIX and it don't have an error.


Next,I want to use DCMTK library on my iPhone app.Could DCMTK work on iPhone.Advice me please.

Best regards.

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

#5 Post by Michael Onken »

It can. Search the forum. However, it is not easy and I am not in the position to explain it completely since I did not try myself.

Michael

miniplayground
Posts: 9
Joined: Mon, 2011-04-25, 02:56

#6 Post by miniplayground »

Thank you,Michael

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest