Marble/MarbleWindows: Difference between revisions

From KDE TechBase
(work in progress)
 
(work in progress)
Line 2: Line 2:


#First of all you have to build marble following this method[[Projects/Marble/WindowsCompiling | "Compiling on Windows"]]
#First of all you have to build marble following this method[[Projects/Marble/WindowsCompiling | "Compiling on Windows"]]
#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 :<code>win32 {
#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 like this :<code>win32 {
     INCLUDEPATH += $$quote(C:/Program Files/marble/include/marble)
     INCLUDEPATH += $$quote(C:/Program Files/marble/include/marble)
     LIBS += $$quote(C:/Program Files/marble/libmarblewidget.dll)
     LIBS += $$quote(C:/Program Files/marble/libmarblewidget.dll)
Line 11: Line 11:
}</code>
}</code>
#(if you use .pro file then : )<code bash>qmake</code>
#(if you use .pro file then : )<code bash>qmake</code>
#then :<code bash>mingw32-make release</code> (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")
#then build it:<code bash>mingw32-make release</code> (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")
#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.
#Normally your application should be built 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.


-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]
-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 :
[[Image:creator.png]]
 
  [to be continued]

Revision as of 09:19, 4 June 2010

[ 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 like this :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 build it: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")
  3. Normally your application should be built 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.

-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 :

[to be continued]