Yanzqing / brown-ros-pkg

Automatically exported from code.google.com/p/brown-ros-pkg
0 stars 0 forks source link

patched ARToolkit (in ar_recog) does not compile on Ubuntu 13.04 [solution provided] #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download ar_recog.tar.bz2 from this code repo
2. extract into ROS Hydro workspace
3. run ./getAndBuildARToolkit.py

What is the expected output? What do you see instead?
Expected: compilation successful. Got: bunch of linker warnings about basic gst 
/ glib functions not found (e.g. g_print)

What version of the product are you using? On what operating system?
Ubuntu 13.04 x64, ROS Hydro. Latest codebased as of November 27th, 2013.

SOLUTION:
The problem appears to be due to a change in the process ordering of linked 
libraries. This can be fixed by making a few more patches to ARToolkit's 
Configure script (full python script attached below):

112c112
<         LDFLAG="$GST_LIBS -L/usr/X11R6/lib -L/usr/local/lib"

---
>         LDFLAG="-L/usr/X11R6/lib -L/usr/local/lib"
115c115
<         LIBS="-lpthread -lglut -lGLU -lGL -lXi -lX11 -lm"

---
>         LIBS="-lpthread -lglut -lGLU -lGL -lXi -lX11 -lm $GST_LIBS"

Original issue reported on code.google.com by mimicmas...@gmail.com on 28 Nov 2013 at 8:12

Attachments: