I'm trying to build allegro 4.4.2 on linux (Ubuntu xenial), and I'm getting an undefined reference when linking grabber
Here is what I did:
Here is the error I get:
This seems to suggest a missing library when linking grabber, or maybe the wrong ordering of libraries. I tried to trace it down to the contents of tools/CMakeFiles/grabber.dir/link.txt
/usr/bin/cc -W -Wall -Wno-unused-parameter -Wdeclaration-after-statement -g -DDEBUGMODE=1 CMakeFiles/grabber.dir/grabber.c.o -o grabber -rdynamic ../lib/libaldat.a ../lib/libjpgalleg-debug.a ../lib/liballeg-debug.so.4.4.2 -lm -lpthread -lrt -lSM -lICE -lX11 -lXext -lXcursor -lXpm -lXxf86vm -ldl -Wl,-rpath,/home/martijn/allegro-4.4.2/Build/Debug/lib:
But I don't know what could be wrong here... Any ideas?
Where does that get_value come from ?
If maybe it comes from the allegro core library, then you should move ../lib/libjpgalleg-debug.a after ../lib/liballeg-debug.so.4.4.2 ?
EDIT: google gave me another answer:
https://sourceforge.net/p/alleg/bugs/398/
Thanks, somehow my google foo was bad, because my searches didn't turn up that bug report.
Without this fix the out-of-the box experience of Allegro 4.4.2 is not great. Will there be a 4.4.2.1?
edit: the patch has been applied to git now. Looks like we'll have to get Allegro 4 from there for the time being.