Hi,

I am developing with openbabel and trying to draw molecules. I think I am
supposed to use the OBDepict class (correct me if I'm wrong). However, in
my package (tried installing from homebrew/macports and compiling
manually), include/depict/ is not installed. If I copy this folder from the
source code, I get some errors like this which I think means I'm missing
the libraries.

sxh% make draw_test
g++ draw_test.cpp -L/Users/sxh/Tools/openbabel-2.4.1/lib -lopenbabel
-L/usr/local/Cellar/cairo/1.15.2/lib -lcairo
-I/Users/sxh/Tools/openbabel-2.4.1/include/openbabel-2.0
-I/usr/local/Cellar/cairo/1.15.2/include/cairo
-I/usr/local/Cellar/glib/2.50.2/include/glib-2.0
-I/usr/local/Cellar/glib/2.50.2/lib/glib-2.0/include
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.39/include
-I/usr/local/Cellar/pixman/0.34.0/include/pixman-1
-I/usr/local/Cellar/fontconfig/2.12.1_2/include
-I/usr/local/opt/freetype/include/freetype2
-I/usr/local/Cellar/libpng/1.6.28/include/libpng16 -o draw_test.exe
Undefined symbols for architecture x86_64:
  "OpenBabel::CairoPainter::WriteImage(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&)",
referenced from:
      _main in draw_test-836365.o
  "OpenBabel::CairoPainter::CairoPainter()", referenced from:
      _main in draw_test-836365.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make: *** [draw_test] Error 1


How do I solve this? Thanks in advance!

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