INSTALL.MacOSX
上传用户:shenzhenrh
上传日期:2013-05-12
资源大小:2904k
文件大小:3k
源码类别:

信息检索与抽取

开发平台:

Unix_Linux

  1. If you are reading this, you got the code already.    
  2. If you have a source tarball
  3. see the README.MacOSX for how to get cvs code.
  4. In your BLT install, ensure you have a symlink bltGraph.tcl linked to graph.tcl.
  5. i.e. do this
  6. cd 'your BLT library directory'/lib/blt2.4
  7. ln -s graph.tcl bltGraph.tcl
  8. Xcode project build
  9. Edit $SRCROOT/macosx/configure.sh
  10. to reflect appropriate paths on your system.  The defaults will 
  11. reflect the paths for the binary installers from SDG.
  12. Open the Xcode project and build the targets:
  13. If you have cvs sources you will need to build autogen first then 
  14. config and buildlib in that  order.  
  15. If you started from a source tarball or have built autogen in the cvs
  16. sources then build Swarm, which build config and buildlib. 
  17. To start over delete everything in $SRCROOT/macosx/build.  You will save time
  18. by not deleting the swarmx.build folder which contains indexes.
  19. To install do 'make install' in the build directory.  You may need sudo according to your prefix.
  20. If you think IDEs are for wimps, try:
  21. cd $SRCROOT/macosx/build
  22. setenv MACOSX_DEPLOYMENT_TARGET 10.3    ('10.2' if building on Jaguar)
  23. ../../../autogen.sh
  24. ../../../configure 
  25. CC=cc 
  26. CFLAGS="g -O0 -Wno-long-double"   (plus any optimisation or debug flags)
  27. --prefix=/usr/local/Swarm2.2   (or some other install path)
  28. --with-tcldir='your tcl path' 
  29. --with-tkdir='your tk path 
  30. --with-bltdir='your BLT path' 
  31. --with-jdkdir=/System/Library/Frameworks/JavaVM.framework  (for Apple's JDK)
  32. --with-hdf5dir='your HDF5 path'
  33. --with-png='your libpng path' 
  34. --enable-onelib 
  35. --disable-fast-install 
  36. --disable-static 
  37.    
  38. make
  39. make install    (sudo may be needed if installing outside your home directory)
  40. That's it.
  41. You will need to fix up PATH, SWARMHOME and DYLD_LIBRARY_PATH to get the run 
  42. time linking to work.
  43. If you have admin right make a directory /Library/Swarm and copy the files 
  44. swarmrc and swarmtrc from $SWARMHOME/etc/swarm into the new directory.
  45. If you use bash (default on Panther) add the following line to ~/.profile:
  46. source /Library/Swarm/swarmrc
  47. If you use tcsh (default on Jaguar and earlier) add the following line to 
  48. ~/.tcshrc:
  49. source /Library/Swarm/swarmtrc
  50. Creat a new Terminal window and your environment should be set up correctly.
  51. About MacOS X libraries:
  52. MacOS X 10.3 Panther includes a system version of libtcl8.4.4 in /usr/lib.  If one of your other package libraries is in /usr/lib this directory will be added to the linker search and you may link to the system libtcl.  If this happens, you will see -L/usr/lib on the link line and any apps will crash as tk tries to startup.
  53. If you are using my Apple gcc-4.0 build, libffi should be specified at:
  54. /usr/lib/gcc/powerpc-apple-darwin/4.0.0
  55. At runtime it will actually laod /usr/lib/libff1.4.0.1.dylib.  If this confuses you try reading the Apple documentation on ld and dyld.
  56. If you have any fixes please let me know, and regularly update from the cvs so 
  57. that you get other developers fixes.  There is no kudos reinventing the wheel.
  58. NB. If you need to compile any GNU utilities ensure you have -no-cpp-precomp 
  59. as an option for any Apple compiler.
  60. Bill Northcott
  61. w.northcott@unsw.edu.au
  62. 29 Nov 2004