[CMake] Cmake/MacPackaging
David Cole
david.cole at kitware.com
Wed Apr 30 14:15:32 EDT 2008
The error message comes from the CPack PackageMakerGenerator regarding these
settings:
SET(CPACK_RESOURCE_FILE_LICENSE "/Users/pashov_d/dev/aten/COPYING")
SET(CPACK_RESOURCE_FILE_README "/usr/local/CMake
2.7-20080430.app/Contents/share/cmake-2.7/Templates/CPack.GenericDescription.txt")
SET(CPACK_RESOURCE_FILE_WELCOME "/usr/local/CMake
2.7-20080430.app/Contents/share/cmake-2.7/Templates/CPack.GenericWelcome.txt")
Try naming your COPYING file with a txt extension: "COPYING.txt" (Or...
configure COPYING into your binary tree as "COPYING.txt" and then reference
that as your CPACK_RESOURCE_FILE_LICENSE setting.)
These files get displayed in the installer generated by the PackageMaker
generator. CPack is trying to ensure that the installer will know how to
display the file inside its UI. That's why the limitation on the types of
the files used for this setting with the PackageMaker generator.
HTH,
David
On Wed, Apr 30, 2008 at 1:58 PM, Alin M Elena <alin.elena at qub.ac.uk> wrote:
> Hi,
>
> I try to package an application on Mac.
>
> The tar get generated correctly but not the .dmg or .pkg files.
>
> 1. In the case of .dmg I get a file but not the one that I expect.
> the binary file that gets added in the dmg is not my target binary.
>
> the structure of the .dmg file is
>
> aten-0.97.1-Darwin
> Contents/
> ---->Info.plist
> ---->MacOS/
> ------->aten-0.97.1-Darwin (some strange binary)
> ---->Resources
> ------->bin/
> ---------->aten (the good binary)
> ------->RuntimeScript
> -------> share (all good stuff as expected)
>
> 2. In the case of the .pkg file I get a very strange error
> CPack: Create package using PackageMaker
> CPack: Install projects
> CPack: - Run preinstall target for: aten
> CPack: - Install project: aten
> CPack: Compress package
> CPack Error: Bad file extension specified: . Currently only .rtfd, .rtf,
> .html, and .txt files allowed.
> CPack Error: Problem copying the resource files
> CPack Error: Problem compressing the directory
> CPack Error: Error when generating package: aten
> make: *** [package] Error 1
>
>
> I attach the CMakeLists.txt file and the CPack.Config.cmake
>
>
> Any idea what I do wrong?
>
> Alin
>
>
>
>
>
>
>
> --
> ______________________________________________________________________
> "...if the universities will not study useless subjects, who will?"
> G. F. Fitzgerald, Nature, 45/46, 392 (1892)
> ______________________________________________________________________
> Mr. Alin M. ELENA
> Atomistic Simulation Centre
> School of Mathematics and Physics
> Queen's University Belfast
> Office: +44 (0)28 9097 1428
> Fax: +44 (0)28 9097 5359
> http://titus.phy.qub.ac.uk/group/Alin/
> alin.elena at yahoo.co.uk
> alin.elena at qub.ac.uk
> ______________________________________________________________________
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080430/e6b04a92/attachment-0001.htm>
More information about the CMake
mailing list