Modding, Mission Design, and Coding > Cross-Platform Development

autoconf issue

(1/2) > >>

mrduckman:
I got this error, though I've installed the xlibmesa-gl and -glu libraries.

Extract from config.log follows:
configure:4701: checking for glBindBufferARB in -lGL
configure:4731: gcc -o conftest -g -O2   conftest.c -lGL   >&5
/tmp/cc8PzEed.o(.text+0xa): In function `main':
/home/dsusman/freespace/cvs/fs2_open/conftest.c:35: undefined reference to `glBindBufferARB'
collect2: ld returned 1 exit status
configure:4737: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "fs2_open"
| #define PACKAGE_TARNAME "fs2_open"
| #define PACKAGE_VERSION "3.6.5"
| #define PACKAGE_STRING "fs2_open 3.6.5"
| #define PACKAGE_BUGREPORT ""
| #define NO_CD_CHECK 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define NDEBUG 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char glBindBufferARB ();
| int
| main ()
| {
| glBindBufferARB ();
|   ;
|   return 0;
| }
configure:4762: result: no


I hope you don't end up telling me to compile it :(

taylor:

--- Quote ---Originally posted by mrduckman
I got this error, though I've installed the xlibmesa-gl and -glu libraries.

I hope you don't end up telling me to compile it :(
--- End quote ---

You just need a newer version of Mesa.  Version 5 is the minimum that will work though I've only tested down to 5.0.2.  I've got precompiled x86 versions if you want but nothing for x86_64.

The old installer package for fs2_open from a year or so ago had the libs in it and a script that would detect if they needed to be used over the older system versions.  I can't remember the filename offhand but look though http://icculus.org/~taylor/fso/ and the .run package should be there somewhere.  You can just extract the libs and the script and with a few minor modifications you can use it with any current x86 version of fs2_open.

mrduckman:
I'll check the headers you have there. I haven't tested on the amd64, but on a plain x86. I'd be able to tell tomorrow, when I get back to work :P

mrduckman:
Grrrr. Debian sarge has 4.2.1.. Compiling 6.2.1

mrduckman:
Compiling fs2_open now. Seems you have to install Mesa 6.2.1 over the local installation.

Navigation

[0] Message Index

[#] Next page

Go to full version