I think this error is related to the upgrade of cmake to version 3.0. Try to compile orfeo from the git repository.
Argyros Argyridis Phd Student at National Technical University of Athens, Remote Sensing Laboratory Member of OSGeo http://users.ntua.gr/arargyr/ tel. +30 210 772 2684 > Hello, > > I dont have access to Windows machine right now but as mentioned in > wiki[1], Are you on OSGeo4W shell?. I know it doesnt affect here as the > usage is shown if number of arguments is not 3. > > [1] http://wiki.orfeo-toolbox.org/index.php/OTB_%26_Windows_OS > > > On Sat, Jul 19, 2014 at 7:09 AM, neal <[email protected]> wrote: > > > > > <https://lh4.googleusercontent.com/-9w59E6Nx-KA/U8n9fvs0mII/AAAAAAAAAAM/ijXR5XsG518/s1600/1.jpg> > > hi,I want to ask some questions about the building in windows,when I run > > the OTB.bat file,but nothing happened.It seems the source files have not > > been compiled yet.Could any one give me any suggestions,I would be > > appreciated. > > > > 在 2014年3月26日星期三UTC+8上午4时14分08秒,Chris写道: > >> > >> Hi, > >> > >> Sorry for the late reply, > >> Yes, I have tried the scripts provided by OTB to customize window > >> environment, it reported the same issue. > >> But I can use it now, as I said, after re-installing the OSGeo 32bit. > >> > >> On Fri, Mar 21, 2014 at 12:51 PM, Mickael Savinaud <[email protected]> > >> wrote: > >> > >>> Hi, > >>> It should work also in 64bit. > >>> We have a platform which build nightly the OTB on Win7 and OsGEo4W64. > >>> Have you used the script provided in the software guide for windows case > >>> ? > >>> Mickaël > >>> Le 21/03/2014 02:06, C. Zeng a écrit : > >>> > >>> Hi Mickeal, > >>> > >>> I have noticed that, but my the ogrinfo looks good: > >>> C:\>ogrinfo > >>> Usage: ogrinfo [--help-general] [-ro] [-q] [-where restricted_where] > >>> [-spat xmin ymin xmax ymax] [-fid fid] > >>> [-sql statement] [-dialect sql_dialect] [-al] [-so] > >>> [-fields={YES > >>> /NO}] > >>> [-geom={YES/NO/SUMMARY}][--formats] > >>> datasource_name [layer [layer ...]] > >>> > >>> FAILURE: No datasource specified. > >>> > >>> Anyway, it has been solved after I install the 32bit Osgeo4w. > >>> > >>> Chris, > >>> > >>> On Thu, Mar 20, 2014 at 3:29 AM, Mickael Savinaud <[email protected]> > >>> wrote: > >>> > >>>> 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]. > >>>> > >>>> 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 a topic in the > >>>> Google Groups "otb-users" group. > >>>> To unsubscribe from this topic, visit https://groups.google.com/d/ > >>>> topic/otb-users/UCGttNA0Mxo/unsubscribe. > >>>> To unsubscribe from this group and all its topics, send an email to > >>>> [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. > >>> > >>> > >>> -- > >>> <http://www.c-s.fr> > >>> *Mickaël SAVINAUD*, *PhD* > >>> Ingénieur d'études et développement > >>> Responsable projet OrfeoToolBox > >>> *Business Unit E-SPACE & Geo Information* > >>> <https://thor.si.c-s.fr/blogs/cs-blogs-business/>* - Département > >>> APPLICATIONS* > >>> > >>> *CS Systèmes d'Information* > >>> Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872 > >>> 31506 Toulouse Cedex 05 - FRANCE > >>> +33 561 17 63 13 / +33 671 57 84 15 - [email protected] > >>> > >>> -- > >>> -- > >>> 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 a topic in the > >>> Google Groups "otb-users" group. > >>> To unsubscribe from this topic, visit https://groups.google.com/d/ > >>> topic/otb-users/UCGttNA0Mxo/unsubscribe. > >>> To unsubscribe from this group and all its topics, send an email to > >>> [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. > > > > > > -- > Regards, > Rashad > > -- > -- > 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. -- -- 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.
