automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't find the correct set of libs on FC5/x64


From: Robert J. Hansen
Subject: Can't find the correct set of libs on FC5/x64
Date: Thu, 24 Aug 2006 11:48:00 -0500
User-agent: Thunderbird 1.5.0.5 (Macintosh/20060719)

I'm currently taking a course in graphics programming with OpenGL, and
thought it would be kind of me to turn in assignments which are
./configurable.  My desktop environment is an OS X box, and the TAs are
running a variety of different Unices.

This seems like a job for Autotools, so I set up a minimal environment.
 I'm not an Autotools geek by any stretch of the imagination, but
getting it running under OS X involved not very much pain at all.

However, it bombs under Fedora Core 5 on x64.  Apparently it finds
different libraries (both 64-bit and 32-bit) and tries to use both sets
simultaneously for linking purposes, which is causing no end of heartbreak.

The minimal environment is set up as:

template/ --+
            |
            + src/

The template/configure.in:

AC_INIT(src/test.cpp)
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE(rjh-hwk, 1.0)
AC_PROG_CC
AC_PROG_CXX
AC_PROG_LIBTOOL
AX_BOOST([1.32.0],[],[AC_MSG_ERROR([Package requires the Boost
libraries.])])
AX_CHECK_GL
AC_OUTPUT(Makefile src/Makefile)




The template/Makefile.am:

SUBDIRS=src




The template/src/Makefile.am:

AM_CFLAGS=${CFLAGS} ${PTHREAD_CFLAGS} ${GL_CFLAGS}
AM_CPPFLAGS=${CPPFLAGS} ${PTHREAD_CFLAGS} ${GL_CFLAGS} ${BOOST_CPPFLAGS}
LIBS=${BOOST_LIBS_R} ${GL_LIBS}
CC=${PTHREAD_CC}
bin_PROGRAMS=hwk_1
hwk_1_SOURCES = test.cpp




And, finally, the error I'm seeing:

/bin/sh ../libtool --tag=CXX --mode=link g++  -g -O2   -o hwk_1  test.o
  -lGL -L/usr/X11R6/lib64 -lX11
g++ -g -O2 -o hwk_1 test.o  /usr/lib/libGL.so -L/usr/X11R6/lib -lm
-lXext -ldl -L/usr/X11R6/lib64 -lX11
/usr/lib/libGL.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [hwk_1] Error 1
make[2]: Leaving directory
`/mnt/nfs/fileserv/grad/rjhansen/Projects/22c151/template/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/mnt/nfs/fileserv/grad/rjhansen/Projects/22c151/template'
make: *** [all] Error 2


... Can anyone give me a simple Autotools solution to these build woes?

Also, if there are any style pointers on how to make this setup more
canonically correct (while still being readable to a non-wizard), I'd
welcome any corrections.

Thanks much for any help you can provide.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]