hi,I encouter the problem that when I compile the program,it always indicates cannot open the program.Have you seen the same problem,look forwar for your repaly,thank you very much
在 2013年1月17日星期四UTC+8上午12时33分22秒,Solimyr写道: > > It's done, here the final lines: > > 75> otbViewerViewGroup.cxx >> >> 75> Generazione del codice in corso... >> >> 75> Creazione della libreria >> C:/Users/GianniCristian/OTB/build/bin/Debug/otbViewer.lib e dell'oggetto >> C:/Users/GianniCristian/OTB/build/bin/Debug/otbViewer.exp in corso... >> >> 75> Creazione della libreria >> C:/Users/GianniCristian/OTB/build/bin/Debug/otbViewer.lib e dell'oggetto >> C:/Users/GianniCristian/OTB/build/bin/Debug/otbViewer.exp in corso... >> >> 75> otbViewer.vcxproj -> >> C:\Users\GianniCristian\OTB\build\bin\Debug\otbViewer.exe >> >> 76>------ Inizio compilazione: Progetto: ALL_BUILD, Configurazione: Debug >> Win32 ------ >> >> 76> Building Custom Rule C:/Users/GianniCristian/OTB/CMakeLists.txt >> > 76> CMake does not need to re-run because >> C:\Users\GianniCristian\OTB\build\CMakeFiles\generate.stamp is up-to-date. >> 76> Build all projects >> 77>------ Compilazione ignorata: Progetto: INSTALL, Configurazione: Debug >> Win32 ------ >> 77>Progetto non selezionato da compilare per la configurazione della >> soluzione. >> ========== Compilazione: 75 completate, 0 non riuscite, 0 aggiornate, 2 >> ignorate ========== > > > How can I see if all is ok? Can I do something using the shell to > understand if everythings went fine? > > Il giorno mercoledì 16 gennaio 2013 17:06:01 UTC+1, Rashad ha scritto: >> >> you will get otb library built if visual studio does everything properly. >> after that you can build the helloworld example seperately using the first >> two files CMakeLists.txt and HelloWorld.cxx. But that can go as a separate >> visual studio project which is generated same way using cmake >> >> First let the compilation complete properly and I will come back to >> helloworld >> >> >> >> On Wed, Jan 16, 2013 at 9:17 PM, Solimyr <[email protected]> >> wrote: >> >>> Done, it is working!!! Now what I'm going to get? I have to do something >>> else when complete or I'm ok and I can start to make my first 'Hello World' >>> project? >>> >>> Il giorno mercoledì 16 gennaio 2013 16:28:01 UTC+1, Rashad ha scritto: >>>> >>>> click generate and you can see a .sln file in your build directory >>>> open that and you can see a bunch of visual studio builds available >>>> >>>> You can now build the solution to build the entire project >>>> >>>> Sit back and relax because it may take some time to finish building >>>> >>>> >>>> On Wed, Jan 16, 2013 at 8:53 PM, Solimyr <[email protected]> >>>> wrote: >>>> >>>>> Done. Here it is: >>>>> >>>>> >>>>> <https://lh4.googleusercontent.com/-zcrY1K66LTo/UPbEtxF-_ZI/AAAAAAAAALI/--5CmpYlQPI/s1600/7.png> >>>>> Then I clicked configure. Here the result: >>>>> >>>>> >>>>> <https://lh6.googleusercontent.com/-2EI69_cITRs/UPbFqktFqFI/AAAAAAAAALU/MKqxfih8CoI/s1600/8.png> >>>>> I'm posting these images for someone that will read the post in a >>>>> second time. >>>>> >>>>> Il giorno mercoledì 16 gennaio 2013 16:16:09 UTC+1, Solimyr ha scritto: >>>>> >>>>>> This is the Cmake GUI: >>>>>> >>>>>> >>>>>> <https://lh4.googleusercontent.com/-V1z8rD456E0/UPbEM6zudDI/AAAAAAAAALA/4cvJpl26Ahk/s1600/6.png> >>>>>> >>>>>> >>>>>> Il giorno mercoledì 16 gennaio 2013 16:08:31 UTC+1, Solimyr ha >>>>>> scritto: >>>>>>> >>>>>>> Where I have to set this? >>>>>>> >>>>>>> Il giorno mercoledì 16 gennaio 2013 16:04:44 UTC+1, Guillaume Pasero >>>>>>> ha scritto: >>>>>>>> >>>>>>>> You should use the internal FLTK : >>>>>>>> Set the CMake option "OTB_USE_EXTERNAL_FLTK" to OFF, and try again. >>>>>>>> >>>>>>>> Le 16/01/2013 16:00, Solimyr a écrit : >>>>>>>> >>>>>>>> I think I can't skip...It makes error if I click Generate. >>>>>>>> >>>>>>>> Il giorno mercoledì 16 gennaio 2013 15:41:13 UTC+1, Rashad ha >>>>>>>> scritto: >>>>>>>>> >>>>>>>>> you are heading in the right direction. >>>>>>>>> >>>>>>>>> btw you can skip fltk for now and install otb library. FTLK is >>>>>>>>> only needed for monteverdi I guess >>>>>>>>> >>>>>>>>> >>>>>>>>> On Wed, Jan 16, 2013 at 8:05 PM, Solimyr < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> I have reinstalled again GDAL: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> <https://lh6.googleusercontent.com/-ZBTHpi0Lgaw/UPa6QL9XN7I/AAAAAAAAAKo/H0xUmx3vFEA/s1600/4.png> >>>>>>>>>> >>>>>>>>>> I clicked again 'configure' and I get another error. I miss FLTK: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> <https://lh6.googleusercontent.com/-FpyHJNK8Q7Y/UPa6oDGf_EI/AAAAAAAAAKw/-Hzpg9VpaZ8/s1600/5.png> >>>>>>>>>> >>>>>>>>>> And so, I guess I have to install FLTK, right? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Il giorno lunedì 14 gennaio 2013 16:47:28 UTC+1, Solimyr ha >>>>>>>>>> scritto: >>>>>>>>>> >>>>>>>>>>> Dear All, >>>>>>>>>>> >>>>>>>>>>> As topic's title, I'm new in OTB. I want to explore some tools >>>>>>>>>>> in it and so I started to read the software guide ( >>>>>>>>>>> http://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech2.html >>>>>>>>>>> ). >>>>>>>>>>> >>>>>>>>>>> Unfortunately I'm alreay struggled with it. I'm encountering >>>>>>>>>>> the firsts problems!!! >>>>>>>>>>> >>>>>>>>>>> Im using Windows 8 and I installed Visual Express 2012 (Until >>>>>>>>>>> now I don't know if needed). I reached the section:"2.3 Getting >>>>>>>>>>> Started >>>>>>>>>>> With OTB": >>>>>>>>>>> >>>>>>>>>>> The simplest way to create a new project with OTB is to create >>>>>>>>>>>> a new directory somewhere in your disk and create two files in it. >>>>>>>>>>>> The >>>>>>>>>>>> first one is a CMakeLists.txt file that will be used by CMake >>>>>>>>>>>> to generate a Makefile (if you are using UNIX) or a Visual Studio >>>>>>>>>>>> workspace >>>>>>>>>>>> (if you are using MS-Windows). The second file is an actual C++ >>>>>>>>>>>> program >>>>>>>>>>>> that will exercise some of the large number of classes available >>>>>>>>>>>> in OTB. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Well, I created a new folder and put in it the two files. >>>>>>>>>>> Afterthat I followd the Hello World section: >>>>>>>>>>> >>>>>>>>>>> Here is the content of the two files to write in your new >>>>>>>>>>>> project. These two files can be found in the >>>>>>>>>>>> OTB/Examples/Installation directory. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Actually I don't have this directory. I have installed >>>>>>>>>>> everything using OSGEO4W. I think it's not a big deal. I copied and >>>>>>>>>>> paste >>>>>>>>>>> the following lines in the two files: >>>>>>>>>>> >>>>>>>>>>> The CMakeLists.txt file contains the following lines: >>>>>>>>>>>> PROJECT(HelloWorld) >>>>>>>>>>>> >>>>>>>>>>>> FIND_PACKAGE(OTB REQUIRED) >>>>>>>>>>>> INCLUDE(${OTB_USE_FILE}) >>>>>>>>>>>> >>>>>>>>>>>> ADD_EXECUTABLE(HelloWorld HelloWorld.cxx ) >>>>>>>>>>>> TARGET_LINK_LIBRARIES(HelloWorld OTBCommon OTBIO ITKCommon >>>>>>>>>>>> ITKIO) >>>>>>>>>>>> The first line defines the name of your project as it appears >>>>>>>>>>>> in Visual Studio (it will have no effect under UNIX). The second >>>>>>>>>>>> line loads >>>>>>>>>>>> a CMake file with a predefined strategy for finding OTB 1 >>>>>>>>>>>> <http://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuide15.html#fn1x4>. >>>>>>>>>>>> >>>>>>>>>>>> If the strategy for finding OTB fails, CMake will prompt you for >>>>>>>>>>>> the >>>>>>>>>>>> directory where OTB is installed in your system. In that case you >>>>>>>>>>>> will >>>>>>>>>>>> write this information in the OTB_DIR variable. The line >>>>>>>>>>>> INCLUDE(${USE_OTB_FILE}) loads the UseOTB.cmake file to set >>>>>>>>>>>> all the configuration information from OTB. >>>>>>>>>>>> The line ADD_EXECUTABLE defines as its first argument the name >>>>>>>>>>>> of the executable that will be produced as result of this project. >>>>>>>>>>>> The >>>>>>>>>>>> remaining arguments of ADD_EXECUTABLE are the names of the >>>>>>>>>>>> source files to be compiled and linked. Finally, the TARGET >>>>>>>>>>>> _LINK_LIBRARIES line specifies which OTB libraries will be >>>>>>>>>>>> linked against this project. >>>>>>>>>>>> The source code for this example can be found in the file >>>>>>>>>>>> Examples/Installation/HelloWorld.cxx. >>>>>>>>>>>> The following code is an implementation of a small OTB program. >>>>>>>>>>>> It tests including header files and linking with OTB libraries. >>>>>>>>>>>> #include "otbImage.h" >>>>>>>>>>>> #include <iostream> >>>>>>>>>>>> >>>>>>>>>>>> int main() >>>>>>>>>>>> { >>>>>>>>>>>> typedef otb::Image<unsigned short, 2> ImageType; >>>>>>>>>>>> >>>>>>>>>>>> ImageType::Pointer image = ImageType::New(); >>>>>>>>>>>> >>>>>>>>>>>> std::cout << "OTB Hello World !" << std::endl; >>>>>>>>>>>> >>>>>>>>>>>> return EXIT_SUCCESS; >>>>>>>>>>> >>>>>>>>>>> } >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Once complete this I don't know what to do! I know that I'm a >>>>>>>>>>> big noob and sorry for this! >>>>>>>>>>> Thanks to everyone that will help me with this! I really wanna >>>>>>>>>>> use OTB!! >>>>>>>>>>> >>>>>>>>>>> Solimyr >>>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> -- >>>>>>>>>> Check the OTB FAQ at >>>>>>>>>> http://www.orfeo-toolbox.org/FAQ/ >>>>>>>>>> >>>>>>>>>> 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 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Regards, >>>>>>>>> Rashad >>>>>>>>> >>>>>>>> -- >>>>>>>> -- >>>>>>>> Check the OTB FAQ at >>>>>>>> http://www.orfeo-toolbox.org/FAQ/ >>>>>>>> >>>>>>>> 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 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> <http://www.c-s.fr> *Guillaume PASERO* >>>>>>>> Ingénieur d'études et développement >>>>>>>> *Division ESPACE & Renseignement* >>>>>>>> <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 64 21 - [email protected] >>>>>>>> >>>>>>> -- >>>>> -- >>>>> Check the OTB FAQ at >>>>> http://www.orfeo-toolbox.org/FAQ/ >>>>> >>>>> 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 >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Rashad >>>> >>> -- >>> -- >>> Check the OTB FAQ at >>> http://www.orfeo-toolbox.org/FAQ/ >>> >>> 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 >>> >>> >>> >>> >> >> >> >> -- >> 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.
