|
InstallingMarbleForWindows
Instructions to install the Marble library needed to develop Tonatiuh under Windows XP, Windows Vista or Windows 7.
IntroductionMarble is a Virtual Globe and World Atlas. As a library, it is used within Tonatiuh to provide the geographical positioning functionalities needed, among other things, to facilitate the user the task of specifying the location on Earh of the solar concentrating systems she or he wants to analyze. Here you will find instructions to install the Marble library in your computer and make this library available for the development of Tonatiuh. DetailsTo compile Marble you need CMake -a cross-platform make. To obtain it follow this link to go to the CMake webpage. Once you reach de webpage, click on the link titled "cmake-2.8.7-win32-x86.exe", which is the CMake binary installer for Windows (see Figure 1). This will start the downloading of the CMake installer. When prompted, select the appropriate option to store the excutable file in your computer. Then, left-click twice on the installer and install CMake at the folder "C:\sde\CMake".
Now, you need to download the latest stable version of the Marble source code which is marble-1.2.0. To do it, download a compressed archive of the source code from Marble download web page at this link. After downloading the marble source code, using the MSYS shell navigate to the marble directory just created in your computer and type: export QTDIR=/c/sde/Qt/Desktop/Qt/4.7.4/mingw export PATH=$QTDIR/bin:$PATH:/c/sde/CMake/bin The command to create Makefiles on release mode is: cmake -G"MSYS Makefiles" -Wno-dev -DQTONLY=ON -DCMAKE_BUILD_TYPE=Release ../marble Then, make Copy Marble include files to the folder "/local/include/marble". mkdir -p /usr/local/include/marble cp src/lib/*.h /usr/local/include/marble cp src/lib/blendings/*.h /usr/local/include/marble cp src/lib/geodata/*.h /usr/local/include/marble cp src/lib/geodata/data/*.h /usr/local/include/marble cp src/lib/geodata/graphicsitem/*.h /usr/local/include/marble cp src/lib/geodata/handlers/dgml/*.h /usr/local/include/marble cp src/lib/geodata/handlers/gpx/*.h /usr/local/include/marble cp src/lib/geodata/handlers/kml/*.h /usr/local/include/marble cp src/lib/geodata/handlers/osm-namefinder/*.h /usr/local/include/marble cp src/lib/geodata/parser/*.h /usr/local/include/marble cp src/lib/geodata/scene/*.h /usr/local/include/marble cp src/lib/geodata/writer/*.h /usr/local/include/marble cp src/lib/geodata/writers/kml/*.h /usr/local/include/marble cp src/lib/graphicsview/*.h /usr/local/include/marble cp src/lib/graphicsview/screengraphicsitem/*.h /usr/local/include/marble cp src/lib/Projections/*.h /usr/local/include/marble cp src/lib/routing/*.h /usr/local/include/marble Copy executable files to the folder "/local/local/bin". cp src/marble.exe /usr/local/bin cp src/tilecreator/tilecreator.exe /usr/local/bin cp src/lib/geodatatest.exe /usr/local/bin Copy main library files to the appropriate "/usr/local" folders. cp src/lib/libmarblewidget.dll /usr/local/bin cp src/lib/libmarblewidget.dll.a /usr/local/lib Copy Marble plugins to the folder "/usr/local/bin/marble". mkdir -p /usr/local/bin/marble cp src/plugins/network/qnam/libQNamNetworkPlugin.dll /usr/local/bin/marble cp src/plugins/render/compass/libCompassFloatItem.dll /usr/local/bin/marble cp src/plugins/render/crosshairs/libCrosshairsPlugin.dll /usr/local/bin/marble cp src/plugins/render/graticule/libGraticulePlugin.dll /usr/local/bin/marble cp src/plugins/render/mapscale/libMapScaleFloatItem.dll /usr/local/bin/marble cp src/plugins/render/navigation/libNavigationFloatItem.dll /usr/local/bin/marble cp src/plugins/render/overviewmap/libOverviewMap.dll /usr/local/bin/marble cp src/plugins/render/photo/libPhoto.dll /usr/local/bin/marble cp src/plugins/render/progress/libProgressFloatItem.dll /usr/local/bin/marble cp src/plugins/render/stars/libStarsPlugin.dll /usr/local/bin/marble cp src/plugins/render/weather/libWeather.dll /usr/local/bin/marble cp src/plugins/render/wikipedia/libWikipedia.dll /usr/local/bin/marble At the end of the process, the Marble dynamic library "libmarblewidget.dll" and the programs "marble.exe" and "tilecreator.exe" will be installed at the folder "C:\sde\MinGW\msys\1.0\local\bin". The plugins "ibCompassFloatItem.dll", "libCrosshairsPlugin.dll", "libGeoRendererPlugin.dll", "libMapScaleFloatItem.dll", "libNavigationFloatItem.dll", "libOverviewMap.dll", and "libStarsPlugin.dll" will be installed at the folder "C:\sde\MinGW\msys\1.0\local\bin\marble" and the Marble library file "libmarblewidget.dll.a" will be installed at the folder "C:\sde\MinGW\msys\1.0\local\lib". In addition, the necessary include files will be installed at the folder "C:\sde\MinGW\msys\1.0\local\include\marble". Once the Marble library is installed the next step is to install the Eclipse Integrated Development Environment (IDE). To do it, follow the instructions in the following wiki page: Installing and Configuring Eclipse | ||
