MinGW build and FTGL library for Octave 3.1.55

Alexander Mamonov mamonov at gmail.com
Mon May 4 18:38:11 CDT 2009


I'm not sure whether it should be posted on the bug list or not, but
I'll try anyway.
While doing ./configure on a MinGW system the script failed to detect
the FTGL library.
After analyzing the log file and some googling I found out that the
problem is in the
order of the libraries with which ./configure builds the tests. To
make the long story short,
the correct order in MinGW should be
-lftgl -lglu32 -lopengl32
which is in reverse to what ./configure does.
I hacked the configure script and it works. This is of course not a
proper way of doing it.
Could somebody with the knowledge of autotools make the appropriate changes?
This change should only apply to MinGW, since the current order seems
correct for
other Unix-like environments.
The same change should probably apply to all parts of Octave that are
linked to graphical
libraries that use OpenGL.
Here are a couple links that explain what happens:
http://www.mail-archive.com/flightgear-devel@flightgear.org/msg11971.html
http://www.gamedev.net/community/forums/topic.asp?topic_id=377848


Thank you,

Alexander


More information about the Bug-octave mailing list