I am trying to install freeGLUT in Lion. I am following the next steps:
./autogen.sh
CPPFLAGS="-I/usr/X11R6/include" ./configure --prefix="${PWD}/…/"
make
make install
first two steps fine, but when i make the make or the make install i got the next error:
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [libglut.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
not sure if i am doing something wrong or this a software issue. Any ideas?
I am actually facing the exact same problem and there seems to be no reply to this question. I am wondering if anyone has solved this problem and generously share how?
Can you investigate a bit about your arch settings ?
do you have a 64bits OS or not ?
do a “file” on your compiled .o .so .a and post results. ie :
file lib/freeglut.so
lib/freeglut.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped
or :
ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
do the same on the X libs installed on your system.
check the output of the autogen and configure steps, to check for any misdetection of your actual architecture