[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
Hi,
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
-DSTATIC_BUILD=1
-DQT_DLL -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_TEST_LIB -DQT_XML_LIB
-DQT_NETWORK_L
IB -DQT_CORE_LIB -DQTONLY -D_USE_MATH_DEFINES
-I/C/QtSDK/Desktop/Qt/4.7.3/mingw/
include -I/C/QtSDK/Desktop/Qt/4.7.3/mingw/include/QtScript
-I/C/QtSDK/Desktop/Qt
/4.7.3/mingw/include/QtGui
-I/C/QtSDK/Desktop/Qt/4.7.3/mingw/include/QtTest -I/C
/QtSDK/Desktop/Qt/4.7.3/mingw/include/QtXml
-I/C/QtSDK/Desktop/Qt/4.7.3/mingw/in
clude/QtNetwork -I/C/QtSDK/Desktop/Qt/4.7.3/mingw/include/QtCore
-I/C/Users/akos
/src/marble -I/C/Users/akos/src/marble/src/lib
-I/C/Users/akos/src/marble/src/li
b/Projections -I/C/Users/akos/src/marble/src/lib/geodata
-I/C/Users/akos/src/mar
ble/src/lib/geodata/data
-I/C/Users/akos/src/marble/src/lib/geodata/graphicsitem
-I/C/Users/akos/src/marble/src/lib/geodata/handlers/dgml
-I/C/Users/akos/src/ma
rble/src/lib/geodata/parser
-I/C/Users/akos/src/marble/src/lib/geodata/writer -I
/C/Users/akos/src/marble/src/lib/geodata/scene
-I/C/Users/akos/src/marble/src/li
b/graphicsview
-I/C/Users/akos/src/marble/src/lib/graphicsview/screengraphicsite
m -I/C/Users/akos/src/marble-build/src
-I/C/Users/akos/src/marble-build/src/lib
-Wall -Wextra -Wundef -Wnon-virtual-dtor -Woverloaded-virtual
-Wno-long-long -
Wchar-subscripts -Wcast-align -Wpointer-arith -Wformat-security -o
CMakeFiles/ma
rble.dir/qrc_marble.obj -c /C/Users/akos/src/marble-build/src/qrc_marble.cxx
make[2]: *** No rule to make target
`C:/QtSDK/Desktop/Qt/4.7.3/mingw/plugins/ima
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?
Akos
More information about the Marble-devel
mailing list