hi
have you take a look to the following link
http://wiki.orfeo-toolbox.org/index.php/OTB_%26_Windows_OS
best
Mickael
seimiya <[email protected]> a écrit :
Hello,
I want to use OTB to develop my application, so I have compile the source
code and some exemples without problems with the guide.
I actually have a problem with an exemple of visualization,
I want to vizualise an image, so this is the code source of exemple :
#include <stdlib.h>
#include "itkMacro.h"
#include "otbImageFileReader.h"
#include "otbImage.h"
#include "otbVectorImage.h"
#include <iostream>
#include "otbStandardImageViewer.h"
int main(int argc, char * argv[])
{
if (argc != 2)
{
std::cout << " Usage : InputImage" << std::endl;
return EXIT_FAILURE;
}
const char * inputFilename = argv[1];
typedef int PixelType;
typedef otb::VectorImage<PixelType, 2> ImageType;
typedef otb::ImageFileReader<ImageType> ReaderType;
typedef otb::StandardImageViewer<ImageType> ViewerType;
ViewerType::Pointer lViewer = ViewerType::New();
ReaderType::Pointer lReader = ReaderType::New();
lReader->SetFileName(inputFilename);
lReader->UpdateOutputInformation();
lViewer->SetLabel("My Image");
lViewer->SetImage(lReader->GetOutput());
lViewer->Update();
Fl::run();
return EXIT_SUCCESS;
}
I had those errors when I had compiled my program on Visual studio 2010
Error 8 error LNK1120: 7 unresolved externals
C:\Users\DELL\Desktop\testdevisualisation\build\Release\VisuExample1.exe
Error 7 error LNK2001: unresolved external symbol "public: virtual double
__thiscall ossimImageElevationDatabase::getAccuracyCE90(class ossimGpt
const &)const "
(?getAccuracyCE90@ossimImageElevationDatabase@@UBENABVossimGpt@@@Z)
C:\Users\DELL\Desktop\testdevisualisation\build\OTBOssimAdapters.lib(otbDEMHandler.obj)
Error 6 error LNK2001: unresolved external symbol "public: virtual double
__thiscall ossimImageElevationDatabase::getAccuracyLE90(class ossimGpt
const &)const "
(?getAccuracyLE90@ossimImageElevationDatabase@@UBENABVossimGpt@@@Z)
C:\Users\DELL\Desktop\testdevisualisation\build\OTBOssimAdapters.lib(otbDEMHandler.obj)
Error 2 error LNK2001: unresolved external symbol "public: virtual void
__thiscall ossimConnectableObject::findAllInputsOfType(class
std::vector<class ossimRefPtr<class ossimConnectableObject>,class
std::allocator<class ossimRefPtr<class ossimConnectableObject> > > &,class
ossimString const &,bool,bool)"
(?findAllInputsOfType@ossimConnectableObject@@UAEXAAV?$vector@V?$ossimRefPtr@VossimConnectableObject@@@@V?$allocator@V?$ossimRefPtr@VossimConnectableObject@@@@@std@@@std@@ABVossimString@@_N2@Z)
C:\Users\DELL\Desktop\testdevisualisation\build\OTBOssimAdapters.lib(otbDEMHandler.obj)
Error 3 error LNK2001: unresolved external symbol "public: virtual void
__thiscall ossimConnectableObject::findAllInputsOfType(class
std::vector<class ossimRefPtr<class ossimConnectableObject>,class
std::allocator<class ossimRefPtr<class ossimConnectableObject> > > &,class
RTTItypeid const &,bool,bool)"
(?findAllInputsOfType@ossimConnectableObject@@UAEXAAV?$vector@V?$ossimRefPtr@VossimConnectableObject@@@@V?$allocator@V?$ossimRefPtr@VossimConnectableObject@@@@@std@@@std@@ABVRTTItypeid@@_N2@Z)
C:\Users\DELL\Desktop\testdevisualisation\build\OTBOssimAdapters.lib(otbDEMHandler.obj)
Error 5 error LNK2001: unresolved external symbol "public: virtual void
__thiscall ossimConnectableObject::findAllOutputsOfType(class
std::vector<class ossimRefPtr<class ossimConnectableObject>,class
std::allocator<class ossimRefPtr<class ossimConnectableObject> > > &,class
ossimString const &,bool,bool)"
(?findAllOutputsOfType@ossimConnectableObject@@UAEXAAV?$vector@V?$ossimRefPtr@VossimConnectableObject@@@@V?$allocator@V?$ossimRefPtr@VossimConnectableObject@@@@@std@@@std@@ABVossimString@@_N2@Z)
C:\Users\DELL\Desktop\testdevisualisation\build\OTBOssimAdapters.lib(otbDEMHandler.obj)
Error 4 error LNK2001: unresolved external symbol "public: virtual void
__thiscall ossimConnectableObject::findAllOutputsOfType(class
std::vector<class ossimRefPtr<class ossimConnectableObject>,class
std::allocator<class ossimRefPtr<class ossimConnectableObject> > > &,class
RTTItypeid const &,bool,bool)"
(?findAllOutputsOfType@ossimConnectableObject@@UAEXAAV?$vector@V?$ossimRefPtr@VossimConnectableObject@@@@V?$allocator@V?$ossimRefPtr@VossimConnectableObject@@@@@std@@@std@@ABVRTTItypeid@@_N2@Z)
C:\Users\DELL\Desktop\testdevisualisation\build\OTBOssimAdapters.lib(otbDEMHandler.obj)
Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport)
public: class ossimImageHandler * __thiscall
ossimImageHandlerRegistry::open(class ossimFilename const &,bool,bool)const
"
(__imp_?open@ossimImageHandlerRegistry@@QBEPAVossimImageHandler@@ABVossimFilename@@_N1@Z)
referenced in function "class otb::ImageKeywordlist __cdecl
otb::ReadGeometryFromImage(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(?ReadGeometryFromImage@otb@@YA?AVImageKeywordlist@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
C:\Users\DELL\Desktop\testdevisualisation\build\OTBOssimAdapters.lib(otbImageKeywordlist.obj)
Can someone help me or suggeste a solution ?
Thanks,
--
--
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/groups/opt_out.
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
--
--
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/groups/opt_out.