Installing c:/msys/local/lib/libterralib. Installing c:/msys/local/lib/libterrajpeg.dll Open a Windows command prompt (there is a customised executable file mingw-w64.batfile inside the root of the specific MinGW-w64 release you have installed). Installing c:/msys/local/lib/libterratiff.dll Once a specific makefile for the MinGW-W64 GCC toolchain has been generated by CMake, the compilation process can be performed straightforwardly. It should build and end with a message like this: Now click 'Configure' again then 'Ok' again on the main cmakesetup dialog, then continue back at the command prompt: At the 'Build For' prompt that appears, choose 'Mingw Makefiles' then 'Ok'. In the dialog that appears, click 'Configure'.
+- lib Programs -> Qt by Trolltech v4.2.2 ( OpenSource) -> Qt 4.2.2 Command Prompt So before starting since we havent checked out terralibx and terralibw our source tree should look like this:Īfter we have finished, our source tree should look like this: Because of this we will use cmake build files I prepared to build the terralib modified version of libtiff and terralib. The win dir has only Visual Studio projects and the linux version has qmake project files that dont build properly under qmake / mingw. However neither of the buildfile dirs supplied is suitable. The terralib cvs server has the terralib sources and then 2 repositories containing project files for building under either windows (terralibw) or linux (terralibx). When you install ensure that you allow it to add cmake to your path.
Get the latest cmake windows installer from the cmake download page. Open terminal use: brew install valgrind cppcheck gcc make cmake emacs gdb. We will be using cmake to build terralib and the modified tiff library supplied with terralib. There are multiple options (MinGw, Cygwin, etc) but my preferred one is Msys2. When you run the installer be sure to check the option to download and install mingw. For example when writing this document I retrieved a file called 'qt-win-opensource-4.2.2-mingw.exe (about 44 Mb)'. Be sure to get the prebuilt binary with mingw, not the source bundle. Obtain the Qt4 installer from the Trolltech Downloads Page. We are going to be building using Qt4's qmake and mingw supplied with the Qt4 installation.
This document assumes that all source code will be checked out under c:\dev\cpp\terralibįirst create a working directory under c:\dev\cpp\terralib This page documents the process of building terralib under mingw.