Hello. I am in the process of making my own little game. I started the project in Linux. My machine is a 64BIT AMD Optron, 2.2GZ, running FC3. Video card is geForce 6800GT. Anyhow, everything was going well. Then I moved my project to Windows XP, and did some dev' on that for a while (because I intend this to be OSI). All was going just fine, until I decided that I wanted to do some more dev in Linux. Allot of code has changed, but nothing I know of that would cause the error I am having. Everything compiles fine, but at linking, I get these messages:
Code:
g++ -g -O2 `sdl-config --cflags` `freetype-config --cflags` -Iinclude/ -I. -I/usr/include/python2.3/ -I/usr/local/include/python2.3/ -L/usr/lib -L/lib -L. -L/usr/lib/python2.3/config -L/usr/share/lib -L/usr/X11R6/lib -L/usr/local/lib -o coltest source/bind.o source/collisiontest.o source/command.o source/console.o source/engine.o source/exception.o source/font.o source/gmath.o source/gstring.o source/gui_arrowbutton.o source/gui_button.o source/gui.o source/gui_editbox.o source/gui_menu.o source/gui_packbox.o source/gui_scrollarea.o source/gui_scrollbar.o source/gui_window.o source/image.o source/input.o source/keyboard.o source/material.o source/materiallayer.o source/mouse.o source/object.o source/particle.osource/physics.o source/polygon.o source/py_gl.o source/script.o source/sound.osource/system.o source/transform.o source/video.o source/world.o -lm -lGLU -lGL`sdl-config --libs` `freetype-config --libs` -lSDL_image -lSDL_net -ldl -lpython2.3 -lutil -lzzip -logg -lvorbis -lvorbisfile -lopenal
/usr/bin/ld: skipping incompatible /usr/lib/libGLU.so when searching for -lGLU
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libGLU.so when searching for -lGLU
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libGLU.a when searching for -lGLU
/usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libutil.so when searching for -lutil
/usr/bin/ld: skipping incompatible /usr/lib/libutil.a when searching for -lutil
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
My program is having lots of SEGVs, and I've been trying to track them down. I am really confused though, and think it all useless, because the problems lie in the functions that I wrote in Unix!! The only thing I can think of that has changed is that I used to have my project in KDevelop, now it is a custom makefile:
Code:
SOURCES = source/bind.cpp \
source/collisiontest.cpp \
source/command.cpp \
source/console.cpp \
source/engine.cpp \
source/exception.cpp \
source/font.cpp \
source/gmath.cpp \
source/gstring.cpp \
source/gui_arrowbutton.cpp \
source/gui_button.cpp \
source/gui.cpp \
source/gui_editbox.cpp \
source/gui_menu.cpp \
source/gui_packbox.cpp \
source/gui_scrollarea.cpp \
source/gui_scrollbar.cpp \
source/gui_window.cpp \
source/image.cpp \
source/input.cpp \
source/keyboard.cpp \
source/material.cpp \
source/materiallayer.cpp \
source/mouse.cpp \
source/object.cpp \
source/particle.cpp \
source/physics.cpp \
source/polygon.cpp \
source/py_gl.cpp \
source/script.cpp \
source/sound.cpp \
source/system.cpp \
source/transform.cpp \
source/video.cpp \
source/world.cpp
OBJS = ${SOURCES:.cpp=.o}
CFLAGS = -g -O2 `sdl-config --cflags` `freetype-config --cflags` -Iinclude/ -I. -I/usr/include/python2.3/ -I/usr/local/include/python2.3/ -L/usr/lib -L/lib -L. -L/usr/lib/python2.3/config -L/usr/share/lib -L/usr/X11R6/lib -L/usr/local/lib
LIBS = -lm -lGLU -lGL `sdl-config --libs` `freetype-config --libs` -lSDL_image -lSDL_net -ldl -lpython2.3 -lutil -lzzip -logg -lvorbis -lvorbisfile -lopenal
CC = g++
PACKAGE = coltest
all : ${OBJS}
${CC} ${CFLAGS} -o ${PACKAGE} ${OBJS} ${LIBS}
.cpp.o:
${CC} ${CFLAGS} -c $< -o ${<:.cpp=.o}
clean :
rm -f ${PACKAGE}
rm -f ${OBJS}
install :
./buildpak
# end of file
I would much appreciate any help offered. Thanks a ton in advance!