close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Changes between Version 6 and Version 7 of CompileMINGW32


Ignore:
Timestamp:
Jan 29, 2015, 11:39:31 AM (10 years ago)
Author:
Jorge
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CompileMINGW32

    v6 v7  
    1212}}}
    1313
    14 Next install the required pakages and tools as describe below.
     14Next install the required packages and tools as described below.
    1515
    1616=== Subversion ===
     
    2525
    2626TOL depends on a set of external libraries provided by the open source community. All this libraries has been compiled with Rtool and packaged in a bundle. This package can be downloaded from [http://packages.tol-project.org/win32/development/TOL_DEVEL_MINGW32.rar TOL_DEVEL_MINGW32]. This package must be unpacked, for instance under {{{c:\users\toldevel}}}
     27
    2728=== Rtools ===
     29
     30[http://cran.r-project.org/bin/windows/Rtools/ Rtools] is a set of tools to compile R packages and R itself. We have chosen this tools to compile also TOL in order to make smoother the integration between TOL and R. You can download it from [http://cran.r-project.org/bin/windows/Rtools/Rtools31.exe Rtools download]. When installing accept all the suggested path and installation options.
     31
     32One more step is required, we need to download [http://packages.tol-project.org/win32/development/mingw32-make.exe mingw32-make.exe] and install it to {{{C:\Rtools\gcc-4.6.3\bin\}}}.
    2833
    2934=== CodeLite ===
    3035
    3136We recommend [http://codelite.org/ CodeLite] as a good IDE to develop TOL in windows because CMake is able to generate native workspace from the CMake configuration files. The configuration described next requires the instalation of this IDE which can be downloaded from [http://downloads.codelite.org/downloads.php?windows CodeLite download]. While installing it is not required to install the mingw32 compiler as we are going to use the compiler from Rtools.
     37
     38=== Download source code of TOL ===
     39
     40The source code of TOL can be downloaded with svn. For instance the main development branch (trunk) can be downloaded like:
     41
     42{{{
     43cd c:\users\toldevel
     44svn co https://www.tol-project.org/svn/tolp/trunk
     45}}}
     46
     47
     48=== Configuration of build process ===
     49
     50The build process is configured with CMake. The first step is to create the build directory where the CodeLite workspace and Makefile will be generated:
     51
     52{{{
     53mkdir c:\users\toldevel\trunk\Build\CodeLite\Debug
     54mkdir c:\users\toldevel\trunk\Build\CodeLite\Release
     55}}}
     56
     57Next move into the Debug directory and configure to build the debug flavor of TOL
     58
     59{{{
     60cd c:\users\toldevel\trunk\Build\CodeLite\Debug
     61cmake -DTOL_EXTERNAL_DEVEL_DIR=C:/users/toldevel/TOL_DEVEL_MINGW32 -DCMAKE_BUILD_TYPE=Debug -G"CodeLite - MinGW Makefiles" c:/users/toldevel/trunk/tol
     62}}}
     63
     64The release flavor is configured like:
     65
     66{{{
     67cd c:\users\toldevel\trunk\Build\CodeLite\Debug
     68cmake -DTOL_EXTERNAL_DEVEL_DIR=C:/users/toldevel/TOL_DEVEL_MINGW32 -DCMAKE_BUILD_TYPE=Release -G"CodeLite - MinGW Makefiles" c:/users/toldevel/trunk/tol
     69}}}
     70
     71At dis point we can run CodeLite IDE and open any of the workspaces generated at {{{Build\CodeLite\Debug}}} or {{{Build\CodeLite\Release}}}