From: Michael Norton <mnorton@cisco.com>
To: linuxppc-dev@lists.linuxppc.org
Subject: More Makefile Questions...
Date: Mon, 23 Oct 2000 12:22:25 -0700 (PDT) [thread overview]
Message-ID: <200010231922.MAA20122@cisco.com> (raw)
hi,
I am still have problems with my linker. When I compile I see the following problem:
[mnorton@b9 console]#make
gcc -I/usr/X11R6/include -I/usr/X11R6/include/GL glConsole.o /usr/lib/libglut.so.3.7.0 -L/usr/X11R6/lib -L/usr/local/lib -lXext -lX11 -o gameCon
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
make: *** [gameCon] Error 1
Apparently I am experiencing difficulty with my lib path. Here is my Makefile:
C = gcc
CFLAGS = -g
INCLUDE = -I/usr/X11R6/include -I/usr/X11R6/include/GL
GLUT = /usr/lib/libglut.so.3.7.0
LIBPATH = -L/usr/X11R6/lib -L/usr/local/lib
#LDLIBS = -lMesaGLU -lMesaGL -lm -lXmu -lX11 -lXext -lXi -lXt
LDLIBS = -lXext -lX11
PROG = gameCon
SRCS = glConsole.c
OBJS = $(SRCS:.c=.o)
$(PROG) : $(OBJS)
$(CC) $(INCLUDE) $(OBJS) $(GLUT) $(LIBPATH) $(LDLIBS) -o $(PROG)
Now for my libraries, for instance -lXext:
[mnorton@b9 glheretic-1.1]#ls /usr/X11R6/lib/*ext*
/usr/X11R6/lib/libXext.so.6 /usr/X11R6/lib/libXext.so.6.3
I experienced similar problems trying to link Mesa libs:
[mnorton@b9 console]#make
gcc -I/usr/X11R6/include -I/usr/X11R6/include/GL glConsole.o /usr/lib/libglut.so.3.7.0 -L/usr/X11R6/lib -L/usr/local/lib -lMesaGLU -lMesaGL -lm -lXmu -lX11 -lXext -lXi -lXt -o gameCon
/usr/bin/ld: cannot find -lMesaGLU
collect2: ld returned 1 exit status
make: *** [gameCon] Error 1
I do have these libraries installed for Mesa:
[mnorton@b9 lib]#ls /usr/lib/*GL*
/usr/lib/libGL.a /usr/lib/libGL.so.1.2.030100 /usr/lib/libGLU.so.1
/usr/lib/libGL.so /usr/lib/libGLU.a /usr/lib/libGLU.so.1.2.030100
/usr/lib/libGL.so.1 /usr/lib/libGLU.so /usr/lib/libMesaGLw.a
Any ideas?
thanks,
Mike
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next reply other threads:[~2000-10-23 19:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-23 19:22 Michael Norton [this message]
2000-10-24 5:42 ` More Makefile Questions Michel Lanners
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200010231922.MAA20122@cisco.com \
--to=mnorton@cisco.com \
--cc=linuxppc-dev@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.