[CMake] cmake in MacPorts environment difficulties

Michael Jackson mike.jackson at bluequartz.net
Wed Jun 13 19:34:28 EDT 2018


CMake is looking for .app package and my guess is that the package being built is a "unix" style installation. If your project depends on just MacPorts you should be able to just do "make install" after setting the CMAKE_INSTALL_PREFIX=/opt/local. 

--
Mike Jackson

On 6/13/18, 4:17 PM, "CMake on behalf of Randolph Fritz" <cmake-bounces at cmake.org on behalf of rmfritz3 at gmail.com> wrote:

    I’ve been trying to add the Radiance lighting simulation package to the MacPorts package manager, and I am running into cmake problems.  I can build Radiance with cmake from the command line and from the CMake command line app, but when I write a MacPorts to build it, it falls down on install.  I include the log of errors (the entire log is voluminous.)  Does anyone have any ideas of why this is happening?  Any information about what to tell MacPorts or CMake to get more information?
    
    Randolph M. Fritz
    
    > :info:destroot -- fixup_bundle
    > :info:destroot --   app='/opt/local/bin/rvu'
    > :info:destroot --   libs='/opt/local/var/macports/build/_Users_rfritz_MacPorts_science_radiance/radiance/work/destroot/opt/local/bin/plugins/imageformats/libqgif.dylib;/opt/local/var/macports/build/_Users_rfritz_MacPorts_science_radiance/radiance/work/destroot/opt/local/bin/plugins/imageformats/libqico.dylib;/opt/local/var/macports/build/_Users_rfritz_MacPorts_science_radiance/radiance/work/destroot/opt/local/bin/plugins/imageformats/libqjpeg.dylib;/opt/local/var/macports/build/_Users_rfritz_MacPorts_science_radiance/radiance/work/destroot/opt/local/bin/plugins/imageformats/libqtiff.dylib;/opt/local/var/macports/build/_Users_rfritz_MacPorts_science_radiance/radiance/work/destroot/opt/local/bin/plugins/platforms/libqcocoa.dylib'
    > :info:destroot --   dirs='/opt/local/libexec/qt5/lib;/opt/local/lib'
    > :info:destroot --   ignoreItems=''
    > :info:destroot -- warning: *NOT* handled - directory/file does not exist...
    > :info:destroot CMake Error at /opt/local/share/cmake-3.11/Modules/BundleUtilities.cmake:966 (message):
    > :info:destroot   error: fixup_bundle: not a valid bundle
    > :info:destroot Call Stack (most recent call first):
    > :info:destroot   InstallRules/dependencies.cmake:14 (fixup_bundle)
    > :info:destroot   InstallRules/cmake_install.cmake:36 (include)
    > :info:destroot   cmake_install.cmake:47 (include)
    > :info:destroot -- fixup_bundle: done
    > :info:destroot make: *** [install/fast] Error 1
    > :info:destroot make: Leaving directory `/opt/local/var/macports/build/_Users_rfritz_MacPorts_science_radiance/radiance/work/build'
    > :info:destroot Command failed:  cd "/opt/local/var/macports/build/_Users_rfritz_MacPorts_science_radiance/radiance/work/build" && /usr/bin/make -w install/fast DESTDIR=/opt/local/var/macports/build/_Users_rfritz_MacPorts_science_radiance/radiance/work/destroot 
    > :info:destroot Exit code: 2
    
    -- 
    
    Powered by www.kitware.com
    
    Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
    
    Kitware offers various services to support the CMake community. For more information on each offering, please visit:
    
    CMake Support: http://cmake.org/cmake/help/support.html
    CMake Consulting: http://cmake.org/cmake/help/consulting.html
    CMake Training Courses: http://cmake.org/cmake/help/training.html
    
    Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
    
    Follow this link to subscribe/unsubscribe:
    https://cmake.org/mailman/listinfo/cmake
    




More information about the CMake mailing list