I tried to build DCMTK 3.6.1_20131114 on OSX and IOS on Maveriks with Xcode 5.1.
I'm using CMake 2.8.12.2 and for IOS I'm using the toolchain file I got from this useful project:
https://code.google.com/p/ios-cmake/source/checkout
(Note that you have to get the latest version from the source, not the downloadable version).
I generated the xcode projects for all the platforms,
but they resulted unreadable with xcode 5.1. I could not even open them.
After a bit of investigation I found the problem was in the DCMTK_BUILD_DATE define
that is uncorrectly set in the project file.
To make it short, my solution was to change the dcmtkPrepare.cmake file, line 130:
-ADD_DEFINITIONS("-DDCMTK_BUILD_DATE=\\\"2013-11-14\\\"")
+ADD_DEFINITIONS(-DDCMTK_BUILD_DATE="\\\\"2013-11-14\\\\"")
I don't know if you were already aware of this issue, I could not find any reference online. And I don't know
if this is the right way of doing it...but I just wanted to give you my contribution
D.
CMake + Xcode generator issue => fixed
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2503
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: CMake + Xcode generator issue => fixed
Thank you for the report and suggested fix. I can remember that this issue has already been reported in the past but it was not fixed yet. (I personally don't use Apple computers, so I could not test it myself).
Here's the commit: http://git.dcmtk.org/web?p=dcmtk.git;a= ... 410cf7ed34
So, the next snapshot (that uses the mentioned build date definition) should work out of the box
Here's the commit: http://git.dcmtk.org/web?p=dcmtk.git;a= ... 410cf7ed34
So, the next snapshot (that uses the mentioned build date definition) should work out of the box
Who is online
Users browsing this forum: Baidu [Spider] and 1 guest