Problem with "make install"

Help regarding development/scripting, troubleshooting or just general gameplay -- anything that hasn't already been answered in the Wiki or pinned FAQs.

Moderator: Developers

Ben
Acid Blob (New member)
Acid Blob (New member)
Posts: 2
Joined: Thu Sep 02, 2010 6:33 am

Post by Ben »

Hello developers: :)
Thank you for your promptly reply. I just got the time to review this post for answers. Hours ago I DWLed the windows version to try it on wine, with no luck -well, the game loads fine, but any module doesn't start, crashing/exiting the program next.
penguinflyer5234 wrote:...huh. add -lm to LDFLAGS in game/Makefile

I dunoo what ld spat out at the end though...
Here's what I got after editing that Makefile:

Code: Select all

[U@turdy Egoboo 2.8.0]$ make all
make -C ./game all PREFIX=/usr PROJ_NAME=egoboo-2.x
make[1]: entering directory `/home/U/Egoboo 2.8.0/game'
gcc -o egoboo-2.x bbox.o bsp.o camera.o char.o client.o clock.o collision.o egoboo_console.o egoboo_endian.o egoboo_fileutil.o egoboo_math.o egoboo_setup.o egoboo_strutil.o egoboo_typedef.o egoboo_vfs.o enchant.o file_common.o font_bmp.o font_ttf.o game.o graphic.o graphic_fan.o graphic_mad.o graphic_prt.o hash.o input.o lighting.o link.o log.o mad.o md2.o menu.o mesh.o network.o particle.o passage.o profile.o quest.o script.o script_compile.o script_functions.o server.o sound.o texture.o ui.o egoboo.o physics.o egoboo_process.o ChrList.o EncList.o PrtList.o egoboo_object.o file_formats/cap_file.o file_formats/configfile.o file_formats/controls_file.o file_formats/eve_file.o file_formats/id_md2.o file_formats/module_file.o file_formats/mpd_file.o file_formats/passage_file.o file_formats/pip_file.o file_formats/scancode_file.o file_formats/SDL_md2.o file_formats/spawn_file.o file_formats/template.o file_formats/wawalite_file.o extensions/ogl_debug.o extensions/ogl_extensions.o extensions/ogl_include.o extensions/ogl_texture.o extensions/SDL_extensions.o extensions/SDL_GL_extensions.o platform/file_linux.o platform/sys_linux.o -lSDL -lpthread -L../enet/lib -lSDL_ttf -lSDL_mixer -lGL -lGLU -lSDL_image -lphysfs -lenet -lm -Os -Wall -DPREFIX="/usr" -D_NIX_PREFIX -I. -I.. -I../enet/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I./extensions -I./file_formats -I./platform
egoboo_vfs.o: In function `vfs_add_mount_point':
egoboo_vfs.c:(.text+0x232a): undefined reference to `PHYSFS_mount'
collect2: ld returned exit state 1
make[1]: *** [egoboo-2.x] Error 1
make[1]: exiting directory `/home/U/Egoboo 2.8.0/game'
make: *** [egoboo] Error 2
bgbirdsey wrote:Whatever, there is a base library missing, which indicates an incomplete gcc install.
How do I know what (gcc) library I'm missing?
Is there a command for terminal, to DWL everything I need to compile this source? (without depleting my drive, of course)

PD: What does specyfically mean those ERROR 1 and ERROR 2 error messages? (Are there also ERROR 3, 4,... messages?)
bgbirdsey
{]-[0{0|307 (Developer)
{]-[0{0|307 (Developer)
Posts: 1864
Joined: Wed Jul 23, 2008 4:22 am
Location: Minnesota, USA

Post by bgbirdsey »

undefined reference to `PHYSFS_mount'
Seems like you are using the wrong version of PHYSFS? I believe that they changed some function names around in version 2.0.
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Post by penguinflyer5234 »

They added PHYSFS_mount in PhysFS 2.0. You need that version of PhysFS.
...
Post Reply