This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Compile Marble in Ubuntu 12.04

Tags: None
(comma "," separated)
dizhizhou
Registered Member
Posts
4
Karma
0

Compile Marble in Ubuntu 12.04

Sat Jul 27, 2013 7:02 pm
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
User avatar
Earthwings
KDE Developer
Posts
172
Karma
1
OS
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.
dizhizhou
Registered Member
Posts
4
Karma
0

Re: Compile Marble in Ubuntu 12.04

Sun Jul 28, 2013 3:12 pm
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


Earthwings wrote: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.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]