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.


1. Download BennuGD for linux:

2. For this guide, rename it:

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:
Most of the time this works:

chmod a+x

but in some cases you may have to do this

export _POSIX2_VERSION=199209

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 */
yum install openssl openssl.i686 openssl-devel.i686
cd /usr/lib
ln -s

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 to make an .rpm


Download Lastest BennuGD Release:




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:

bgdi main.dcb


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.


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:

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"

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?





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?


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