Windows issues

From OTBWiki
Revision as of 15:31, 3 May 2011 by Julien.Malik (Talk | contribs) (Missing Dll)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Missing Dll

Instructions for building OTB from sources are available in the OTB Software Guide

The section External libraries describe the needed dependencies. Quick start instructions for Windows are available in the FAQ

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.

xerces-c_2_7.dll

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:

  1. 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.
  2. Search for "xerces-c_2_7.dll" in my computer.You will come to know what other versions are also there.
  3. 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.
  4. Compile and run