|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
|
Thread Tools | Display Modes |
|
|||
Trying to compile GLUT source code on freebsd.
Hello folks
I`m trying to compile Psypong3d on my freebsd 7.1 box. http://psypong3d.sourceforge.net/ It`s a pong clone with nice glut graphics. The code and makefile are simple, but I run into a make error. First, I installed freeglut. Second, I added the FreeBSD paths for GL Libs and headers to the make-file. Then it looks like this: Code:
CC = gcc OUT = pp3d CFLAGS = -g -W -Wall -I/usr/local/include LIBS = -lglut -lm -L/usr/local/lib OBJECTS = common.o bmp.o main.o game.o floor.o player.o ball.o camera.o keyboard.o $(OUT) : $(OBJECTS) $(CC) $(CFLAGS) $(OBJECTS) -o $(OUT) $(LIBS) @echo -e "\nBuild complete!" @echo -e "\nTo run the program type: ./$(OUT)\n" clean: rm -rf *.o rm -rf $(OUT) It compiles most part of the code, but I always get an error about main.o main.o(.text+0xd7): In function `main': /usr/home/welkin/psypong3d-0.9/src/main.c:38: undefined reference to `on_exit' gmake: *** [pp3d] Error 1 I`m not very experienced with makefiles, so maybe someone has a idea. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
explore source code for installed program | bsdnewbie999 | OpenBSD General | 1 | 23rd February 2009 06:13 AM |
Google released Android source code | graudeejs | Off-Topic | 1 | 22nd October 2008 10:02 PM |
Source code for ed? | matt | FreeBSD Ports and Packages | 1 | 21st October 2008 08:18 PM |
Kernel Compilation --> Error code 2 --> geom_part_pc98 (FreeBSD 7.0) | stou | FreeBSD Installation and Upgrading | 15 | 11th October 2008 04:43 AM |
Source code of coreutils to create Incident Response Disk | audio | FreeBSD General | 6 | 5th July 2008 11:00 AM |