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

luizcsm
Acid Blob (New member)
Acid Blob (New member)
Posts: 7
Joined: Wed Aug 04, 2010 5:31 am
Location: BH - Brasil

Problem with "make install"

Post by luizcsm »

Code: Select all

luizcsm@luizcsm-laptop:~/Download/nova/2.6.x$ sudo make install
[sudo] password for luizcsm: 
######################################
# Thank you for installing egoboo! 
#
# The default install of egoboo will require the commandline 
#     "sudo make install"
# and the required password
#
# If you do not have root access on this machine, 
# you can specify a prefix on the command line: 
#     "make install PREFIX=$HOME/.local"
# where the environment variable PREFIX specifies a
# virtual root for your installation. In this example,
# it is a local installation for this username only.
#
mkdir -p /usr/games
install -m 755 ./game/egoboo-2.x /usr/games
mkdir -p /usr/share/games/egoboo-2.x
cp -rdf ./basicdat /usr/share/games/egoboo-2.x
cp -rdf ./modules /usr/share/games/egoboo-2.x
mkdir -p /home/luizcsm/.egoboo-2.x
cp -rdf ./players /home/luizcsm/.egoboo-2.x
mkdir -p /usr/etc/egoboo-2.x
cp -rdf setup.txt /usr/etc/egoboo-2.x/setup.txt
cp -rdf controls.txt /usr/etc/egoboo-2.x/controls.txt
cp -rdf ./game/egoboo-2.x.sh /home/luizcsm
cp: impossível obter estado de `./game/egoboo-2.x.sh': Arquivo ou diretório não encontrado
make: ** [install] Erro 1
luizcsm@luizcsm-laptop:~/Download/nova/2.6.x$ 
Hello!

I used to play egoboo in Windows but I'm trying to use Linux now (Ubuntu 10.04).

I installed required packages then compiled the game. Everything went well, but i got the error above after trying to use 'make install' command. Translation to the English:

Code: Select all

cp: impossible to get status of `./game/egoboo-2.x.sh': File or folder not found
make: ** [install] Error 1
I downloaded sources from Revision 1164: /branches/2.6.x

Can somebody help me?

Thanks. Yours, LC.
That's me.
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 »

This file has been removed from the svn without modifying the makefile. Sorry, our Linux support is not up-to-date.
luizcsm
Acid Blob (New member)
Acid Blob (New member)
Posts: 7
Joined: Wed Aug 04, 2010 5:31 am
Location: BH - Brasil

Post by luizcsm »

Which version can I use to have some fun?

I tried to download latest stable release but I can't extract the package. It's corrupted (CRC error while extracting).

Yours, LC.
That's me.
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Post by penguinflyer5234 »

luizcsm wrote:I tried to download latest stable release but I can't extract the package. It's corrupted (CRC error while extracting).
Known Ubuntu bug in gzip, not our problem.

As for ./egoboo-2.x.sh not there, I didn't think that it was actually being installed and it isn't used anymore, so I deleted it. :?

Just remove that line in Makefile that installs the file.

[edit]Fixed in rev 1165.
...
luizcsm
Acid Blob (New member)
Acid Blob (New member)
Posts: 7
Joined: Wed Aug 04, 2010 5:31 am
Location: BH - Brasil

Post by luizcsm »

Code: Select all

root@luizcsm-laptop:/usr/games# ./egoboo-2.x
Initializing filesystem services...
Game directories are:
	Binaries: /usr/games/
	Data: /usr/share/games/egoboo-2.x/
	User Data: /root/.egoboo-2.x/
	Config Files: /usr/etc/egoboo-2.x/
root@luizcsm-laptop:/usr/games#
Need help here =p
That's me.
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 »

check "/root/.egoboo-2.x/debug/log.txt" for errors
luizcsm
Acid Blob (New member)
Acid Blob (New member)
Posts: 7
Joined: Wed Aug 04, 2010 5:31 am
Location: BH - Brasil

Post by luizcsm »

Edit: It's not a "make install" problem now. Creating another topic.

Thanks for the help.
That's me.
TheUnknownGuy
Acid Blob (New member)
Acid Blob (New member)
Posts: 3
Joined: Wed Aug 18, 2010 4:10 am

Post by TheUnknownGuy »

penguinflyer5234 wrote:
luizcsm wrote:I tried to download latest stable release but I can't extract the package. It's corrupted (CRC error while extracting).
Known Ubuntu bug in gzip, not our problem.

As for ./egoboo-2.x.sh not there, I didn't think that it was actually being installed and it isn't used anymore, so I deleted it. :?

Just remove that line in Makefile that installs the file.

[edit]Fixed in rev 1165.
Just wanted to comment on this one: I've found that whereas the default compressed files manager fails to work, the "ark" application is able to open them just fine:
http://packages.ubuntu.com/dapper/ark
User avatar
Zefz
Squirrel Knight (Administrator)
Squirrel Knight (Administrator)
Posts: 3820
Joined: Wed Jul 23, 2008 1:27 am
Location: Norway
Contact:

Post by Zefz »

Thanks! we will tell other people who encounter this problem.
User avatar
Maxaxle
Darkshine Knight (Extremist fanatic)
Darkshine Knight (Extremist fanatic)
Posts: 4035
Joined: Fri Jul 25, 2008 8:16 pm
Location: San Diego, CA
Contact:

Post by Maxaxle »

Zefz wrote:Thanks! we will tell other people who encounter this problem.
Like me?
*downloads and installs Ark*
EDIT: Now all I get is Error 1 (directory does not exist). Great.
"Failing to plan is planning to fail."
Bug me if you want to play a game.
Ben
Acid Blob (New member)
Acid Blob (New member)
Posts: 2
Joined: Thu Sep 02, 2010 6:33 am

same problem here -Almost

Post by Ben »

Hello somebody:
I just registered in order to get help getting this game installed on my system.
It runs Fedora 13, i686, alone, on a lenovo.
Had read other posts about this, but cannot find the answer on what I'm missing.
Read also the instructions that came with the tarball.
I installed everything the source requires in order to compile (maybe Im still missing something that is not specified on the TXT/README or PDF files).
Here is my last command in terminal:

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 -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
/usr/bin/ld: camera.o: undefined reference to symbol 'sincosf@@GLIBC_2.1'
/usr/bin/ld: note: 'sincosf@@GLIBC_2.1' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation
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
(I translated some of the sentences from Spanish to English)
I got stuck there. And I cannot advance because of this error. PLease help.
Thank you.
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Post by penguinflyer5234 »

...huh. add -lm to LDFLAGS in game/Makefile

I dunoo what ld spat out at the end though...
...
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 »

the function sincosf is not directly used in the program, which means that it has been added by the compiler. If the linker is complaining, then you may be missing something in your gcc installation. Make sure you have build-essential installed, since that seems to be a common problem with building under linux.
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Post by penguinflyer5234 »

build-essential is Ubuntu, birdy, not Fedora...
...
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 »

Whatever, there is a base library missing, which indicates an incomplete gcc install.
Post Reply