Le 24/02/2018 à 20:45, Noel O'Boyle a écrit :
So, I think I have gotten it working. First of all, I had the same problem as you with the macro_ensure_version string. For the moment I just replaced those lines in CMakeLists.txt with:


Dear Noel,
I am back to work, and checked your modifications, I am sorry to tell you that it is not enough to make it work properly,
and there is still that same error at the "conv.Read" point.

Something more, that is related to installation script, the "make install" command on msys: The first times I used the following command to build the library (I do not have trouble with :

cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=install_dir ../openbabel-2.4.1 -DBUILD_GUI=OFF && make && make install

No problems for me with the INCHI lib by the way.
Afterwards I copy/pasted every files in the "build/install_dir" directory in "C:\msys\mingw64\"
Then I was tired of doing all this and used the following to build the lib:

cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=/mingw64 ../openbabel-2.4.1 -DBUILD_GUI=OFF && make && make install

With msys, mingw64 is at the "/" point, I think that installation is the preferred one for later use/build against the openbabel lib, and it worked smoothly ... however the installation script creates and directory named "cmake", containing some data and located in "install_dir/bin", the folder was ignored before that because I was only doing a "cp" and not a "cp -r" to copy the file, but now after the install it will end up in "/mingw64/bin" or "C:\msys\mingw64\bin" ... that folder precisely contains the original "cmake" command. The installation script does not erase the cmake commands, that is actually named "cmake.exe" but when the "msys/mingw64" system is looking for the command it cannot find it anymore because of the folder named "cmake". If you rename the folder it works again,
you might want to correct the installation script to avoid further problems.

Best regards.

--
===========================================================
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