[CMake] BundleUtilities Error on Install
Michael Jackson
mike.jackson at bluequartz.net
Tue Jan 4 15:37:47 EST 2011
Running on Windows 7 x64 with CMake 2.8.3 and Visual Studio 2008. My project is configured with the Win64 type. I am trying to consolidate my installation code to use the BundleUtilities on all platforms where possible. I can not figure out what is going wrong with the install project. Here is a transcript of the build:
#------------------------------------------------------------
5>Performing Post-Build Event...
5>-- Install configuration: "Debug"
5>-- Up-to-date: C:/Developer/x64/AIMRepresentation/lib/MXADataModel_debug.lib
5>-- Up-to-date: C:/Developer/x64/AIMRepresentation/./MXADataModel_debug.dll
5>-- Up-to-date: C:/Developer/x64/AIMRepresentation/lib/AIMCommon_debug.lib
5>-- Up-to-date: C:/Developer/x64/AIMRepresentation/./AIMCommon_debug.dll
5>-- Up-to-date: C:/Developer/x64/AIMRepresentation/./Microsoft.VC90.CRT.manifest
5>-- Up-to-date: C:/Developer/x64/AIMRepresentation/./msvcm90.dll
5>-- Up-to-date: C:/Developer/x64/AIMRepresentation/./msvcp90.dll
5>-- Up-to-date: C:/Developer/x64/AIMRepresentation/./msvcr90.dll
5>-- Up-to-date: C:/Developer/x64/AIMRepresentation/./Microsoft.VC90.DebugCRT.manifest
5>-- Up-to-date: C:/Developer/x64/AIMRepresentation/./msvcm90d.dll
5>-- Up-to-date: C:/Developer/x64/AIMRepresentation/./msvcp90d.dll
5>-- Up-to-date: C:/Developer/x64/AIMRepresentation/./msvcr90d.dll
5>-- Up-to-date: C:/Developer/x64/AIMRepresentation/./Representation_debug.exe
5>-- fixup_bundle
5>-- app='C:/Developer/x64/AIMRepresentation/./Representation_debug.exe'
5>-- libs=''
5>-- dirs='C:/Developer/x64/Qt-4.7.1/bin;C:/Developer/x64/Qt-4.7.1/lib;C:/Developer/x64/hdf5-169/bin;C:/Developer/x64/hdf5-169/lib;C:/Users/mjackson/Workspace/AIMRepresentation/x64/Bin;C:/Users/mjackson/Workspace/AIMRepresentation/x64/Bin/Debug;C:/Users/mjackson/Workspace/AIMRepresentation/x64/Bin/Release'
5>-- fixup_bundle: preparing...
5>-- fixup_bundle: copying...
5>-- 1/12: *NOT* copying 'C:/Developer/x64/AIMRepresentation/./Representation_debug.exe'
5>-- 2/12: copying 'C:/Developer/x64/AIMRepresentation/AIMCommon_debug.dll'
5>-- warning: resolved_item == resolved_embedded_item - not copying...
5>-- 3/12: copying 'C:/Developer/x64/AIMRepresentation/MXADataModel_debug.dll'
5>-- warning: resolved_item == resolved_embedded_item - not copying...
5>-- 4/12: copying 'C:/Developer/x64/AIMRepresentation/QtCored4.dll'
5>-- warning: resolved_item == resolved_embedded_item - not copying...
5>-- 5/12: copying 'C:/Developer/x64/AIMRepresentation/QtGuid4.dll'
5>-- warning: resolved_item == resolved_embedded_item - not copying...
5>-- 6/12: copying 'C:/Developer/x64/AIMRepresentation/hdf5dll_D.dll'
5>-- warning: resolved_item == resolved_embedded_item - not copying...
5>-- fixup_bundle: fixing...
5>-- 7/12: fix-up not required on this platform 'C:/Developer/x64/AIMRepresentation/./Representation_debug.exe'
5>-- 8/12: fix-up not required on this platform 'C:/Developer/x64/AIMRepresentation/AIMCommon_debug.dll'
5>-- 9/12: fix-up not required on this platform 'C:/Developer/x64/AIMRepresentation/MXADataModel_debug.dll'
5>-- 10/12: fix-up not required on this platform 'C:/Developer/x64/AIMRepresentation/QtCored4.dll'
5>-- 11/12: fix-up not required on this platform 'C:/Developer/x64/AIMRepresentation/QtGuid4.dll'
5>-- 12/12: fix-up not required on this platform 'C:/Developer/x64/AIMRepresentation/hdf5dll_D.dll'
5>-- fixup_bundle: cleaning up...
5>-- fixup_bundle: verifying...
5>-- ===========================================================================
5>-- Analyzing app='C:/Developer/x64/AIMRepresentation/./Representation_debug.exe'
5>-- bundle='C:/Developer/x64/AIMRepresentation/.'
5>-- executable='C:/Developer/x64/AIMRepresentation/./Representation_debug.exe'
5>-- valid='1'
5>-- executable file 1: C:/Developer/x64/AIMRepresentation/./Representation_debug.exe
5>-- verified='0'
5>-- info='external prerequisites found:
5>f='C:/Developer/x64/AIMRepresentation/./Representation_debug.exe'
5>external_prereqs='AIMCommon_debug.dll;MXADataModel_debug.dll;QtCored4.dll;QtGuid4.dll;hdf5dll_D.dll'
5>'
5>--
5>CMake Error at C:/Applications/CMake-2.8.3/share/cmake-2.8/Modules/BundleUtilities.cmake:743 (message):
5> error: verify_app failed
5>Call Stack (most recent call first):
5> C:/Applications/CMake-2.8.3/share/cmake-2.8/Modules/BundleUtilities.cmake:625 (verify_app)
5> AIM/GUI/cmake_install.cmake:61 (fixup_bundle)
5> cmake_install.cmake:34 (INCLUDE)
5>Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
5>Build log was saved at "file://c:\Users\mjackson\Workspace\AIMRepresentation\x64\INSTALL.dir\Debug\BuildLog.htm"
5>INSTALL - 1 error(s), 0 warning(s)
========== Build: 4 succeeded, 1 failed, 5 up-to-date, 0 skipped ==========
And here is the CMake code that I use to generate the cmake files:
# ---------- Build the Viewer Application ----------------------
ADD_EXECUTABLE( ${PROJECT_NAME} ${GUI_TYPE} ${Representation_PROJECT_SRCS} )
TARGET_LINK_LIBRARIES( ${PROJECT_NAME}
MXADataModel
AIMCommon
${QT_LIBRARIES} )
#------------------------------------------------------------------------------
# Add install rules for required system runtimes such as MSVCRxx.dll
SET (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP ON)
SET (CMAKE_INSTALL_DEBUG_LIBRARIES ON)
INCLUDE(InstallRequiredSystemLibraries)
IF (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS)
INSTALL(FILES ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}
DESTINATION .
PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ
COMPONENT Runtime)
ENDIF (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS)
set(_extension)
set(_dir ".")
IF(WIN32)
set(_extension ".exe")
set(_dir ".")
ENDIF(WIN32)
SET_TARGET_PROPERTIES( ${PROJECT_NAME}
PROPERTIES
DEBUG_OUTPUT_NAME ${PROJECT_NAME}${EXE_DEBUG_EXTENSION}
RELEASE_OUTPUT_NAME ${PROJECT_NAME}
)
INSTALL(TARGETS ${PROJECT_NAME}
COMPONENT Applications
RUNTIME DESTINATION .
LIBRARY DESTINATION .
ARCHIVE DESTINATION .
BUNDLE DESTINATION .
)
list(APPEND libSearchDirs
${QT_BINARY_DIR}
${QT_LIBRARY_DIR}
${HDF5_BINARY_DIR}
${HDF5_LIBRARY_DIR}
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Debug
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Release )
set(APPS "\${CMAKE_INSTALL_PREFIX}/${_dir}/${PROJECT_NAME}${EXE_DEBUG_EXTENSION}${_extension}") # paths to executables
INSTALL(CODE "
include(\"${CMAKE_ROOT}/Modules/BundleUtilities.cmake\")
fixup_bundle(\"${APPS}\" \"\" \"${libSearchDirs}\")
" COMPONENT Applications)
Any help is appreciated. At the end of the install all the files seem to be there but this error is stopping me from installing other applications.
___________________________________________________________
Mike Jackson www.bluequartz.net
Principal Software Engineer mike.jackson at bluequartz.net
BlueQuartz Software Dayton, Ohio
More information about the CMake
mailing list