From: Gong, S. (Contractor) <Sha...@dr...> - 2007-11-21 19:57:44
|
Hi list, I am building gdal-1.4.0 on Linux. The reason that I am rebuilding gdal/openEV is that "ldd" showed that some .so pointing to /usr/local/lib/libsz.so, /usr/local/lib/libgdk-1.2.so, /usr/local/lib/libgtk-1.2.so, ... When I moved libsz.so and others out of /usr/local/lib/ I got the Make error. My steps 1) setenv LD_LIBRARY_PATH "/data/local_installations/lib" 2) gdal external format libraries (zlib-1.2.1, jpeg-6b, szip-2.0, HDF5/4) were installed libsz.so, libhdf5.so are in /data/local_installations/lib 3) ./configure --with-png=3Dinternal --with-libtiff=3Dinternal --with-gif=3Dinternal --with-geotiff=3Dinternal --with-libz=3D/data/local_installations --with-jpeg=3D/data/local_installations --with-hdf4=3D/data/local_installations --with-hdf5=3D/data/local_installations = --prefix=3D/data/local_installations make clean make make error message: g++: /usr/local/lib/libsz.so: no such file or directory make[1]: *** [libgdal.la] Error 1 in GDALmake.opt: LIBS =3D -L/usr/local/lib -lgeos -lgeos_c -ljasper -L/home/sgong/dev171/dist/lib -lhdf5 -L/home/sgong/dev171/dist/lib -lmfhdf -ldf -lsz -logdi31 -L/home/sgong/dev171/dist -L/home/sgong/dev171/dist/lib -ljpeg -L/usr/lib -lpq -lz -L/home/sgong/dev171/dist -L/home/sgong/dev171/dist/lib -lpthread -lm -lrt -ldl $(DWG_LIBS) $(SDE_LIB) $(CURL_LIB) $(IDB_LIB) (note /home/sgong/dev171/dist/ =3D /data/local_installations) Question: Does above "-lsz" point to an empty string in GDALmake.opt? and that is why "g++: /usr/local/lib/libsz.so: no such file or directory" error showed? =20 But I had already set "--with-libz" in config, should I edit GDALmake.opt? Thanks, Shawn |