(add an introduction) |
m |
||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
In this page you will find instructions on how to build a Marble widget application on Windows. | In this page you will find instructions on how to build a Marble widget application on Windows. | ||
| Line 31: | Line 29: | ||
[[Image:WINdesigner.png]] | [[Image:WINdesigner.png]] | ||
Take a look [[Projects/Marble/MarbleDesigner | here]] for some more details. | Take a look [[Projects/Marble/MarbleDesigner | here]] for some more details. | ||
| + | |||
| + | |||
| + | [ tested with Qt sdk 2010.02.1 ( Qt 4.6.2 ; Qt Creator 1.3.1 ; MinGW 3.15 ; GCC4.4.0 ) ] | ||
In this page you will find instructions on how to build a Marble widget application on Windows.
win32 {
INCLUDEPATH += $$quote(C:/Program Files/marble/include/marble) LIBS += $$quote(C:/Program Files/marble/libmarblewidget.dll)
} unix {
LIBS += -L/usr/local/lib \ -lmarblewidget
}
qmake
mingw32-make release (the "release" flag is important due to to a problem of qt debugging libs built for VC++. Otherwise you will have this kind of error : "Microsoft Visual C++ Runtime Library" "runtime error")
So here it is. You know how to build it in a console!
- Building it in Qt Creator should not be very difficult. The important part is to configure your project to call ming32-make with the "release" flag :
Then you should be able to use Qt Creator as usually.
- The next step you could want to do is to use marble widget plugin in Qt Designer.
(Note: here is how to use it in Qt Designer in standing alone; not the version embedded in Qt Creator. I have tried every configuration without being able to make it work that way. So here is only the way to do it in Qt Designer directly).
When you have installed Marble It should have copy the needed plugins in "C:\Qt\2010.02.1\qt\plugins\designer" but those plugins need libmarblewidget.dll to be accessible. So, like what we did for your application, we need to copy libmarblewidget.dll and "data\" next to "C:\Qt\2010.02.1\qt\bin\designer.exe" ( and eventually "plugins\" if we want to be able to download tiles when using marble widget in Qt Designer... ). Once this is done, you should have Marble's plugins available in Qt Designer:
Take a look here for some more details.
[ tested with Qt sdk 2010.02.1 ( Qt 4.6.2 ; Qt Creator 1.3.1 ; MinGW 3.15 ; GCC4.4.0 ) ]