branch or trunk to follow to compile egoboo ?

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

Moderator: Developers

Post Reply
shirish
Acid Blob (New member)
Acid Blob (New member)
Posts: 14
Joined: Wed Dec 22, 2010 6:21 pm

branch or trunk to follow to compile egoboo ?

Post by shirish »

Hi all,
Newbie here. Do not want to try just the 2.8.1 release. It would be nice if I could do from branch/trunk. The only version given in the sourceforge.net project page for code is :-

Code: Select all

https://egoboo.svn.sourceforge.net/svnroot/egoboo
Any idea if this is the right (or there is some obsolete stuff) .

Also does anybody have an idea as how big the repo might be if I checkout the whole trunk ?

Looking forward for info.
Intel Dual-Core CPU E5400 @ 2.70GHz, Asus MB P5KPL-AM IN, D-Link 502-T router, 64-bit Debian Sid, GNOME 2.30.2
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Re: branch or trunk to follow to compile egoboo ?

Post by penguinflyer5234 »

https://egoboo.svn.sourceforge.net/svnr ... ches/2.8.x and https://egoboo.svn.sourceforge.net/svnr ... es/install are the two you need; the size should be comparable to the regular tarball uncompressed.
...
shirish
Acid Blob (New member)
Acid Blob (New member)
Posts: 14
Joined: Wed Dec 22, 2010 6:21 pm

Re: branch or trunk to follow to compile egoboo ?

Post by shirish »

Hi all,
did the following :-

Code: Select all

usr/local/src/egoboo/$svn co https://egoboo.svn.sourceforge.net/svnroot/egoboo/branches/2.8.x egoboo-stable
checked out rev 1591

Code: Select all

usr/local/src/egoboo/$ svn co https://egoboo.svn.sourceforge.net/svnroot/egoboo/branches/install egoboo-stable-install
checked out rev 1591
so now I have two directories :-

Code: Select all

/usr/local/src/egoboo$ ls
egoboo-stable  egoboo-stable-install
now can somebody point me out to the next step ?

I ask as if it was in one single archive the path/instructions are given in README.Linux but now as we have two directories what do I do, copy the content of both directories in a single directory and then run them or is there a way to do it with both the directories as they are.

These are the directories :-

Code: Select all

/usr/local/src/egoboo$ ls
egoboo-stable  egoboo-stable-install
and these are the instructions as given in README.Linux :-

Code: Select all

Egoboo is set up to use the Linux make command to build and install Egoboo. Simply type

    make all
    sudo make install

and the game will be built and installed. This method works essentially the same as downloading and installing the files using a package manager, and similarly requires super-user password.

If you do not have a sudo password, you can install Egoboo to a local directory by defining a PREFIX environmental variable on the command-line. A common usage would be

    make all PREFIX=$HOME/.local
    make install PREFIX=$HOME/.local

which will build and install the game into your own home folder. To start the game, execute the shell script called egoboo-2.x in the home folder.


The program requires certain packages and other settings to build. A comprehensive list can be found in the DEPENDENCIES file.

If you experience problems, please ask in the Egoboo Forums at http://egoboo.sourceforge.net/forum/. Thank you. 
Looking forward for info.
Intel Dual-Core CPU E5400 @ 2.70GHz, Asus MB P5KPL-AM IN, D-Link 502-T router, 64-bit Debian Sid, GNOME 2.30.2
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Re: branch or trunk to follow to compile egoboo ?

Post by penguinflyer5234 »

Enter directory egoboo-stable.
Edit Makefile to change the paths ../install/ to your named directory ../egoboo-stable-install
Type make.
Hope it compiles.
Type make install_svn if compiled.
Ta-da!
...
shirish
Acid Blob (New member)
Acid Blob (New member)
Posts: 14
Joined: Wed Dec 22, 2010 6:21 pm

Re: branch or trunk to follow to compile egoboo ?

Post by shirish »

These are the four lines which are/were changed in the Makefile :-

From :-

Code: Select all

#	copy the data to the games folder
	mkdir -p ${PREFIX}/share/games/${PROJ_NAME}
	cp -rdf ../install/basicdat ${PREFIX}/share/games/${PROJ_NAME}
	cp -rdf ../install/mo
to :-

Code: Select all

#	copy the data to the games folder
	mkdir -p ${PREFIX}/share/games/${PROJ_NAME}
	cp -rdf ../egoboo-stable-install/basicdat ${PREFIX}/share/games/${PROJ_NAME}
	cp -rdf ../egoboo-stable-install/modules ${PREFIX}/share/games/${PROJ_NAME}
and :-

Code: Select all

#	copy the basic configuration files to the config directory
	mkdir -p ${PREFIX}/etc/${PROJ_NAME}
	cp -rdf ../install/setup.txt ${PREFIX}/etc/${PROJ_NAME}/setup.txt
	cp -rdf ../install/controls.txt ${PREFIX}/etc/${PROJ_NAME}/controls.txt
to :-

Code: Select all

#	copy the basic configuration files to the config directory
	mkdir -p ${PREFIX}/etc/${PROJ_NAME}
	cp -rdf ../egoboo-stable-install/setup.txt ${PREFIX}/etc/${PROJ_NAME}/setup.txt
	cp -rdf ../egoboo-stable-install/controls.txt ${PREFIX}/etc/${PROJ_NAME}/controls.txt
Fingers crossed, here goes nothing.

Edit: Got this error while trying to compile .

Code: Select all

passage.c: In function ‘who_is_blocking_passage’:
passage.c:280:115: warning: variable ‘pitem’ set but not used [-Wunused-but-set-variable]
passage.c:227:17: warning: variable ‘ppass’ set but not used [-Wunused-but-set-variable]
gcc -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   -c -o profile.o profile.c
make[1]: *** No rule to make target `quest.o', needed by `egoboo-2.x'.  Stop.
make[1]: Leaving directory `/usr/local/src/egoboo-src/egoboo-stable/game'
make: *** [egoboo] Error 2
This is with svn 1591.
Intel Dual-Core CPU E5400 @ 2.70GHz, Asus MB P5KPL-AM IN, D-Link 502-T router, 64-bit Debian Sid, GNOME 2.30.2
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Re: branch or trunk to follow to compile egoboo ?

Post by penguinflyer5234 »

Remove quest.c from the list in game/Makefile, you may also have to add any files Zefz/bgbirdsey has added but not to the Makefile
...
shirish
Acid Blob (New member)
Acid Blob (New member)
Posts: 14
Joined: Wed Dec 22, 2010 6:21 pm

Re: branch or trunk to follow to compile egoboo ?

Post by shirish »

penguinflyer5234 wrote:Remove quest.c from the list in game/Makefile, you may also have to add any files Zefz/bgbirdsey has added but not to the Makefile
I am in :-

Code: Select all

/usr/local/src/egoboo-src/egoboo-stable/game$ $ ll Makefile
-rw-r--r-- 1 shirish staff 1945 Jul 15 08:10 Makefile

partial output from the Makefile :-

Code: Select all

network.c \
	obj_BSP.c particle.c passage.c profile.c quest.c script.c script_compile.c \
	script_functions.c server.c sound.c texture.c ui.c egoboo.c physics.c\
	egoboo_process.c ChrList.c EncList.c PrtList.c egoboo_object.c
Removed quest.c so now it reads :-

Code: Select all

network.c \
	obj_BSP.c particle.c passage.c profile.c script.c script_compile.c \
	script_functions.c server.c sound.c texture.c ui.c egoboo.c physics.c\
	egoboo_process.c ChrList.c EncList.c PrtList.c egoboo_object.c
Do not get this part though :-

Code: Select all

you may also have to add any files Zefz/bgbirdsey has added but not to the Makefile
the question would be where do I need to add the files and how do I know/come to know which files Zefz/bgbirdsey have added ? But first let me try and re-compile who knows I may succeed. I would have to do a make clean first for sure.

Edit :- Did the following :-

Code: Select all

:/usr/local/src/egoboo-src/egoboo-stable$ make clean
make -C ./enet clean
make[1]: Entering directory `/usr/local/src/egoboo-src/egoboo-stable/enet'
rm -f ./lib/libenet.a host.o list.o memory.o packet.o peer.o protocol.o unix.o
make[1]: Leaving directory `/usr/local/src/egoboo-src/egoboo-stable/enet'
make -C ./game clean
make[1]: Entering directory `/usr/local/src/egoboo-src/egoboo-stable/game'
rm -f  AStar.o bbox.o bsp.o camera.o char.o client.o clock.o collision.o
.....
As expected it cleans out the shared libraries if any existed before.

Then tried compiling it again :-

Code: Select all

$ make all PREFIX= /usr/local/src/egoboo
make -C ./enet all
......
.......
nclude/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I./extensions -I./file_formats -I./platform   -c -o file_formats/quest_file.o file_formats/quest_file.c
In file included from file_formats/quest_file.c:23:0:
file_formats/quest_file.h:57:58: error: array type has incomplete element type
file_formats/quest_file.h:58:56: error: array type has incomplete element type
file_formats/quest_file.h:59:49: error: array type has incomplete element type
file_formats/quest_file.h:60:52: error: array type has incomplete element type
file_formats/quest_file.h:61:49: error: array type has incomplete element type
file_formats/quest_file.h:62:49: error: array type has incomplete element type
make[1]: *** [file_formats/quest_file.o] Error 1
make[1]: Leaving directory `/usr/local/src/egoboo-src/egoboo-stable/game'
make: *** [egoboo] Error 2

coughs out here. Looking for info. again...
Intel Dual-Core CPU E5400 @ 2.70GHz, Asus MB P5KPL-AM IN, D-Link 502-T router, 64-bit Debian Sid, GNOME 2.30.2
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Re: branch or trunk to follow to compile egoboo ?

Post by penguinflyer5234 »

you have to get Zefz or bgbirdsey to help you, I have no idea what happens inside the code at the moment.
...
bgbirdsey
{]-[0{0|307 (Developer)
{]-[0{0|307 (Developer)
Posts: 1864
Joined: Wed Jul 23, 2008 4:22 am
Location: Minnesota, USA

Re: branch or trunk to follow to compile egoboo ?

Post by bgbirdsey »

  1. The /branches/2.8.x is not a distribution. You need to combine the files with those of /branches/install to make a complete source distro. I would suggest copying the files in the /branches/2.8.x to /branches/install, since the install directory has a very large number of files
  2. Since we have no "linux guy", the various Makefile files are only updated when we get around to making a distribution. Your best bet is getting a copy of code::blocks and opening the game.workspace, and compiling the nix-gcc-release project. This is more likely to have all of the files in it, since I use it from time to time.
  3. the files that you need are:
    1. all of the .c files in /branches/2.8.x/game
    2. all of the .c files in /branches/2.8.x/game/file_formats
    3. all of the .c files in /branches/2.8.x/game/extensions
    4. file_linux.c and sys_linux.c from /branches/2.8.x/game/platform
  4. you must have the additional dependencies listed for linux in /branches/2.8.x/game/DEPENDENCIES.txt. This may be the source of some of your errors.
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Re: branch or trunk to follow to compile egoboo ?

Post by penguinflyer5234 »

with the makefile there is a install_svn that installs files from the directory ../install

also it seems like gcc is complaining about a struct s_IDSZ_node, which is not in a external dependency.
...
shirish
Acid Blob (New member)
Acid Blob (New member)
Posts: 14
Joined: Wed Dec 22, 2010 6:21 pm

Re: branch or trunk to follow to compile egoboo ?

Post by shirish »

ok, this is a bit hard for me to do so leaving this path/way.
Intel Dual-Core CPU E5400 @ 2.70GHz, Asus MB P5KPL-AM IN, D-Link 502-T router, 64-bit Debian Sid, GNOME 2.30.2
Post Reply