Talk:Install (MinGW)

From Open Babel
Revision as of 02:37, 14 February 2007 by Pansanel (Talk | contribs)

Jump to: navigation, search

Environnement

I've the following environnement:

  • Windows XP Pro SP2
  • MinGW v5.1.3
  • msys v1.0.10
  • msysDTK v1.0.1
  • libiconv v1.11
  • zlib v1.2.3
  • libxml2 v2.6.27
  • OpenBabel v2.0.2

Compilation

libiconv

After decompressing the source package into my msys home directory:

cd libiconv-1.11
./configure
make
make install

zlib

After decompressing the source package into my msys home directory:

cd zlib-1.2.3
./configure
make
make install

libxml

After decompressing the source package into msys home directory:

cd libxml2-2.6.27
./configure
make
make install

openbabel

First, we need to set CPPFLAGS:

export CPPFLAGS="-I/home/jerome/openbabel-2.0.2/data -I/usr/local/include -I/home/jerome/openbabel-2.0.2/mingw"
export LDFLAGS="-L/usr/local/lib -L//home/jerome/openbabel-2.0.2/mingw"

You need to create a directory mingw in your openbabel directory and then copy inchi header:

cd openbabel-2.0.2
mkdir mingw
cp windows/libinchi.* mingw/

Then, corrects dlhandler into the Makefile.in:

  • change each dlhander_unix for dlhandler_win32
  • remove @[email protected] in front of am_objects_1

Finally:

./configure
make
make install

I've some issues with the compilation in the test directory, but babel.exe works fine. --Pansanel 09:25, 13 February 2007 (PST)