Registered Member
|
Dear all,
I download and compile the Marble from this link http://marble.kde.org/sources.php. Also, I install Qt5.1 by the Qt online installer. However, when I run the following command: " cmake -DCMAKE_BUILD_TYPE=Debug -DQTONLY=FALSE -DCMAKE_INSTALL_PREFIX=/usr/local ~/marble/sources " The compile reports the error as below: " Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindQt4.cmake:1171 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:249 (find_package) " Does the latest Marble only support Qt5? or there are some paths I need to configure? Regards Dizhi |
KDE Developer
|
Hi,
right now Qt 4.7 and Qt 4.8 are supported. There's work going on to support Qt 5 (should be both Qt 5.0 and 5.1 then) in the qt5 branch. Right now it's not completely done though (the branch is just one day old). Your distribution should have Qt 4.8 packages. On Ubuntu/Debian there's a package libqt4-dev for example. |
Registered Member
|
Hi EarthWings,
Thanks very much for your help. I tried "sudo apt-get install libqt4-dev" and then follow the install procedures in link http://marble.kde.org/sources.php. Then I successfully compile marble in my ubuntu12.04. However, when I run the /marble/sources/examples/cpp/hello-marbles/main.cpp follow the link http://marble.kde.org/dev-intro.php, there is an error below: " Could not find module FindMarble.cmake or a configuration file for package Marble. Adjust CMAKE_MODULE_PATH to find FindMarble.cmake or set Marble_DIR to the directory containing a CMake configuration file for Marble. The file will have one of the following names: MarbleConfig.cmake marble-config.cmake " I search this error online and someone say that install the KDE version will solve this. However, because I want to develop new modules based on Qt. Did you meet this error before? I'm new to Marble and plan to apply ESA SOCIS 2013 this year. Looking forward to your reply. Regards Dizhi
|
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]