[CMake] how to configure OTB

海明 张 zhanghaiming54 at hotmail.com
Tue Jun 22 23:15:45 EDT 2010


Dear all,

 

I am trying to install OTB in windows xp. I tried several times using different GDAL. Each time I got different error. Anyone know how to install OTB please help me. The following are results what I got each time.

I use OTB of  OrfeoToolbox-3.2.1.zip in http://www.orfeo-toolbox.org/packages/ and the four GDAL in the same package. 

 

1. When I use  gdal-1.6.0-win32-vc8-Release, I got this error,

 

Disabling build shared lib option on windows like OS.

Could NOT find EXPAT (missing: EXPAT_LIBRARY EXPAT_INCLUDE_DIR)
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Could NOT find Boost
GDAL library found: C:/Downloads/gdal-1.6.0-win32-vc8-Release/lib/gdal.lib
Testing if GDAL has tiff -- yes
Testing if GDAL has geotiff -- yes
Testing if GDAL has jpeg -- no
CMake Error at CMakeLists.txt:588 (MESSAGE):
Cannot find jpeg library. Please set JPEG_LIBRARY.


Configuring incomplete, errors occurred!
 

 

 

2. When I use gdal-1.6.0-win32-vc71-debug, I got this error,

 

Disabling build shared lib option on windows like OS.

Could NOT find EXPAT (missing: EXPAT_LIBRARY EXPAT_INCLUDE_DIR)
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Could NOT find Boost
Found GDAL: C:/Downloads/gdal-1.6.0-win32-vc71-debug/lib/gdal.lib
GDAL library found: C:/Downloads/gdal-1.6.0-win32-vc71-debug/lib/gdal.lib
Testing if GDAL has tiff -- no
CMake Error at CMakeLists.txt:552 (MESSAGE):
Cannot find tiff library. Please set TIFF_LIBRARY.


Configuring incomplete, errors occurred!
 

 

3. When I use gdal-1.6.0-win32-vc71-release,  I got this error,

 

Disabling build shared lib option on windows like OS.

Could NOT find EXPAT (missing: EXPAT_LIBRARY EXPAT_INCLUDE_DIR)
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Could NOT find Boost
Found GDAL: C:/Downloads/gdal-1.6.0-win32-vc71-release/lib/gdal.lib
GDAL library found: C:/Downloads/gdal-1.6.0-win32-vc71-release/lib/gdal.lib
Testing if GDAL has tiff -- yes
Testing if GDAL has geotiff -- yes
Testing if GDAL has jpeg -- yes
Testing if GDAL has OGR -- no
CMake Error at CMakeLists.txt:604 (MESSAGE):
OGR MESSAGE: Change Dir: C:/OTB/CMake/CMakeFiles/CMakeTmp



Run Build Command:C:\PROGRA~1\MICROS~4\Common\MSDev98\Bin\MSDEV.COM
CMAKE_TRY_COMPILE.dsw /MAKE "cmTryCompileExec - Debug" /BUILD

--------------------Configuration: cmTryCompileExec - Win32
Debug--------------------

Compiling...
 
 
4.  When I use gdal-1.6.0-win32-vc90-debug, I got this error,
Disabling build shared lib option on windows like OS.
Could NOT find EXPAT (missing: EXPAT_LIBRARY EXPAT_INCLUDE_DIR)
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Could NOT find Boost
Found GDAL: C:/Downloads/gdal-1.6.0-win32-vc90-debug/lib/gdal.lib
GDAL library found: C:/Downloads/gdal-1.6.0-win32-vc90-debug/lib/gdal.lib
Testing if GDAL has tiff -- no
CMake Error at CMakeLists.txt:552 (MESSAGE):
Cannot find tiff library. Please set TIFF_LIBRARY.


Configuring incomplete, errors occurred!
 
And another question, how to "Disabling build shared lib option on windows like OS.". Thanks in advance.
 
Hai Ming
 
 		 	   		  
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100623/f6638452/attachment-0001.htm>


More information about the CMake mailing list