MantisBT - CMake
View Issue Details
0013003CMakeCPackpublic2012-02-28 20:492012-07-09 06:53
Dave Whipp 
Clinton Stimpson 
normalmajoralways
closedfixed 
Intel Mac (x86_64)Mac OS10.7.3
CMake 2.8.7 
 
0013003: Precompiled CPack update needed for compatibility with Xcode 4.3
When I attempt to use CPack to create a Mac application bundle it crashes attempting to find libraries/headers a directory tree location no longer used by Xcode (/Developer). I haven't tested many options, but the problem will occur every time it reaches the stage of creating the package using 'cpack -G DragNDrop'. I've been able to temporarily work around this issue by creating symbolic links from the location CPack is looking (/Developer/Headers) to the new location for Xcode 4.3 (/Applications/Xcode.app/Contents/Developer/Headers). If it matters, the specific program that I'm building is ParaView 3.14.0, configured using CMake and compiled using the GNU C and C++ compilers (with Qt 4.8.0).
After configuring using CMake and building with the GNU compilers, I attempt to create an application bundle by typing:
'cpack -G DragNDrop --config ParaView-3.14.0-Build/Applications/ParaView/CPackParaViewConfig.cmake'

The process runs for about 10-15 minutes before crashing with the following error message:
'...
CPack: Create package
CPack Error: Error executing: /bin/bash -c "/usr/bin/Rez /Developer/Headers/FlatCarbon/*.r '/Users/dwhipp/Build/_CPack_Packages/Darwin-i386/DragNDrop/sla.r' -a -o '/Users/dwhipp/Build/_CPack_Packages/Darwin-i386/DragNDrop/temp-udco.dmg'"
CPack Error: Error adding SLA.
### /usr/bin/Rez - SysError 0 during open of "/Developer/Headers/FlatCarbon/*.r".
Fatal Error!
### /usr/bin/Rez - Fatal Error, can't recover.
/Developer/Headers/FlatCarbon/*.r: ### /usr/bin/Rez - Since errors occurred, /Users/dwhipp/Build/_CPack_Packages/Darwin-i386/DragNDrop/temp-udco.dmg's resource fork was not completely updated.
/Developer/Headers/FlatCarbon/*.r: ### /usr/bin/Rez - SysError -43 during set file info.

CPack Error: Problem compressing the directory
CPack Error: Error when generating package: ParaView'

The obvious issue is that /Developer/Headers does not exist for Xcode 4.3, as noted above (now located at /Applications/Xcode.app/Contents/Developer/Headers).
No tags attached.
Issue History
2012-02-28 20:49Dave WhippNew Issue
2012-02-29 10:30Clinton StimpsonAssigned To => Clinton Stimpson
2012-02-29 10:30Clinton StimpsonStatusnew => assigned
2012-02-29 10:31Clinton StimpsonNote Added: 0028753
2012-02-29 10:31Clinton StimpsonStatusassigned => resolved
2012-02-29 10:31Clinton StimpsonResolutionopen => fixed
2012-07-09 06:53David ColeNote Added: 0029985
2012-07-09 06:53David ColeStatusresolved => closed

Notes
(0028753)
Clinton Stimpson   
2012-02-29 10:31   
5663e43 DragNDrop: Fix problem with relocated files in Xcode 4.3
(0029985)
David Cole   
2012-07-09 06:53   
Closing resolved issues that have not been updated in more than 4 months.