Hello, 

I am sorry, but I tried to build all with shared libs as suggested, but I 
got this when I run ccmake command:

CMake Error at CMake/ImportGdal.cmake:166 (message):
   OGR MESSAGE: Change Dir:
   /home/lwasquel/OTB/OTB-Binary/CMake/CMakeFiles/CMakeTmp



   Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"

   /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
   CMakeFiles/cmTryCompileExec.dir/build

   gmake[1]: Entering directory
   `/polescArray0/home/lwasquel/OTB/OTB-Binary/CMake/CMakeFiles/CMakeTmp'

   /usr/local/bin/cmake -E cmake_progress_report
   /home/lwasquel/OTB/OTB-Binary/CMake/CMakeFiles/CMakeTmp/CMakeFiles 1

   Building CXX object CMakeFiles/cmTryCompileExec.dir/TestGDALHasOGR.cxx.o

   /usr/bin/c++ -O3 -DNDEBUG -I/usr/local/include
   -I/home/lwasquel/gdal-1.10.1/gcore -o
   CMakeFiles/cmTryCompileExec.dir/TestGDALHasOGR.cxx.o -c
   /home/lwasquel/OTB/OTB_code_source/OTB/CMake/TestGDALHasOGR.cxx

   Linking CXX executable cmTryCompileExec

   /usr/local/bin/cmake -E cmake_link_script
   CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1

   /usr/bin/c++ -O3 -DNDEBUG
   CMakeFiles/cmTryCompileExec.dir/TestGDALHasOGR.cxx.o -o cmTryCompileExec
   -rdynamic /home/lwasquel/gdal-1.10.1/.libs/libgdal.so
   -Wl,-rpath,/home/lwasquel/gdal-1.10.1/.libs

   /home/lwasquel/gdal-1.10.1/.libs/libgdal.so: undefined reference to
   `inflateCopy@ZLIB_1.2.0'

   collect2: ld returned 1 exit status

   gmake[1]: *** [cmTryCompileExec] Error 1

   gmake[1]: Leaving directory
   `/polescArray0/home/lwasquel/OTB/OTB-Binary/CMake/CMakeFiles/CMakeTmp'

   gmake: *** [cmTryCompileExec/fast] Error 2

 Call Stack (most recent call first):
   CMakeLists.txt:206 (include)

I seeked a solution on the OTB mailing list and on GDAL FAQ, but I didn't 
find exactly the same problem.

I configured gdal with the next command:

./configure --prefix=/home/lwasquel --with-libtiff=internal 
--with-geotiff=internal  --with-rename-internal-libtiff-symbols=yes 
--with-rename-internal-libgeotiff-symbols=yes
then I built with "make" command.
When I launch the gdalinfo --version, I got:

/home/lwasquel/gdal-1.10.1/apps/.libs/lt-gdalinfo: /usr/lib64/libz.so.1: no 
version information available (required by 
/home/lwasquel/gdal-1.10.1/.libs/libgdal.so.1)
GDAL 1.10.1, released 2013/08/26

There is much time between my posts because I tried to solve the issue on 
my own.
I have read posts about the fact that I got "libz.so: no version 
information available" but it seems to be only a warning and should not 
raise issues (according to what I read).

Is it my gdal installation which is erroneous and cause the problem? or 
does it come from my OTB cmake configuration?

Regards, 
Loïc



-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to