Hi all,

I am having some problems to compile OpenBabel on Ubuntu with static
libs.  The compiler is GNU (GCC/G++), Eigen3, Zlib, Cairo and XML2
libraries were installed.

The error message appears during the linking step:

Linking CXX executable ../bin/babel
../src/libopenbabel.a(plugin.o): In function `OpenBabel::EnableStaticPlugins()':
/home/asn/Downloads/openbabel/src/plugin.cpp:245: undefined reference
to `OpenBabel::theChemDrawBinaryFormat'
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


Below, I pasted the output from the CMake. Any clues/hints?


Thanks in advance,

--Alessandro

#################################################################################

cmake -DCMAKE_INSTALL_PREFIX=/usr/local/openbabel -DBUILD_SHARED=OFF
../openbabel
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using included inchi library.
-- Found LibXml2: /usr/lib/i386-linux-gnu/libxml2.a
-- Found ZLIB: /usr/local/lib/libz.a (found version "1.2.7")
-- Could NOT find wxWidgets (missing:  wxWidgets_FOUND)
-- Looking for conio.h
-- Looking for conio.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for rpc/xdr.h
-- Looking for rpc/xdr.h - found
-- Looking for regex.h
-- Looking for regex.h - found
-- Looking for C++ include sstream
-- Looking for C++ include sstream - found
-- Looking for rint
-- Looking for rint - not found.
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for sranddev
-- Looking for sranddev - not found.
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of clock_t
-- Check size of clock_t - done
-- Performing Test SCANDIR_NEEDS_CONST
-- Performing Test SCANDIR_NEEDS_CONST - Failed
-- Performing Test HAVE_GCC_VISIBILITY
-- Performing Test HAVE_GCC_VISIBILITY - Success
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0")
-- checking for module 'cairo'
--   found cairo, version 1.10.2
-- Found Cairo: /usr/lib/i386-linux-gnu/libcairo.a
-- Cairo found. PNG output will be supported.
-- Looking for getopt
-- Looking for getopt - found
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- GUI will not be built
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/asn/Downloads/build

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to