Marble/MarbleWindows

From KDE TechBase
Revision as of 15:49, 3 June 2010 by GarthPS (talk | contribs) (work in progress)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

[ tested with Qt sdk 2010.02.1 ( Qt 4.6.2 ; Qt Creator 1.3.1 ; MinGW 3.15 ; GCC4.4.0 ) ]

  1. First of all you have to build marble following this method "Compiling on Windows"
  2. Then your next step is to add the good path for building in your .pro file or in your Makefile. For example in yourproject.pro file add or modify :win32 {
   INCLUDEPATH += $$quote(C:/Program Files/marble/include/marble)
   LIBS += $$quote(C:/Program Files/marble/libmarblewidget.dll)

} unix {

   LIBS += -L/usr/local/lib \
   -lmarblewidget

}

  1. (if you use .pro file then : )qmake
  2. then :mingw32-make release (the "release" flag is important due to to a problem of qt debugging libs building for VC++. otherwise you will have this kind of error "Microsoft Visual C++ Runtime Library" "runtime error")
  3. Normally your application should be build but before to be able to launch it you have to copy libmarblewidget.dll near your .exe or to add its path to your system environment path. You also have to copy near your .exe the data\ and plugins\ directories otherwise you will have no maps and no download enabled.

-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 [to be continued]