Instructions for building OTB from sources are available in the OTB Software Guide
The recommended way to install the OTB dependencies is to use OSGeo4W
After installing the necessary libraries (gdal, ...), make sure to have the bin directory of your local OSGeo4W installation in your PATH. Usually it is C:\OSGeo4W\bin
Go to Control Panel -> System -> Advanced -> Environment Variables. Edit the path variable and add the directory here. If there are already directories defined, use ; as a separator.
This issue is described on http://groups.google.com/group/otb-users/browse_thread/thread/438fc11e3dd2098d/fd0687d68de51ae9
While running the applications: "The procedure entry point ?binToText@XMLString@xercesc_2_7@@SAXIQAGIIQAVMemoryManager@2@@Z could not be located in the dynamic link library xerces-c_2_7.dll"
Here is the solution proposed by Mohan: Cause: Actually there exists several versions of xerces-c_2_7.dll in the system.
Steps to resolve:
- As Otmane said, kindly check whether the dll "xerces-c_2_7.dll" present in C:/OSGEO4W/bin. And this is the one which that the application is using.
- Search for "xerces-c_2_7.dll" in my computer.You will come to know what other versions are also there.
- Check in the PATH in environment variable where you have placed your path "C:/OSGEO4W/bin" in it. Since the path has other version of "xerces-c_2_7.dll" before this path, the application is taking the wrong version and leeds to that error. And hence kindly move the path "C:/OSGEO4W/bin" before the path of other versions.
- Compile and run