Compiling on Mac OS X doesn't work

Feedback
Anonymous
2014-03-03
2014-03-03

  • Anonymous
    2014-03-03

    Hi

    Just to let you know that compiling on Mac OS X doesn't work. I followed the instruction on the Wiki for Mac OS X, installing Qt 5.2.1, macports and getting CMake and Bazaar. I already had the developer tools. Bazaar gets the source code just fine.

    However, CMake doesn't recognize Qt 5. After some digging it appears that there is no FindQt5 cmake file in the CMake package, there are a generic FindQt and Qt 3 and Qt4 files.

    There's also a complaint about OSX 10.9, at the top, for what it is worth.

    Best regards

    Sander van der Wal

    error output

    -- The C compiler identification is Clang 5.0.0
    -- The CXX compiler identification is Clang 5.0.0
    CMake Warning at /opt/local/share/cmake-2.8/Modules/Platform/Darwin.cmake:179 (message):
    Ignoring CMAKE_OSX_SYSROOT value:

    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

    because the directory does not exist.
    Call Stack (most recent call first):
    /opt/local/share/cmake-2.8/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
    CMakeLists.txt:5 (PROJECT)

    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    CMake Error at CMakeLists.txt:211 (FIND_PACKAGE):
    By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "Qt5Core", but
    CMake did not find one.

    Could not find a package configuration file provided by "Qt5Core" with any
    of the following names:

    Qt5CoreConfig.cmake
    qt5core-config.cmake
    

    Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
    "Qt5Core_DIR" to a directory containing one of the above files. If
    "Qt5Core" provides a separate development package or SDK, be sure it has
    been installed.

    -- Configuring incomplete, errors occurred!
    See also "/Users/svdwal/Programming/stellarium/builds/macosx/CMakeFiles/CMakeOutput.log".

     
  • Alexander Wolf
    Alexander Wolf
    2014-03-03

    Are you add path to Qt5 libraries into PATH variable - see point 6 in "Prepare Mac OS X to build Stellarium" list?

     


Anonymous


Cancel   Add attachments