Changes between Version 1 and Version 2 of MacOS
- Timestamp:
- Jan 26, 2009, 12:32:44 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MacOS
v1 v2 1 = Compiling !MapServer on !MacOS X =1 = Compiling !MapServer on MacOS X = 2 2 3 3 (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.) … … 7 7 Another 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. 8 8 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 withMapServer) --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) -- 10 10 11 11 * 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 … … 14 14 o libjpeg-6b 15 15 * 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 yourMapServer 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. 17 17 * GDAL 1.1.5 (for raster data support). Maintained by Frank Warmerdam at http://www.remotesensing.org/gdal. 18 18 * 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 support19 * 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 22 22 23 23 == Compiling on OS 10.2 == … … 28 28 These are not detailed instructions, just a list of 'gotchas' that I (Sean Gillies, sgillies@frii.com) have encountered: 29 29 30 GD-2.0.1 30 ==== GD-2.0.1 ==== 31 31 32 32 Unless 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. 33 33 34 PROJ-4.4.5 34 ==== PROJ-4.4.5 ==== 35 35 36 36 The 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. … … 38 38 It seems that there *is* a darwin target by installing proj-4.4.6 on darwin6.4 (OS X v10.2.4). 39 39 40 GDAL-1.1.7 40 ==== GDAL-1.1.7 ==== 41 41 42 42 Unless 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. 43 43 44 Libwww-5.4.0 44 ==== Libwww-5.4.0 ==== 45 45 46 46 This 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. 47 47 48 Mapserver 48 ==== !MapServer ==== 49 49 50 50 I'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.