[Marble-devel] issues with using the marble widget on windows / mingw / Qt 4.7.3

Ákos Maróy akos at maroy.hu
Tue Jun 28 12:10:59 CEST 2011


I'm trying to compile the C++ sample app for marbles, as found here: 
http://techbase.kde.org/Projects/Marble/MarbleCPlusPlus , on a Windows 7 
(64 bit) box.

I've installed Qt 4.7.3 for Windows, and created a simple project as 
described in the tutorial. Everything compiles fine (although only in 
release mode). but when I start the sample app, I get a window that is 
totally dark. Maybe it is not downloading the map data?

On a different side note, I tried to compile marble in static mode by 
adding -DSTATIC_BUILD=1 to the cmake command. but this compilation 
process fails:

[ 72%] Building CXX object src/CMakeFiles/marble.dir/qrc_marble.obj
cd /C/Users/akos/src/marble-build/src && /C/MinGW/bin/g++.exe 
include -I/C/QtSDK/Desktop/Qt/4.7.3/mingw/include/QtScript 
-I/C/QtSDK/Desktop/Qt/4.7.3/mingw/include/QtTest -I/C
clude/QtNetwork -I/C/QtSDK/Desktop/Qt/4.7.3/mingw/include/QtCore 
/src/marble -I/C/Users/akos/src/marble/src/lib 
b/Projections -I/C/Users/akos/src/marble/src/lib/geodata 
-I/C/Users/akos/src/marble/src/lib/geodata/writer -I
m -I/C/Users/akos/src/marble-build/src 
   -Wall -Wextra -Wundef -Wnon-virtual-dtor -Woverloaded-virtual 
-Wno-long-long -
Wchar-subscripts -Wcast-align -Wpointer-arith -Wformat-security -o 
rble.dir/qrc_marble.obj -c /C/Users/akos/src/marble-build/src/qrc_marble.cxx
make[2]: *** No rule to make target 
geformats/qjpeg.lib', needed by `src/marble.exe'.  Stop.
make[2]: Leaving directory `/c/Users/akos/src/marble-build'
make[1]: *** [src/CMakeFiles/marble.dir/all] Error 2
make[1]: Leaving directory `/c/Users/akos/src/marble-build'
make: *** [all] Error 2

and indeed, there is no libqjpeg or qjpeg among the Qt libraries. Maybe 
Qt does not come with static libraries by default?


More information about the Marble-devel mailing list