Re: [Tcl-nap-users] Trouble installing Nap
Brought to you by:
dav480,
peter_turner
From: <Pet...@cs...> - 2008-06-02 05:01:10
|
Hi Steve, To solve the problem with proj_api.h you need to install PROJ4 (see http://trac.osgeo.org/proj/) You will probably need to make PROJ4 from source. I suggest creating a directory called proj at the same level as tcl. Install the PROJ4 libarries into proj/use. You will need to rerun the confiugure for nap and if you wathc it it should find proj4. You will also need to have created netCDF and HDF libraries for nap to make from source. These libraries should be inplace before you run the nap configure. You can use a similar approach to them as for PROJ4. Unfortunately there is a twist with the netCDF and HDF libraries because there are name clashes at link time. These issues are not related to nap but rather compatibility issues between netCDF and HDF. If you follow the instructions in the NOTES file and use the config.sh script to compile netCDF you should be OK. If you are trying to build against Tcl/TK 8.5+ (see comments below about interp in napImgNAO.c) there will be an issue requiring a minor code modification to support changes to the Tk interface to photo images. Finally the production of the documentation will probably blowup at the end. Getting the documentation to generate properly requires all the right applications on your system and some systems it is very difficult to achieve. Once you get it built you will find it quite powerfull but there is a definite learning curve. A couple of tips: 1. Generally be careful with spaces in Tcl 2. Remember that the Tcl parser has a go at the nap statements before the nap parser so braces can get removed etc unless protected with quotes. 3. Doing things like "set x [nap 3 + 5]" will not work properly, nap x = 3 + 5 as well as assigning a pointer to the data object increment the data object reference count and put a trace on x. If x is unset (unset x) the reference count on the nao object is decremented and the object deletes itself when the reference count is zero. If you use set thiongs get deleted when they should nat and also get left around when they should not. If you have any further problems with making from source email the list and hopefully I should be able to help. I am not sure what is going on with version 6.2.2 but there can be library issues with different version of Linux. Cheers Peter PS I have included some detail which might help > Instructions for loading nap from scratch for Solaris 10 > > (In the examples I am installing things under the directory > /rsj0.... - you need to modify this to suit your environment 0. Make an installation of Tcl/Tk under /rsj0/tcl 0.5 Download and install PROJ4 > > 1. download HDF 4.x and netCDF source code and untar > (HDF 5 not supported at present) > > 2. HDF > download HDF 4.2r3 > download Szip Zlib and JPEG. > I managed to build Zlib, Slib and JPEG. > I installed JPEG and Zlib OK but Slib gave the message: > > Make: Fatal Error: command failed for target 'install-am' > Error code 1 > The following command caused that error: > Failcom='exit 1'; \ > For f in $MAKEFLAGS; do\ > > Etc. > > I ended up getting a precompiled version of slib from Sun Free and > loading the library components into /usr/local/lib > > Edit hlimits.h in nap/generic > > #define MAX_NC_NAME H$_MAX_NC_NAME > Note this is a new problem caused by some changes in the latest netCDF and HDF release > > I then configured HDF > > ./configure --prefix=/rsj0/hdf/use --disable-netcdf > > Make > Make install > > For netcdf I ran a script (I called it config.sh) > > CPPFLAGS='-DNO_NETCDF_2'\ > CXX='' \ > FC='' \ > F90=''\ > ./configure --prefix=/rsj0/nc/use > > > The make and make install > > You now have to download the PROJ4 software and make sure it > gets installed under your equivalent of /rsj0/tsl/lib > > At this point you can either build tcl/tk 8.5+ from scratch > or download precomplied binaries from active state > > Once you have all this done you can search for tcl-nap on > source forge and use their cvs instructions to create a new > repository on your machine (I created this under rsj0/tcl) > > Do your configures etc and then make > > At this point the make will fail with references to a > function parameter mismatch in napImgNAO.c (generic) > > You need to edit this and put in "interp, " in the two > places the compiler complains about: > The first is: > > Tk_PhotoExpand(imageHandle, .. > > Becomes > Tk_PhotoExpand(interp, imageHandle, .. > > Once you have fixed this and the other occurrence you should > have a successful build on nap 6.4.1 > > You should run a make test at this point and there should be > no errors. > > Then edit the Makefile (under unix) looking for "install" > > Install: install-binaries ... Install-doc ... > > Unless you can figure out all the stuff doc wants get rid of > the install-doc This means you do not get any doc. There are > doc bits there that you may be able to do something with but > we found setting up the stuff to make the doc impossible on > Sun and you may have the same problem on the HP. > You could get a binary release and copy the documentation to > the correct place to overcome this problem. -----Original Message----- From: tcl...@li... [mailto:tcl...@li...] On Behalf Of Steve Huntley Sent: Monday, 2 June 2008 12:29 PM To: tcl...@li... Subject: [Tcl-nap-users] Trouble installing Nap Hi, I'd like to try using Nap, but I'm having trouble installing it: 1.) There is no Linux i386 installer file downloadable for Nap 6.4.0 2.) I tried to build Nap 6.4.0 from source, but after running configure, make gave the following error: make: *** No rule to make target `proj_api.h', needed by `cart_proj.o'. Stop. 3.) I tried to use the Linux i386 installer for nap version 6.2.2, but I got the following error: no files matched glob pattern "/home/blacksqr/myinstall/applications/nap/include*" while executing "glob $dst/include*" invoked from within "if {$dst ne ""} { if {$tcl_platform(machine) ne "ia64" } { set include [file tail [lindex [glob $dst/include*] end]] foreach dir "bin $include l..." (file "/home/blacksqr/download/nap6_2_2Linux_i386_install/lib/app-nap6_2_2Linu x_i386_install/nap6_2_2Linux_i386_install.tcl" line 64) invoked from within "source /home/blacksqr/download/nap6_2_2Linux_i386_install/lib/app-nap6_2_2Linux _i386_install/nap6_2_2Linux_i386_install.tcl" ("package ifneeded" script) invoked from within "package require app-nap6_2_2Linux_i386_install" ------------------------------------------------------------------------ ---------------------- Any help that could be provided in overcoming these problems would be greatly appreciated. Thanks, Steve Huntley ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Tcl-nap-users mailing list Tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcl-nap-users |