All the steps for setting up BennuGD on Fedora16+

Started by MisterN, January 13, 2012, 07:07:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MisterN

1. Download BennuGD for linux:
http://www.bennugd.org/node/2

2. For this guide, rename it: bgd-installer.sh

3. Right click inside the folder which the installer is located, log into root ("su root" in console without the quotes, enter your password as well) and then paste the code from this guide: http://wiki.bennugd.org/index.php?title=Tutorial:Setting_up_Bennu_on_Linux
Most of the time this works:

su
chmod a+x bgd-installer.sh
./bgd-installer.sh

but in some cases you may have to do this

export _POSIX2_VERSION=199209
./bgd-installer.sh
unset _POSIX2_VERSION


BennuGD will now install

4. To get it to work, you need to enter the codes in the following order:
yum install SDL SDL.i686 SDL_mixer SDL_mixer.i686 libogg libogg.i686 zlib zlib.i686 libpng libpng.i686 libX11 libX11.i686 libXrandr libXrandr.i686 libXext libXext.i686 libXrender libXrender.i686 libgcc.i686
yum provides */libcrypto.so
yum install openssl openssl.i686 openssl-devel.i686
cd /usr/lib
ln -s libcrypto.so libcrypto.so.1.0.0

5. Done!
===================================
1. When coding a game, everything thats loaded from a directory, DO NOT USE \, USE / INSTEAD
===================================
1. To compile a game, type in console
bgdc source
replace source with the main prg of your game, to easily obtain this, drag and drop the file onto console

2. To run a game, do the same except change bgdc to bgdi
===================================
Things to know:
*How does one compile a game so that it can be run without using console (for example, on another computer for the consumer)? Once that is figured out, I will then use this tutorial http://fedoraproject.org/wiki/How_to_create_an_RPM_package to make an .rpm
werg

SplinterGU

Download Lastest BennuGD Release: http://www.bennugd.org/node/2

MisterN

werg

josebita

Quote from: DoctorN on January 13, 2012, 11:39:12 PM
How do I do the stuff I asked at the end?
You must create a script file that launches BennuGD for you. Something like:
#!/bin/bash
GAMEDIR=routetoyourgames

cd $GAMEDIR
bgdi main.dcb

MisterN

so bennugd must be installed on the pc for it to work? how can I make a script that will silently install (after putting in the password) bennugd and all of the libraries? That may be too hard so how can I make a script have a icon and stuff?

I cant get directories to work in fedora. Not in the sens of loading the game. but like "./folder/file" doesn't work.
werg

josebita

For the first issue: I'd say you shouldn't install a global version of BennuGD in the user's system when installing your game. Instead you should bundle a copy of BennuGD within the game.
Have a look at the folliowing link: it is the script I use for launch my unfinished Kantaoke game. It's a bit bigger than it technically should because it does a few more things than just start the game (it'll optionally compile it, too) and works both in MacOS X and Linux systems:
http://code.google.com/p/bennugd-karaoke/source/browse/trunk/kantaoke

For it to work, you'd copy the binaries of your BennuGD installation (bgdc & bgdi) to the "bin" folder and the the required libraries to "bin/lib"
http://code.google.com/p/bennugd-karaoke/source/browse/trunk/#trunk%2Fbin

As for the icon, you must create a .desktop file for that. Have a look at those at "/usr/share/applications" in your system. It's a very simple format so it should be easy to modify on your own.
On how to create a RPM: that is a bit more complicated, you should look for a tuto online, but you basically have to create a .spec file that describes how your app will be packaged and then run it.

As for the things with the directories... I don't really understane the question. Directories work in almost any OS. What are you trying to do?

pinger


MisterN

werg

josebita

Quote from: pinger on January 14, 2012, 08:49:41 PM
Why not to make an BennuGD .rpm o .deb?
That's right: my PPA uses debs, but those don't work everywhere. Even if you make BOTH rpms and debs, they won't work everywhere. To be able to be universal you really must use scripts.
Quote from: DoctorN on January 14, 2012, 09:18:50 PM
I get import errors and it says ";"
I still don't quite understand. Could you elaborate a bit and post the actual errors?

MisterN

/media/8gb usb/.\level_tree.prg:67: error: .\MENU\menu.prg: file not found ( token error: "INCLUDE" ).
werg

josebita