[CMake] Question about BundleUtilities

Clinton Stimpson clinton at elemtech.com
Fri Oct 22 13:00:03 EDT 2010


On Friday, October 22, 2010 10:33:12 am Marco Nolden wrote:
> On 10/22/2010 05:30 PM, David Cole wrote:
> > On Fri, Oct 22, 2010 at 11:22 AM, Marco Nolden
> > 
> > <m.nolden at dkfz-heidelberg.de <mailto:m.nolden at dkfz-heidelberg.de>> wrote:
> >     On 10/19/2010 11:26 PM, David Cole wrote:
> > What is the exact problem here? Mac or Linux? You said it works after
> > "make install" but then the copied libs do not end up in the CPack
> > package? (By default, CPack just does a make install to construct its
> > install tree for packaging. Are you overriding it somehow?)
> 
> No override, minimal CPack configuration, I added just a
> "include(CPack)" without any extra configuration.
> 
> Mac:
> 
> 1. After "make install" the fixup_bundle copies all external libraries
> (e.g. ITK in our little test project) to the install tree and all paths
> are fixed correctly.
> 2. I added just a include(CPack) without extra configuration.
> 3. "cpack -G DragNDrop" shows some extra debug output from fixup_bundle
> we added. The paths in these messages are referring to the install tree,
> so I guess the script is working there.
> But: in the binary tree there is a folder
> _CPack_Packages/Darwin/DragNDrop/Project-0.1.1-Darwin which contains
> just the executable and the libraries which have explicit INSTALL(TARGET
> ) commands, none of the external prerequisites that got pulled in by
> fixup_bundle.
> 
> Linux:
> CPack: Create package using TGZ
> CPack: Install projects
> CPack: - Run preinstall target for: Project
> CPack: - Install project: Project
> CMake Error at /home/nolden/bundle-test-src/BundleUtilities.cmake:745
> (message):
>    error: verify_app failed
> Call Stack (most recent call first):
>    /home/nolden/bundle-test-src/BundleUtilities.cmake:627 (verify_app)
>    /home/nolden/bundle-bin/main/cmake_install.cmake:99 (fixup_bundle)
>    /home/nolden/bundle-bin/cmake_install.cmake:40 (INCLUDE)
> 
> CPack Error: Error when generating package: Project
> 
> Same situation here: everthing fine in the install dir, but in the
> _CPack_Packages folder the external libraries are missing.

You can run cpack -V to get more information.
Maybe you have absolute paths somewhere, such as expanding 
CMAKE_INSTALL_PREFIX too soon preventing cpack from specifying its own.

Clint


More information about the CMake mailing list