Talk:Install (MinGW)

From Open Babel
Jump to: navigation, search

Noel, I'll do it when Open Babel compilation will run without error. At this time, test compilation fails and cml file format are not supported. I looking for an explanation.--Pansanel 08:35, 14 February 2007 (PST)

Jerome, will you merge the information on this 'Talk' page with the information on Install (MinGW) when you are ready. It's better to have one set of comprehensive instructions Baoilleach 02:16, 14 February 2007 (PST)

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.

Issues

CML format is not supported.

--Pansanel 09:25, 13 February 2007 (PST)