Hi,Solimyr.I encoutered the same questions as you have.Could you tell me 
the detailed steps when building the otb in window.

在 2013年1月14日星期一UTC+8下午11时47分28秒,Solimyr写道:
>
> 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.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