Changes between Version 1 and Version 2 of DavesWindowsBuild


Ignore:
Timestamp:
Feb 21, 2013, 9:05:31 AM (11 years ago)
Author:
dburken
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DavesWindowsBuild

    v1 v2  
    1010
    1111'''Environment variables'''[[BR]]
    12 I put my build environment in a separate file that I source.  I do this because I have more than one workspace, i.e. osgeo, geoeye, geoeye-dev.  This is a snip from ossim-vs10.bat file:[[BR]]
     12I put my build environment in a separate file that I source.  I do this because I have more than one workspace, i.e. osgeo, geoeye, geoeye-dev.  Usually I'll put this in D:\dev directory.  Contents of ossim-vs10.bat file:[[BR]]
    1313{{{
    1414:: File: ossim-vs10.bat
    1515
    1616:: Forward slashes for use with cmake and nmake.
    17 set OSSIM_DEV_HOME_FS=D:/drb/vs10_x86
     17set OSSIM_DEV_HOME_FS=D:/dev/vs10_x86
    1818
    1919:: Backward Slash windows things.  We'll use MS for MicroSoft.
    20 set OSSIM_DEV_HOME=D:\drb\vs10_x86
     20set OSSIM_DEV_HOME=D:\dev\vs10_x86
    2121
    2222set OSSIM_DEPENDENCIES=%OSSIM_DEV_HOME%\local
     
    2424set OSSIM_PREFS_FILE=%OSSIM_DEV_HOME%\ossim-prefs
    2525set QTDIR=D:\Qt3.2
    26 set PATH=D:\cmake\cmake-2.8.10.2-win32-x86\bin;%OSSIM_DEV_HOME%\build\bin;%OSSIM_DEV_HOME%\local\bin;C:\Program Files (x86)\XEmacs\XEmacs-21.4.22\i586-pc-win32;D:\Qt3.2\bin;%PATH%
     26set PATH=D:\cmake\cmake-2.8.10.2-win32-x86\bin;%OSSIM_DEV_HOME%\build\bin;%OSSIM_DEV_HOME%\local\bin;C:\Program Files (x86)\XEmacs\XEmacs-21.4.22\i586-pc-win32;D:\Qt\4.8.4\bin;%PATH%
    2727}}}
    2828
     29
     30
     31'''Make a workspace:'''[[BR]]
     32
     33// Top level, this is OSSIM_DEV_HOME:[[BR]]
     34D:\> mkdir dev\vs10_x64
     35
     36[[BR]]
     37// ossim build dir:[[BR]]
     38D:\> cd dev\vs10_x64
     39D:\dev\vs10_x64> mkdir build
     40
     41// Sandbox for 3rd party dependencies:[[BR]]
     42D:\dev\vs10_x64> mkdir deps[[BR]]
     43
     44
     45'''Building'''[[BR]]
     46
     47// Source the bat file for environment variables.[[BR]]
     48D:\> D:\dev\ossim-vs10.bat
     49
     50First time through check out code.  Note I don't like to check out the whole trunk so I do pieces.
     51
     52I always build geos, libtiff, geotiff, gdal from the latest.  You don't have to, it's up to you.  Most of these you can get from yum but I find the code is usually way behind.
     53
     54NOTE: Things I build with cmake I use an "out of source" build so I put in a sub directory of the package.
     55
     56'''geos:'''[[BR]]
     57// Needed by ossim.[[BR]]
     58> mkdir %OSSIM_DEV_HOME%\geos[[BR]]
     59> cd %OSSIM_DEV_HOME%\geos[[BR]]
     60// Get code from svn or optionally download a release.[[BR]]
     61> svn co http://svn.osgeo.org/geos/trunk geos-svn[[BR]]
     62
     63// Make a cmake config script[[BR]]
     64> xemacs geos-cmake-config.bat // Use whatever editor you want, notepad, whatever...[[BR]]
     65// Contents of script:[[BR]]
     66
     67{{{
     68::---
     69:: File: geos-cmake-config.bat
     70::---
     71
     72:: Development root dir:
     73set dev=%OSSIM_DEV_HOME_FS%
     74
     75cmake -G "NMake Makefiles" ^
     76-DCMAKE_BUILD_TYPE=Release ^
     77-DCMAKE_INSTALL_PREFIX=%dev%/deps ^
     78../geos-svn
     79}}}
     80
     81> mkdir build // "out of source" build dir[[BR]]
     82> cd build[[BR]]
     83
     84// Run the cmake command to set up the build system:[[BR]]
     85> ..\geos-cmake-config.sh
     86
     87// Make:[[BR]]
     88> nmake
     89
     90// Install to sandbox:[[BR]]
     91$ nmake install
     92
     93// End of GEOS