Difference between revisions of "Talk:Install (MinGW)"

From Open Babel
Jump to: navigation, search
Line 6: Line 6:
 
* msys v1.0.10
 
* msys v1.0.10
 
* msysDTK v1.0.1
 
* msysDTK v1.0.1
 +
* libiconv v1.11
 +
* zlib v1.2.3
 
* libxml2 v2.6.27
 
* libxml2 v2.6.27
 
* OpenBabel v2.0.2
 
* OpenBabel v2.0.2
  
 
== Compilation ==
 
== Compilation ==
 +
 +
=== libiconv ===
 +
After decompressing the source package into my msys home directory:
 +
<pre>
 +
cd libiconv-1.11
 +
./configure
 +
make
 +
make install
 +
</pre>
 +
 +
=== zlib ===
 +
After decompressing the source package into my msys home directory:
 +
<pre>
 +
cd zlib-1.2.3
 +
./configure
 +
make
 +
make install
 +
</pre>
  
 
=== libxml ===
 
=== libxml ===
Line 23: Line 43:
 
First, we need to set CPPFLAGS:
 
First, we need to set CPPFLAGS:
 
<pre>
 
<pre>
export CPPFLAGS=-I/home/jerome/openbabel-2.0.2/data
+
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"
 +
</pre>
 +
 
 +
You need to create a directory mingw in your openbabel directory and then copy inchi header:
 +
<pre>
 +
cd openbabel-2.0.2
 +
mkdir mingw
 +
cp windows/libinchi.* mingw/
 
</pre>
 
</pre>
  
Line 37: Line 65:
 
</pre>
 
</pre>
  
I've some issues with the test compilation, but babel.exe works fine.
+
I've some issues with the compilation in the test directory, but babel.exe works fine.
 
--[[User:Pansanel|Pansanel]] 09:25, 13 February 2007 (PST)
 
--[[User:Pansanel|Pansanel]] 09:25, 13 February 2007 (PST)

Revision as of 02:37, 14 February 2007

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)