Dear all,
I am trying to build the windows versions of the openbabel library, so that I could build a windows
version of my program that uses openbabel.

I use msys/mingw64.

I downloaded version 2.4.1 of the sources, followed the instructions I could find, somehow the compilation is a success but I am stuck at some point by the gamess input file that requires
things that are already installed ... and for some reason not found ...

At the cmake stage I used:

cmake -G "MSYS Makefiles" ../openbabel-2.4.1 -DBUILD_GUI=OFF

To pass that stage I had to delete some lines in "openbabel-2.4.1/CMakelists", lines that were ensuring to use GXX version > 4.2, indeed the Cmake wasn't able to parse string result of the g++ version inquiry for msys/mingw ...  too long or unexpected symbols ... after deleting the lines it works, up to some point in the compilation process:

Here is the output of "make" at this error point:

---------------------------------------------------------------------------------------------------------------------------------------------------------------

Scanning dependencies of target gamessukformat
[ 60%] Building CXX object src/formats/CMakeFiles/gamessukformat.dir/gamessukformat.obj
[ 60%] Linking CXX shared module ../../bin/gamessukformat.obf
CMakeFiles/gamessukformat.dir/objects.a(gamessukformat.obj): In function `OpenBabel::GAMESSUKOutputFormat::ReadInitialCartesian(OpenBabel::OBMol&, std::istream&)': C:/msys64/home/leroux/openbabel-2.4.1/src/formats/gamessukformat.cpp:804: undefined reference to `regcomp' C:/msys64/home/leroux/openbabel-2.4.1/src/formats/gamessukformat.cpp:818: undefined reference to `regexec' C:/msys64/home/leroux/openbabel-2.4.1/src/formats/gamessukformat.cpp:837: undefined reference to `regfree'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [src/formats/CMakeFiles/gamessukformat.dir/build.make:102: bin/gamessukformat.obf] Error 1 make[1]: *** [CMakeFiles/Makefile2:3951: src/formats/CMakeFiles/gamessukformat.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

---------------------------------------------------------------------------------------------------------------------------------------------------------------

The file "regex.h" in "mingw64/include" define "recomp", "regexec" and "regfree" (I checked),
is there anyway to require _not to build_ the gamessukformat ?

Any other option to build the devel lib/files for windows ?

Thanks in advance for you help.

Sébastien

--
===========================================================
Dr. Sébastien Le Roux
Ingénieur de Recherche CNRS
Institut de Physique et Chimie des Matériaux de Strasbourg
Département des Matériaux Organiques
23, rue du Loess
BP 43
F-67034 Strasbourg Cedex 2, France
E-mail: sebastien.ler...@ipcms.unistra.fr
Webpage: http://www.ipcms.unistra.fr/?page_id=14965&lang=en
RINGS project: http://rings-code.sourceforge.net/
ISAACS project: http://isaacs.sourceforge.net/
Fax:   +33 3 88 10 72 46
Phone: +33 3 88 10 71 58
===========================================================

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to