Errors when compiling openvrml on Ubuntu 11.04

Asked by Matse

Hi everybody.
I got stuck now for a long time having problems to compile the openvrml software on my Ubuntu 11.04. I donwloaded openvrml 0.18.8, configured it successfully. But when I try to make it, it comes up with these error messages:

libtool: link: g++ -pthread -DORBIT2=1 -D_REENTRANT -I/usr/local/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/libpng12 -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gail-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -pthread -pthread -pthread -o openvrml-player/openvrml-player openvrml-player/openvrml_player_openvrml_player-filechooserdialog.o openvrml-player/openvrml_player_openvrml_player-player.o openvrml-player/openvrml_player_openvrml_player-curlbrowserhost.o -Wl,--export-dynamic -L/usr/lib/x86_64-linux-gnu /usr/lib/libgnomeui-2.so -lSM -lICE /usr/lib/libbonoboui-2.so /usr/lib/libgnomevfs-2.so /usr/lib/libgnomecanvas-2.so /usr/lib/libart_lgpl_2.so /usr/lib/libgconf-2.so /usr/lib/libgnome-2.so /usr/lib/libpopt.so /usr/lib/libbonobo-2.so /usr/lib/libbonobo-activation.so /usr/lib/libORBit-2.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/x86_64-linux-gnu/libatk-1.0.so /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so -lgdk_pixbuf-2.0 -lm /usr/lib/libcairo.so /usr/lib/x86_64-linux-gnu/libpango-1.0.so /usr/lib/x86_64-linux-gnu/libfreetype.so -lfontconfig /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so -ldbus-glib-1 -ldbus-1 -lpthread /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libgthread-2.0.so -lrt /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/libcurl-gnutls.so -pthread
/usr/lib/libbonoboui-2.so: undefined reference to `xmlFree@LIBXML2_2.4.30'
/usr/lib/libbonoboui-2.so: undefined reference to `xmlStrdup@LIBXML2_2.4.30'
/usr/lib/libgnomevfs-2.so: undefined reference to `xmlTextReaderRead@LIBXML2_2.4.30'
/usr/lib/libgnomevfs-2.so: undefined reference to `xmlTextReaderConstName@LIBXML2_2.6.0'
/usr/lib/libgnomevfs-2.so: undefined reference to `xmlTextReaderGetAttribute@LIBXML2_2.5.0'
/usr/lib/libgnomevfs-2.so: undefined reference to `xmlTextReaderDepth@LIBXML2_2.4.30'
/usr/lib/libgnomevfs-2.so: undefined reference to `xmlTextReaderConstXmlLang@LIBXML2_2.6.0'
/usr/lib/libbonoboui-2.so: undefined reference to `xmlParseDocument@LIBXML2_2.4.30'
/usr/lib/libgnomevfs-2.so: undefined reference to `xmlNewTextReaderFilename@LIBXML2_2.4.30'
/usr/lib/libgnomevfs-2.so: undefined reference to `xmlTextReaderNodeType@LIBXML2_2.4.30'
/usr/lib/libbonoboui-2.so: undefined reference to `xmlCreateMemoryParserCtxt@LIBXML2_2.4.30'
/usr/lib/libbonoboui-2.so: undefined reference to `xmlFreeParserCtxt@LIBXML2_2.4.30'
/usr/lib/libbonoboui-2.so: undefined reference to `xmlCreateFileParserCtxt@LIBXML2_2.4.30'
/usr/lib/libgnomevfs-2.so: undefined reference to `xmlFreeTextReader@LIBXML2_2.4.30'
/usr/lib/libgnomevfs-2.so: undefined reference to `xmlTextReaderConstValue@LIBXML2_2.6.0'
collect2: ld returned 1 exit status
make[4]: *** [openvrml-player/openvrml-player] Error 1
make[4]: Leaving directory `/home/matse/Documents/Software-System/openvrml-0.18.8/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/matse/Documents/Software-System/openvrml-0.18.8/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/matse/Documents/Software-System/openvrml-0.18.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/matse/Documents/Software-System/openvrml-0.18.8'
make: *** [all] Error 2

Until now I wasn't able to figure out what's wrong. I know it has to do something with the LIBXML2 package, but this is installed correctly.

Any hints on how to solve this problem appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu openvrml Edit question
Assignee:
No assignee Edit question
Solved by:
Matse
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

This ppa has 0.18.6

ppa:dalai/repository

Could make life easier if you can use the slightly older version

Revision history for this message
Matse (matthias-weg) said :
#2

Thanks for the reply,
I added the ppa with:
sudo add-apt-repository ppa:dalai/repository
but the following:
sudo apt-get install openvrml
doesn't cannot find the package. Even the Ubuntu software center cannot find openvrml software.

Any other suggestions?

Revision history for this message
Matse (matthias-weg) said :
#3

Hey, finally got it work!!!!!

I found the hint on this page:

http://git.gnome.org/browse/libxml2/commit/?id=00819877651b87842ed878898ba17dba489820f0

So all I had to do is to edit the ./configure.in file and change the line:
AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -z "$VERSION_SCRIPT_FLAGS"])
to
AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -n "$VERSION_SCRIPT_FLAGS"])

Hope this helps also others who had this problem!