Hi Mary, you probably have to set the environment LD_LIBRARY_PATH to the directory where the OTB libraries are installed on your system. You should do something like:
export LD_LIBRARY_PATH=*path_to_otb_libraries_directory*:$LD_LIBRARY_PATH Settting this environment library is needed if you compile OTB in a local directory (and not in /usr/lib for instance). Hope it helps. Manuel 2017-05-03 0:35 GMT+02:00 Mary Engels <[email protected]>: > Good Afternoon all, > > I am hoping someone can help me with this issue (Linux 16.04 LTS, OTB > 5.11.0)... I am trying to compile and run the HelloWorldOTB script. I have > created test folders both outside and inside my OTB directory and I have > followed the instructions for making the CMakeFile.txt as provided in the > OTB Software Guide (5.10.0) Chapter 4. When I run the cmake and make > commands I get the errors shown below, both inside and outside the OTB > direcotry. It is clear to me that it is not finding the libraries to link > to, but I am not sure why. Is anyone familiar with this error? > > Best > > Mary > > > couguser@couguser-Studio-XPS-435MT:~/OTBtests$ cmake ./ > -- Configuring done > -- Generating done > -- Build files have been written to: /home/couguser/OTBtests > couguser@couguser-Studio-XPS-435MT:~/OTBtests$ make > [ 50%] Linking CXX executable HelloWorldOTB > /usr/bin/ld: cannot find -lotb6S > /usr/bin/ld: cannot find -lOTBCommon > /usr/bin/ld: cannot find -lotbossimplugins > /usr/bin/ld: cannot find -lOTBOSSIMAdapters > /usr/bin/ld: cannot find -lOTBMetadata > /usr/bin/ld: cannot find -lOTBImageBase > /usr/bin/ld: cannot find -lOTBGdalAdapters > /usr/bin/ld: cannot find -lOTBVectorDataBase > /usr/bin/ld: cannot find -lOTBIOGDAL > /usr/bin/ld: cannot find -lOTBExtendedFilename > /usr/bin/ld: cannot find -lOTBIOBSQ > /usr/bin/ld: cannot find -lOTBIOLUM > /usr/bin/ld: cannot find -lOTBIOMSTAR > /usr/bin/ld: cannot find -lOTBIOONERA > /usr/bin/ld: cannot find -lOTBIORAD > /usr/bin/ld: cannot find -lOTBCurlAdapters > /usr/bin/ld: cannot find -lOTBIOTileMap > /usr/bin/ld: cannot find -lOTBStreaming > /usr/bin/ld: cannot find -lOTBImageIO > /usr/bin/ld: cannot find -lOTBTransform > /usr/bin/ld: cannot find -lOTBImageManipulation > /usr/bin/ld: cannot find -lOTBProjection > /usr/bin/ld: cannot find -lOTBIOKML > /usr/bin/ld: cannot find -lOTBVectorDataIO > /usr/bin/ld: cannot find -lOTBApplicationEngine > /usr/bin/ld: cannot find -lOTBStatistics > /usr/bin/ld: cannot find -lOTBFuzzy > /usr/bin/ld: cannot find -lOTBMathParser > /usr/bin/ld: cannot find -lOTBSVMLearning > /usr/bin/ld: cannot find -lOTBSupervised > /usr/bin/ld: cannot find -lOTBSampling > /usr/bin/ld: cannot find -lotbsiftfast > /usr/bin/ld: cannot find -lOTBWavelet > /usr/bin/ld: cannot find -lOTBEdge > /usr/bin/ld: cannot find -lOTBCarto > /usr/bin/ld: cannot find -lOTBMathParserX > /usr/bin/ld: cannot find -lOTBOpticalCalibration > /usr/bin/ld: cannot find -lOTBPolarimetry > /usr/bin/ld: cannot find -lOTBCommandLine > /usr/bin/ld: cannot find -lOTBCommandLineParser > /usr/bin/ld: cannot find -lOTBIce > /usr/bin/ld: cannot find -lOTBMonteverdiCore > /usr/bin/ld: cannot find -lOTBQtAdapters > /usr/bin/ld: cannot find -lOTBQtWidget > /usr/bin/ld: cannot find -lOTBMonteverdiGUI > /usr/bin/ld: cannot find -lOTBMapla > /usr/bin/ld: cannot find -lOTBMonteverdi > /usr/bin/ld: cannot find -lOTBOpenThreadsAdapters > /usr/bin/ld: cannot find -lOTBRCC8 > /usr/bin/ld: cannot find -lOTBSimulation > /usr/bin/ld: cannot find -lOTBTestKernel > collect2: error: ld returned 1 exit status > CMakeFiles/HelloWorldOTB.dir/build.make:151: recipe for target > 'HelloWorldOTB' failed > make[2]: *** [HelloWorldOTB] Error 1 > CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/HelloWorldOTB.dir/all' > failed > make[1]: *** [CMakeFiles/HelloWorldOTB.dir/all] Error 2 > Makefile:83: recipe for target 'all' failed > make: *** [all] Error 2 > > -- > -- > 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. > -- Manuel Grizonnet -- -- 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.
