Hi, I don't understand it seems that your GDAL has no OGR features. Could you type ogrinfo into your OsGEO4W shell please. Best Mickaël
Le 16/03/2014 04:48, Chris a écrit : > Hi, > I was used to work on the OTB 3.18 and everything went well. With the > new features in the v4.0, today I download and try to compile it but > failed > The problem is very similar to this post: > https://groups.google.com/forum/#!topic/otb-users/03XA8Kdk9H8. But > there seems no clear solution to this post. > I don't want to reinstall the Osgeo4w since I have other packages such > as QGis, GRASS, and other related projects. > > I have followed the instruction on > : http://orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech2.html#x14-220011 > My config: > CMake : 2.8.12.2 > C++ compiler: vs 10 > External GDAL: v1.10, installed through OSgeo4w > > Error log as follows: > ------------------------------------------------------------------------------------------------------------------------------------------------------ > > Mercurial was not found. > > Disabling build shared lib option on windows like OS. > > The size of the stack is already defined, so we dont't modified it. > > Found OSGeo4W (D:/OSGeo4W64) > > Importing GDAL... > > GDAL includes : D:/OSGeo4W64/include > > GDAL library : D:/OSGeo4W64/lib/gdal_i.lib > > GDAL version is 1.10.1 > > Testing if GDAL exposes tiff library symbols -- no > > Testing if GDAL exposes geotiff library symbols -- no > > Testing if GDAL exposes jpeg library symbols -- no > > Testing if GDAL has OGR -- no > > CMake Error at CMake/ImportGdal.cmake:166 (message): > OGR MESSAGE: Change Dir: > D:/OTB_related/OTB_built/CMake/CMakeFiles/CMakeTmp > > > > Run Build Command:C:\PROGRA~2\MICROS~3.0\Common7\IDE\devenv.com > CMAKE_TRY_COMPILE.sln /build Release /project cmTryCompileExec354803476 > > > > Microsoft (R) Visual Studio Version 10.0.40219.1. > > > > Copyright (C) Microsoft Corp. All rights reserved. > > > > 1>------ Build started: Project: cmTryCompileExec354803476, Configuration: > Release Win32 ------ > > > > 1>Build started 15/03/2014 10:12:07 PM. > > > > 1>PrepareForBuild: > > > > 1> Creating directory > "D:\OTB_related\OTB_built\CMake\CMakeFiles\CMakeTmp\Release\". > > > > 1>InitializeBuildStatus: > > > > 1> Creating > "cmTryCompileExec354803476.dir\Release\cmTryCompileExec354803476.unsuccessfulbuild" > because "AlwaysCreate" was specified. > > > > 1>ClCompile: > > > > 1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 > for 80x86 > > > > 1> Copyright (C) Microsoft Corporation. All rights reserved. > > > > 1> > > > > 1> cl /c /ID:\OSGeo4W64\include /W3 /WX- /O2 /Ob2 /Oy- /D WIN32 /D > _WINDOWS > /D NDEBUG /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /EHsc /MD /GS > /fp:precise /Zc:wchar_t /Zc:forScope /GR > /Fo"cmTryCompileExec354803476.dir\Release\\" > /Fd"cmTryCompileExec354803476.dir\Release\vc100.pdb" /Gd /TP /analyze- > /errorReport:prompt "..\..\..\..\OTB-4.0.0\CMake\TestGDALHasOGR.cxx" > > > > 1> > > > > 1> TestGDALHasOGR.cxx > > > > 1>TestGDALHasOGR.obj : error LNK2019: unresolved external symbol "public: > static class OGRDataSource * __cdecl OGRSFDriverRegistrar::Open(char const > *,int,class OGRSFDriver * *)" > (?Open@OGRSFDriverRegistrar@@SAPAVOGRDataSource@@PBDHPAPAVOGRSFDriver@@@Z) > referenced in function _main > > > > > 1>D:\OTB_related\OTB_built\CMake\CMakeFiles\CMakeTmp\Release\cmTryCompileExec354803476.exe > : fatal error LNK1120: 1 unresolved externals > > > > 1> > > > > 1>Build FAILED. > > > > 1> > > > > 1>Time Elapsed 00:00:01.82 > > > > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped > ========== > > > > Call Stack (most recent call first): > CMakeLists.txt:206 (include) > > Configuring incomplete, errors occurred! > > See also "D:/OTB_related/OTB_built/CMakeFiles/CMakeOutput.log". > > See also "D:/OTB_related/OTB_built/CMakeFiles/CMakeError.log". > > > Chris, > > > > -- > -- > 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] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout. -- -- 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.
