I also have problems with building on MinGW and on OSX. 

MinGW - 
I'm using Windows XP with gcc 4.4.0. I was using the following
instructions to compile OB (used successfully for OB 2.3.0 in the past):
http://sourceforge.net/apps/mediawiki/osra/index.php?title=Compilation_on_Windows

I'm getting the following error when running make:
[ 78%] Built target openbabel
Linking CXX executable ../bin/babel.exe
../src/libopenbabel.a(plugin.obj):c:/msys/1.0/home/igor/openbabel-2.3.1/src/plug
in.cpp:336: undefined reference to `OpenBabel::theQEqCharges'
../src/libopenbabel.a(plugin.obj):c:/msys/1.0/home/igor/openbabel-2.3.1/src/plug
in.cpp:337: undefined reference to `OpenBabel::theQTPIECharges'
../src/libopenbabel.a(genbankformat.obj):c:/msys/1.0/home/igor/openbabel-2.3.1/s
rc/formats/genbankformat.cpp:137: undefined reference to
`OpenBabel::ReadFASTASe
quence(OpenBabel::OBMol*, int, std::istream*, bool, bool)'
collect2: ld returned 1 exit status
make[2]: *** [bin/babel.exe] Error 1
make[1]: *** [tools/CMakeFiles/babel.dir/all] Error 2
make: *** [all] Error 2


OSX - 10.5.8
g++ 4.0.1
http://sourceforge.net/apps/mediawiki/osra/index.php?title=Compilation_on_MacOS


[ 78%] Built target openbabel
Linking CXX executable ../bin/babel
Undefined symbols:
  "OpenBabel::theQTPIECharges", referenced from:
      __ZN9OpenBabel15theQTPIEChargesE$non_lazy_ptr in
libopenbabel.a(plugin.o)
  "OpenBabel::theQEqCharges", referenced from:
      __ZN9OpenBabel13theQEqChargesE$non_lazy_ptr in
libopenbabel.a(plugin.o)
  "OpenBabel::ReadFASTASequence(OpenBabel::OBMol*, int,
std::basic_istream<char,
 std::char_traits<char> >*, bool, bool)", referenced from:
      OpenBabel::GenBankFormat::ReadMolecule(OpenBabel::OBBase*,
OpenBabel::OBCo
nversion*)in libopenbabel.a(genbankformat.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [bin/babel] Error 1
make[1]: *** [tools/CMakeFiles/babel.dir/all] Error 2
make: *** [all] Error 2


Looks like the same problem, but the message is somewhat different. I
was able to compile 2.3.1 on Linux without any problems, though I didn't
use static linking there.

Igor


On Thu, 2011-10-20 at 07:59 -0400, Ernst-Georg Schmid wrote:
> Hello again,
> 
> I'm trying to build OB 2.3.1 with MinGW using the following CMake command:
> 
> $ cmake .. -G "MSYS Makefiles" -DBUILD_SHARED=OFF 
> -DCMAKE_INSTALL_PREFIX="c:/tigress" -DZLIB_INCLUDE_DIR=/c/mingw/include 
> -DZLIB_LIBRARY=/c/mingw/lib/libz.a -
> DLIBXML2_INCLUDE_DIR=/c/mingw/include 
> -DLIBXML2_LIBRARIES=/c/mingw/lib/libxml2.a 
> -DEIGEN2_INCLUDE_DIR=/c/mingw/opt/eigen
> 
> with gcc 4.5.0
> 
> $ gcc -v
> Using built-in specs.
> COLLECT_GCC=C:\MinGW\bin\gcc.exe
> COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.0/lto-wrapper.exe
> Target: mingw32
> Configured with: ../gcc-4.5.0/configure 
> --enable-languages=c,c++,ada,fortran,obj
> c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared 
> --enable-libgo
> mp --disable-win32-registry --enable-libstdcxx-debug 
> --enable-version-specific-r
> untime-libs --disable-werror --build=mingw32 --prefix=/mingw
> Thread model: win32
> gcc version 4.5.0 (GCC)
> 
> followed by 'make -j4'.
> 
> This works as expected without obvious errors, delivering a libopenbabel.a 
> and statically linked binaries.
> 
> BUT:
> 
> 'make tests' fails at test 10 and 11
> 
>       Start 10: isomorphism_Test
> 10/50 Test #10: isomorphism_Test .................***Failed  Error regular 
> expression found in output. Regex=[FAIL]  1.42 sec
>       Start 11: rotor_Test
> 11/50 Test #11: rotor_Test .......................***Failed  Error regular 
> expression found in output. Regex=[FAIL]  1.09 sec
> 
> AND
> 
> The resulting babel.exe is missing support for cml and inchi. The are not in 
> the 'babel -L Formats' list and if I try to use them anyway I get:
> 
> babel: cannot write output format!
> 
> Any ideas?
> 
> Best regards,
> 
> Ernst-Georg
> 
> 
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Ciosco Self-Assessment and learn 
> about Cisco certifications, training, and career opportunities. 
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> OpenBabel-Devel mailing list
> OpenBabel-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-devel



------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to