Hi,Argyros.I have some questions to ask you.
I execute the OTB.bat file just like this as the software guide :"OTB.bat 
C:\path\to\MyOTBDir\src C:\path\to\MyOTBDir\build 
C:\path\to\MyOTBDir\install".
First,the screen indicates "cmake is not internal or external  command,is 
not executable program or bat either."I have add the install path of cmake 
into the environment variable path.And when I type cmake in the cmd,it's 
ok.But why when I execute it in the osegeo4w shell,it doesn't work.
Second,I really want to know the way that I execute the OTB.file right.I 
hope you can tell me the correct way to input the full path of these 
files.If there is any wrong with me,please point out.
Looking forward to your reply.Thank you very much!!

在 2014年7月25日星期五UTC+8下午3时12分37秒,Argyros Argyridis写道:
>
> 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] <javascript:>> 
> 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
>
> > >>>>
>
> > >>>><
> ...

-- 
-- 
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