Cormaher Report post Posted December 8, 2005 Hi all, I decided to give el on FreeBSD another try after a few months off. I just can't get it to compile. I tried: make -f Makefile.bsd release and it returned: `all' not remade because of errors. The most notable error (for my untrained eye) was: Graph cycles through framebuffer.o I started afresh, now using: gmake -f Makefile.bsdg release and it returned: gmake[1]: *** [2d_objects.o] Error 1 gmake[1]: Leaving directory `/usr/home/frans-jan/el-112/elc' gmake: *** [release] Error 2 The full output from gmake is posted below. I ran this in the elc directory from elc-112.tgz. I have no experience with installing software this way (I use the ports-system mostly, but that is stuck wit el-101). What am I missing? (details on system: FreeBSD 6-STABLE on AMD Sempron x86, Nvidia graphics with proprietary nvidia-driver, xorg-6.8.2, sdl-1.2.9) gmake-errors: $ gmake -f Makefile.bsdg release gcc -march=i686 -g -ggdb -pipe -DLINUX -DELC -DBSD -DPNG_SCREENSHOT -I/usr/local/include/SDL11 -I/usr/local/include -D_REENTRANT -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/X11R6/include/ -MM 2d_objects.c 3d_objects.c actor_scripts.c actors.c alphamap.c asc.c books.c buddy.c bags.c cache.c cal.c chat.c colors.c console.c consolewin.c cursors.c dialogues.c draw_scene.c elconfig.c elmemory.c elwindows.c encyclopedia.c errors.c events.c framebuffer.c filter.c font.c frustum.c gamewin.c gl_init.c hud.c help.c highlight.c ignore.c init.c interface.c items.c keys.c knowledge.c lights.c loading_win.c loginwin.c main.c manufacture.c map_io.c mapwin.c md2loader.c md5.c misc.c multiplayer.c new_actors.c new_character.c notepad.c openingwin.c particles.c paste.c pathfinder.c pm_log.c questlog.c queue.c reflection.c rules.c skills.c sector.c shadows.c sort.c sound.c spells.c stats.c storage.c symbol_table.c tabs.c text.c textures.c tile_map.c timers.c translate.c trade.c weather.c widgets.c books/fontdef.c books/parser.c books/symbols.c books/typesetter.c >.depend gmake -f Makefile.linux 'CFLAGS=-march=i686 -O3 -fomit-frame-pointer -ffast-math -pipe -DLINUX -DELC -DBSD -DPNG_SCREENSHOT -I/usr/local/include/SDL11 -I/usr/local/include -D_REENTRANT -I/usr/local/include/libxml2 -I/usr/local/include' 'CXXFLAGS=-march=i686 -O3 -fomit-frame-pointer -ffast-math -pipe -DLINUX -DELC -DBSD -DPNG_SCREENSHOT' gmake[1]: Entering directory `/usr/home/frans-jan/el-112/elc' gcc -march=i686 -O3 -fomit-frame-pointer -ffast-math -pipe -DLINUX -DELC -DBSD -DPNG_SCREENSHOT -I/usr/local/include/SDL11 -I/usr/local/include -D_REENTRANT -I/usr/local/include/libxml2 -I/usr/local/include -c -o 2d_objects.o 2d_objects.c In file included from 2d_objects.c:7: global.h:49:19: GL/gl.h: No such file or directory global.h:50:20: GL/glu.h: No such file or directory global.h:51:22: GL/glext.h: No such file or directory In file included from global.h:90, from 2d_objects.c:7: e3d.h:206: error: syntax error before "GLuint" e3d.h:261: error: syntax error before "GLuint" In file included from global.h:95, from 2d_objects.c:7: lights.h:46: error: syntax error before "sky_lights_c1" lights.h:46: warning: data definition has no type or storage class lights.h:47: error: syntax error before "sky_lights_c2" lights.h:47: warning: data definition has no type or storage class lights.h:48: error: syntax error before "sky_lights_c3" lights.h:48: warning: data definition has no type or storage class lights.h:49: error: syntax error before "sky_lights_c4" lights.h:49: warning: data definition has no type or storage class lights.h:52: error: syntax error before "sun_ambient_light" lights.h:52: warning: data definition has no type or storage class lights.h:53: error: syntax error before "difuse_light" lights.h:53: warning: data definition has no type or storage class lights.h:100: error: syntax error before "x" In file included from global.h:98, from 2d_objects.c:7: interface.h:89: error: syntax error before "cont_text" interface.h:89: warning: data definition has no type or storage class interface.h:90: error: syntax error before "legend_text" interface.h:90: warning: data definition has no type or storage class In file included from global.h:102, from 2d_objects.c:7: shadows.h:15: error: syntax error before "depth_map_id" shadows.h:15: warning: data definition has no type or storage class shadows.h:16: error: syntax error before "depth_texture_target" shadows.h:16: warning: data definition has no type or storage class In file included from global.h:103, from 2d_objects.c:7: particles.h:58: error: syntax error before "GLenum" In file included from global.h:108, from 2d_objects.c:7: weather.h:39: error: syntax error before "fogColor" weather.h:39: warning: data definition has no type or storage class In file included from global.h:110, from 2d_objects.c:7: items.h:143: error: syntax error before "get_items_texture" items.h:143: warning: data definition has no type or storage class In file included from global.h:112, from 2d_objects.c:7: draw_scene.h:11: error: syntax error before "paper1_text" draw_scene.h:11: warning: data definition has no type or storage class draw_scene.h:46: error: syntax error before "base_unit" draw_scene.h:46: warning: data definition has no type or storage class In file included from global.h:118, from 2d_objects.c:7: gl_init.h:59: error: syntax error before "target" gl_init.h:60: error: syntax error before "texture" gl_init.h:61: error: syntax error before "texture" gl_init.h:62: error: syntax error before "first" gl_init.h:64: error: syntax error before "target" gl_init.h:65: error: syntax error before "no" gl_init.h:66: error: syntax error before "no" gl_init.h:67: error: syntax error before "target" gl_init.h:68: error: syntax error before "n" gl_init.h:69: error: syntax error before "n" gl_init.h:70: error: syntax error before "target" gl_init.h:71: error: syntax error before "target" gl_init.h:72: error: syntax error before "n" gl_init.h:73: error: syntax error before "n" gl_init.h:74: error: syntax error before "n" gl_init.h:75: error: syntax error before "n" gl_init.h:76: error: syntax error before "n" gl_init.h:77: error: syntax error before "type" gl_init.h:78: error: syntax error before "type" gl_init.h:79: error: syntax error before '*' token gl_init.h:80: error: syntax error before "shader" gl_init.h:81: error: syntax error before "shader" gl_init.h:82: error: syntax error before '*' token gl_init.h:83: error: syntax error before "program" gl_init.h:84: error: syntax error before "program" gl_init.h:85: error: syntax error before "program" In file included from global.h:120, from 2d_objects.c:7: misc.h:35: error: syntax error before "wx" In file included from global.h:121, from 2d_objects.c:7: paste.h:24:22: X11/Xlib.h: No such file or directory In file included from global.h:121, from 2d_objects.c:7: paste.h:44: error: syntax error before "event" In file included from global.h:122, from 2d_objects.c:7: textures.h:29: error: syntax error before "load_bmp8_color_key" textures.h:29: warning: data definition has no type or storage class textures.h:42: error: syntax error before "load_bmp8_fixed_alpha" textures.h:42: warning: data definition has no type or storage class textures.h:139: error: syntax error before "load_bmp8_remapped_skin" textures.h:140: warning: data definition has no type or storage class 2d_objects.c: In function `draw_2d_object': 2d_objects.c:78: error: `GL_QUADS' undeclared (first use in this function) 2d_objects.c:78: error: (Each undeclared identifier is reported only once 2d_objects.c:78: error: for each function it appears in.) 2d_objects.c:102: error: `GL_TEXTURE_2D' undeclared (first use in this function) 2d_objects.c: In function `display_2d_objects': 2d_objects.c:488: error: `GL_ALPHA_TEST' undeclared (first use in this function) 2d_objects.c:489: error: `GL_GREATER' undeclared (first use in this function) 2d_objects.c: At top level: lights.h:52: warning: array 'sun_ambient_light' assumed to have one element lights.h:53: warning: array 'difuse_light' assumed to have one element weather.h:39: warning: array 'fogColor' assumed to have one element gmake[1]: *** [2d_objects.o] Error 1 gmake[1]: Leaving directory `/usr/home/frans-jan/el-112/elc' gmake: *** [release] Error 2 (I'm sorry for the long post) Quote Share this post Link to post Share on other sites
freeone3000 Report post Posted December 9, 2005 Looks like CVS is broken again, I can't make either, Win or Debian. Quote Share this post Link to post Share on other sites
Lhibou Report post Posted December 9, 2005 global.h:49:19: GL/gl.h: No such file or directory global.h:50:20: GL/glu.h: No such file or directory global.h:51:22: GL/glext.h: No such file or directory Seems that you headers file for opengl are not accessible. Missing perhaps a -Isomething to access then. Quote Share this post Link to post Share on other sites
ttlanhil Report post Posted December 9, 2005 global.h:49:19: GL/gl.h: No such file or directory global.h:50:20: GL/glu.h: No such file or directory global.h:51:22: GL/glext.h: No such file or directory Seems that you headers file for opengl are not accessible. Missing perhaps a -Isomething to access then. also paste.h:24:22: X11/Xlib.h: No such file or directory if these headers are somewhere not in the -I lines in the makefile, but are in the standard FBSD location, please let us know where that dir is so that it can be added to the makefile... if you have them in some non-standard location, a symlink in one of the -I dirs would be better (then other programs you compile can find them too) Quote Share this post Link to post Share on other sites
Cormaher Report post Posted December 9, 2005 I'll look those up ASAP, thanks for the help Quote Share this post Link to post Share on other sites
Cormaher Report post Posted December 9, 2005 allright, I made it. the files mentioned were in /usr/X11R6/include/ I copied them to /usr/local/include/ to be sure. I couldn't get it to work by editing the Makefile, but then again, I do not know anything about that stuff. Copying them worked. It appears that it needed cal3d to be installed, and even after that it wouldn't find some files located in /usr/local/include/cal3d/ when using g++ (there was no -I option on the commandline, while it was in Makefile.bsdg maybe this is an issue with Makefile.linux). I manually issued the g++ command with -I/usr/local/include/ which builded the files it should, then issued the make command again which builded everything else. The thing complained about sdl-config missing, so I ln-ed /usr/local/bin/sdl11-config to sdl-config. It worked, somehow. The 'make' result was an executable named el.x86.linux.bin which I renamed to el.x86.bsd.bin and copied into the el-directory. Then it ran, but I could not see myself, or anyone else for that matter. I copied the el-directory to /usr/local/games/el/ and everything worked as it should. When I have more time tomorrow I'll look into it some more. I have some programming skills, and I'm determined to get the FreeBSD-port upgraded to el-112. The only things that can bother that is lack of knowledge or lack of time. The latter due to me being able to play EL again Quote Share this post Link to post Share on other sites
Wytter Report post Posted December 10, 2005 Which cal3d version did you build and install? Quote Share this post Link to post Share on other sites
Cormaher Report post Posted December 10, 2005 cal3d-0.10.0 The files it missed where there, only /usr/local/include/ was not searched for them. When I manually issued the g++-command for cal3d-wrapper with -I/usr/local/include it worked. Quote Share this post Link to post Share on other sites
Enki Report post Posted December 24, 2005 The "right" way to do this is to add some flags in the Makefile.. -L/usr/local/lib -I/usr/local/include and it should find the header files and the libs.. /Enki Quote Share this post Link to post Share on other sites