Initially, I compile the OTB-SuperBuild.sln in vs 2010 just by running
"build solution", and I got lots of errors.
After that, I began to compile these projects one by one, and the following
project cannot be compiled successfully.
the detail is just as following:
Project[GDAL]------------------1
after run "buld only GDAL", I get the output as following:
=======================================
1> cpl_vsi_mem.cpp
1> cpl_http.cpp
1>cpl_http.cpp(36): fatal error C1083: Cannot open include file:
'curl/curl.h': No such file or directory
1> cpl_hash_set.cpp
1> Generating Code...
1> Compiling...
1> cplkeywordparser.cpp
1> cpl_recode.cpp
1> cpl_recode_iconv.cpp
1> cpl_recode_stub.cpp
1> cpl_quad_tree.cpp
1> cpl_vsil_gzip.cpp
1> cpl_minizip_ioapi.cpp
1> cpl_minizip_unzip.cpp
1> cpl_minizip_zip.cpp
1> cpl_vsil_subfile.cpp
1> cpl_atomic_ops.cpp
1> cpl_time.cpp
1> cpl_vsil_stdout.cpp
1> cpl_vsil_sparsefile.cpp
1> cpl_vsil_abstract_archive.cpp
1> cpl_vsil_tar.cpp
1> cpl_vsil_curl.cpp
1>cpl_vsil_curl.cpp(70): fatal error C1083: Cannot open include file:
'curl/curl.h': No such file or directory
1> cpl_vsil_curl_streaming.cpp
1>cpl_vsil_curl_streaming.cpp(47): fatal error C1083: Cannot open include
file: 'curl/curl.h': No such file or directory
1> cpl_vsil_stdin.cpp
1> cpl_vsil_buffered_reader.cpp
1> Generating Code...
1> Compiling...
1> cpl_vsil_cache.cpp
1>cpl_vsil_cache.cpp(238): warning C4244: 'argument' : conversion from
'vsi_l_offset' to 'unsigned int', possible loss of data
1>cpl_vsil_cache.cpp(293): warning C4244: 'argument' : conversion from
'vsi_l_offset' to 'unsigned int', possible loss of data
1>cpl_vsil_cache.cpp(310): warning C4244: 'argument' : conversion from
'vsi_l_offset' to 'unsigned int', possible loss of data
1>cpl_vsil_cache.cpp(369): warning C4244: 'argument' : conversion from
'vsi_l_offset' to 'unsigned int', possible loss of data
1>cpl_vsil_cache.cpp(412): warning C4244: 'argument' : conversion from
'vsi_l_offset' to 'unsigned int', possible loss of data
1>cpl_vsil_cache.cpp(417): warning C4244: 'argument' : conversion from
'vsi_l_offset' to 'unsigned int', possible loss of data
1>cpl_vsil_cache.cpp(433): warning C4244: 'argument' : conversion from
'vsi_l_offset' to 'unsigned int', possible loss of data
1>cpl_vsil_cache.cpp(440): warning C4244: 'argument' : conversion from
'vsi_l_offset' to 'unsigned int', possible loss of data
1> cpl_base64.cpp
1> cpl_xml_validate.cpp
1> cpl_spawn.cpp
1> cpl_google_oauth2.cpp
1> cpl_progress.cpp
1> cpl_virtualmem.cpp
1> cpl_odbc.cpp
1> Generating Code...
1>NMAKE : fatal error U1077: '"d:\Program Files (x86)\Microsoft Visual
Studio 10.0\VC\bin\cl.EXE"' : return code '0x2'
1> Stop.
1>NMAKE : fatal error U1077: '"d:\Program Files (x86)\Microsoft Visual
Studio 10.0\VC\bin\nmake.EXE"' : return code '0x2'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
1> Stop.
=================================================================
It seems the error is file missing, that is,there is no "curl/curl.h"file.
I search the OTB_BINARY_DIR directory, and there is no this file indeed.
But I found that there is a curl.h file in OSGeo4w install directory. So in
the GDAL project's properties, I put the OSGeo4w\include directory
into "include dirctories".
then, compile....
The file missing error is gone, but new errors emerge.
===============
1> ..\libjpeg\jutils.c
1> 46 files copied
1> ren jcapimin.c jcapimin12.c
1> The existence of a file of the same name, or can not find the file.
1>NMAKE : fatal error U1077: 'ren' : return code '0x1'
1> Stop.
1>NMAKE : fatal error U1077: '"d:\Program Files (x86)\Microsoft Visual
Studio 10.0\VC\bin\nmake.EXE"' : return code '0x2'
1> Stop.
1>NMAKE : fatal error U1077: 'for' : return code '0x1'
1> Stop.
1>NMAKE : fatal error U1077: '"d:\Program Files (x86)\Microsoft Visual
Studio 10.0\VC\bin\nmake.EXE"' : return code '0x2'
1> Stop.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
=========================
how can I fix this?
Project[GEOTIFF]--------------------------2
these are two errors after compiling.....
>LINK : fatal error LNK1104: cannot open file
'D:\OTB\OTB_INSTALL_DIR\lib\libtiff_i.lib'
[D:\OTB\OTB_BINARY_DIR\GEOTIFF\build\geotiff_library.vcxproj]
1> (Link target) ->
1>LINK : fatal error LNK1104: cannot open file
'D:\OTB\OTB_INSTALL_DIR\lib\libtiff_i.lib'
[D:\OTB\OTB_BINARY_DIR\GEOTIFF\build\geotiff_library.vcxproj]
It seems the problem is to lacking libtiff_i.lib file.
so, I fetch this file from "OSGeo4w\include", and recompile,
I get bunch of errors like this.....
============================
1>geo_tiffp.obj : error LNK2019: unresolved external symbol __TIFFfree
referenced in function __GTIFFree
[D:\OTB\OTB_BINARY_DIR\GEOTIFF\build\geotiff_library.vcxproj]"
============================
Project[OTB]----------------------------3
I get the following errors:
============================
1>c1 : fatal error C1083: Cannot open source file:
1> 'D:/OTB/OTB_INSTALL_DIR/include': Permission denied
1>
[D:\OTB\OTB_BINARY_DIR\OTB\build\CMakeFiles\CMakeTmp\cmTryCompileExec3127814979.vcxproj]
>c1 : fatal error C1083: Cannot open source file:
1> 'D:/OTB/OTB_INSTALL_DIR/include': Permission denied
1>
[D:\OTB\OTB_BINARY_DIR\OTB\build\CMakeFiles\CMakeTmp\cmTryCompileExec3127814979.vcxproj]
1>
1>
1>
1>
“D:\OTB\OTB_BINARY_DIR\OTB\build\CMakeFiles\CMakeTmp\cmTryCompileExec3127814979.vcxproj”(default
target)
1> (1) ->
1>
1>c1 : fatal error C1083: Cannot open source file:
'D:/OTB/OTB_INSTALL_DIR/include': Permission denied
[D:\OTB\OTB_BINARY_DIR\OTB\build\CMakeFiles\CMakeTmp\cmTryCompileExec3127814979.vcxproj]
1>
1>
1>
1> CMake will not be able to correctly generate this project.
1> Call Stack (most recent call first):
1> CMakeLists.txt:27 (project)
1>
1>
1> -- Configuring incomplete, errors occurred!
1> See also "D:/OTB/OTB_BINARY_DIR/OTB/build/CMakeFiles/CMakeOutput.log".
1> See also "D:/OTB/OTB_BINARY_DIR/OTB/build/CMakeFiles/CMakeError.log".
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I run vs 2010 as administrator, and I set full permission to
'D:/OTB/OTB_INSTALL_DIR/include' fold, why permission denied?
Project[TIFF]----------------------------4
================================
loading initial cache file
D:/OTB/OTB_BINARY_DIR/TIFF/_install/tmp/TIFF-cache.cmake
1>CUSTOMBUILD : CMake error : The source directory
"D:/OTB/OTB_BINARY_DIR/TIFF/_install" does not appear to contain
CMakeLists.txt.
================================
this error seems easy to fix, but where I can find the missing
CMakeLists.txt. There is indeed no this file in
"D:/OTB/OTB_BINARY_DIR/TIFF/_install"
Project[TIFF_build]------------------------5
===================================
1>tif_zip.c(50): fatal error C1083: Cannot open include file: 'zlib.h': No
such file or directory
1> tif_unix.c
1>tif_unix.c(67): warning C4996: 'read': The POSIX name for this item is
deprecated. Instead, use the ISO C++ conformant name: _read. See online
help for details.
1> d:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\io.h(313) : see declaration of 'read'
1>tif_unix.c(79): warning C4996: 'write': The POSIX name for this item is
deprecated. Instead, use the ISO C++ conformant name: _write. See online
help for details.
1> d:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\io.h(318) : see declaration of 'write'
1>tif_unix.c(91): warning C4996: 'lseek': The POSIX name for this item is
deprecated. Instead, use the ISO C++ conformant name: _lseek. See online
help for details.
1> d:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\io.h(310) : see declaration of 'lseek'
1>tif_unix.c(97): warning C4996: 'close': The POSIX name for this item is
deprecated. Instead, use the ISO C++ conformant name: _close. See online
help for details.
1> d:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\io.h(302) : see declaration of 'close'
1>tif_unix.c(187): warning C4996: 'open': The POSIX name for this item is
deprecated. Instead, use the ISO C++ conformant name: _open. See online
help for details.
1> d:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\io.h(312) : see declaration of 'open'
1>tif_unix.c(199): warning C4996: 'close': The POSIX name for this item is
deprecated. Instead, use the ISO C++ conformant name: _close. See online
help for details.
1> d:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\io.h(302) : see declaration of 'close'
1>tif_unix.c(252): warning C4996: 'close': The POSIX name for this item is
deprecated. Instead, use the ISO C++ conformant name: _close. See online
help for details.
1> d:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\io.h(302) : see declaration of 'close'
1> Generating Code...
1>NMAKE : fatal error U1077: '"d:\Program Files (x86)\Microsoft Visual
Studio 10.0\VC\bin\cl.EXE"' : return code '0x2'
1> Stop.
1>NMAKE : fatal error U1077: '"d:\Program Files (x86)\Microsoft Visual
Studio 10.0\VC\bin\nmake.EXE"' : return code '0x2'
1> Stop.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Still the file missing error. and the NMAKE error is caused by the file
missing error.
Project[TINYXML]---------------------------6
==============================
1> “D:\OTB\OTB_BINARY_DIR\TINYXML\build\ALL_BUILD.vcxproj”(default target)
(1) ->
1> “D:\OTB\OTB_BINARY_DIR\TINYXML\build\tinyxml.vcxproj”(default target)
(3) ->
1> (ClCompile 目标) ->
1>..\src\TINYXML\xmltest.cpp(1142): error C2001: newline in constant
[D:\OTB\OTB_BINARY_DIR\TINYXML\build\tinyxml.vcxproj]
1>..\src\TINYXML\xmltest.cpp(1149): error C2001: newline in constant
[D:\OTB\OTB_BINARY_DIR\TINYXML\build\tinyxml.vcxproj]
1>..\src\TINYXML\xmltest.cpp(1150): error C2146: syntax error : missing ')'
before identifier 'TiXmlHandle'
[D:\OTB\OTB_BINARY_DIR\TINYXML\build\tinyxml.vcxproj]
1>..\src\TINYXML\xmltest.cpp(1152): error C2065: 'tHandle' : undeclared
identifier [D:\OTB\OTB_BINARY_DIR\TINYXML\build\tinyxml.vcxproj]
1>..\src\TINYXML\xmltest.cpp(1152): error C2228: left of '.Text' must have
class/struct/union [D:\OTB\OTB_BINARY_DIR\TINYXML\build\tinyxml.vcxproj]
1>..\src\TINYXML\xmltest.cpp(1153): error C2001: newline in constant
[D:\OTB\OTB_BINARY_DIR\TINYXML\build\tinyxml.vcxproj]
1>..\src\TINYXML\xmltest.cpp(1154): error C2143: syntax error : missing ')'
before '}' [D:\OTB\OTB_BINARY_DIR\TINYXML\build\tinyxml.vcxproj]
1>..\src\TINYXML\xmltest.cpp(1154): error C2661: 'XmlTest' : no overloaded
function takes 2 arguments
[D:\OTB\OTB_BINARY_DIR\TINYXML\build\tinyxml.vcxproj]
1>..\src\TINYXML\xmltest.cpp(1154): error C2143: syntax error : missing ';'
before '}' [D:\OTB\OTB_BINARY_DIR\TINYXML\build\tinyxml.vcxproj]
1>
1> 8 warning
1> 9 errors
1>
1> Elapsed time 00:00:00.79
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
there are couple of errors, but the reason is very simple. there are some
unrecognized character in xmltest.cpp, should be some none-standard unicode
that my system cannot read, just like.....
"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"
"<?"
"C鰊t鋘t咪鳇闹?
"</?";
XmlTest( "ISO-8859-1 Parsing.", "C鰊t鋘t咪鳇闹?, tHandle.Text()->Value() );
this problem could be easy to fix by add " after 闹?, but obviously it
cannot solve the problem ultimately. after compiling, a new error emerged,
============================================
1> -- extracting... [rename]
1> CMake Error at TINYXML-stamp/extract-TINYXML.cmake:50 (file):
1> file RENAME failed to rename
1>
1> D:/OTB/OTB_BINARY_DIR/TINYXML/src/ex-TINYXML1235/tinyxml
1>
1> to
1>
1> D:/OTB/OTB_BINARY_DIR/TINYXML/src/TINYXML
1>
1> because: Permission denied
1>
1>
1>
1>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error
MSB6006: "cmd.exe" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have struggling to install OTB for couple of days, there still have these
problem, could someone help me?
My system is win7 64.
Thanks in advance.
--
--
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.