Changes between Version 1 and Version 2 of MacOS


Ignore:
Timestamp:
Jan 26, 2009, 12:32:44 PM (15 years ago)
Author:
jmckenna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MacOS

    v1 v2  
    1 = Compiling !MapServer on !MacOS X =
     1= Compiling !MapServer on MacOS X =
    22
    33(New link for building on Macos 10.3.x is at bottom of this document.) (New link for building on Macos 10.2.3 is at bottom of this document.)
     
    77Another good place to visit is http://www.darwinfo.org which has available additional developer tools that Apple forgot ;-) to include. Btw, 10.1.2 comes with Apache, Perl, and PHP pre-installed.
    88
    9 MapServer itself depends upon other libraries of software to do the many things it does. Some of these are (version numbers given here are the latest that are known to work with MapServer) --
     9!MapServer itself depends upon other libraries of software to do the many things it does. Some of these are (version numbers given here are the latest that are known to work with !MapServer) --
    1010
    1111    * gd 1.8.4 (mandatory) available at http://boutell.com. The easiest instructions for building gd on MacOS X are at http://www.stepwise.com/Articles/Workbench/2001-06-12.01.html
     
    1414          o libjpeg-6b
    1515    * libtiff
    16     * PostgresQL? (for PostGIS support). The best and easiest PostgresQL? installation package for MacOS X has been created by Marc Liyanage at http://www.entropy.ch. Marc's website is also the best source for a MySQL installation package for MacOS X if MySQL support is required in your MapServer website.
     16    * PostgresQL? (for PostGIS support). The best and easiest !PostgresQL installation package for MacOS X has been created by Marc Liyanage at http://www.entropy.ch. Marc's website is also the best source for a MySQL installation package for MacOS X if MySQL support is required in your !MapServer website.
    1717    * GDAL 1.1.5 (for raster data support). Maintained by Frank Warmerdam at http://www.remotesensing.org/gdal.
    1818    * Proj 4.4.4
    19     * Perl for MapScript support. Perl 5.6.0 is already built and installed with 10.1. If Perl 5.6.1 is desired then it needs to be built from scratch. Notes coming soon.
    20     * PHP 4.0.6 for MapScript support. PHP is already built and installed with 10.1. PHP/Mapscript? will not work on OS X at this time because dynamic libraries are not yet supported on PHP on MacOS X. See link http://developer.apple.com/internet/macosx/php.html. Also, keep in mind that PHP/MapScript? does not yet work with PHP 4.1.x. Latest information on PHP/MapScript? is available at http://www.dmsolutions.ca where Daniel Morrisette maintains it.
    21     * FreeType? 1.3.1 for Truetype font support
     19    * Perl for !MapScript support. Perl 5.6.0 is already built and installed with 10.1. If Perl 5.6.1 is desired then it needs to be built from scratch. Notes coming soon.
     20    * PHP 4.0.6 for !MapScript support. PHP is already built and installed with 10.1. !PHP/Mapscript will not work on OS X at this time because dynamic libraries are not yet supported on PHP on MacOS X. See link http://developer.apple.com/internet/macosx/php.html. Also, keep in mind that !PHP/MapScript does not yet work with PHP 4.1.x. Latest information on !PHP/MapScript is available at http://www.dmsolutions.ca where Daniel Morrisette maintains it.
     21    * !FreeType 1.3.1 for Truetype font support
    2222
    2323== Compiling on OS 10.2 ==
     
    2828These are not detailed instructions, just a list of 'gotchas' that I (Sean Gillies, sgillies@frii.com) have encountered:
    2929
    30 GD-2.0.1
     30==== GD-2.0.1 ====
    3131
    3232Unless you really want WBMP, disable it when you configure. I built libgd as static and shared object (.so), but not as a .dylib. I've found that gd-2.0.1 works well with the libfreetype that comes with XDarwin and is installed under /usr/X11R6/lib.
    3333
    34 PROJ-4.4.5
     34==== PROJ-4.4.5 ====
    3535
    3636The configure script for proj-4 doesn't work properly for OS X. There's no *darwin* target and this leaves you a bit stranded when it comes to building shared libs. I built a static libproj.a and link against it. The apps ('cs2cs' etc) work fine.
     
    3838It seems that there *is* a darwin target by installing proj-4.4.6 on darwin6.4 (OS X v10.2.4).
    3939
    40 GDAL-1.1.7
     40==== GDAL-1.1.7 ====
    4141
    4242Unless you really want the Python mod, disable it when you configure. You'll need to make some changes to your GDALmake.opt file. I added -DPROJ_STATIC to the C- and CXX_OPTFLAGS. You may need to add -dl to the LIBS. Your LD_SHARED should be = g++ -dynamiclib.
    4343
    44 Libwww-5.4.0
     44==== Libwww-5.4.0 ====
    4545
    4646This seemed to build OK, but I wasn't able to link it to mapserver. Haven't had time to work it out, so I'm not using it for now.
    4747
    48 Mapserver
     48==== !MapServer ====
    4949
    5050I've been able to build mapserver from the July 22 2002 CVS without too much trouble. You will probably need to use g++ as your linker rather than gcc, so this means replacing CC with CXX further towards the end of the makefile where the mapserver utilities are being linked. If you are getting errors like 'missing symbol __gxx_personality_v0', then you need to replace CC with CXX.