Autor Tema: All the steps for setting up BennuGD on Fedora16+  (Leído 3952 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado MisterN

  • Hero Member
  • *****
  • Mensajes: 650
  • Karma: 4
    • Ver Perfil
All the steps for setting up BennuGD on Fedora16+
« en: Enero 13, 2012, 11:07:53 am »
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:
Código: [Seleccionar]
su
chmod a+x bgd-installer.sh
./bgd-installer.sh
but in some cases you may have to do this
Código: [Seleccionar]
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:
Código: [Seleccionar]
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
Código: [Seleccionar]
yum provides */libcrypto.so
Código: [Seleccionar]
yum install openssl openssl.i686 openssl-devel.i686
Código: [Seleccionar]
cd /usr/lib
Código: [Seleccionar]
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
Código: [Seleccionar]
bgdc sourcereplace 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
« última modificación: Enero 16, 2012, 02:54:43 pm por DoctorN »
werg

Conectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12477
  • Karma: 367
  • Sexo: Masculino
    • Ver Perfil
Re: All the steps for setting up BennuGD on Fedora16+
« Respuesta #1 en: Enero 13, 2012, 11:57:55 am »
thanks for the instructions... karma++
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Desconectado MisterN

  • Hero Member
  • *****
  • Mensajes: 650
  • Karma: 4
    • Ver Perfil
Re: All the steps for setting up BennuGD on Fedora16+
« Respuesta #2 en: Enero 13, 2012, 03:39:12 pm »
How do I do the stuff I asked at the end?

Desconectado josebita

  • Administrator
  • Hero Member
  • *****
  • Mensajes: 4039
  • Karma: 257
  • Sexo: Masculino
    • Ver Perfil
    • BennuGD Mobile Worklog
Re: All the steps for setting up BennuGD on Fedora16+
« Respuesta #3 en: Enero 14, 2012, 09:04:25 am »
How do I do the stuff I asked at the end?
You must create a script file that launches BennuGD for you. Something like:
Código: [Seleccionar]
#!/bin/bash
GAMEDIR=routetoyourgames

cd $GAMEDIR
bgdi main.dcb

Desconectado MisterN

  • Hero Member
  • *****
  • Mensajes: 650
  • Karma: 4
    • Ver Perfil
Re: All the steps for setting up BennuGD on Fedora16+
« Respuesta #4 en: Enero 14, 2012, 09:49:00 am »
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

Desconectado josebita

  • Administrator
  • Hero Member
  • *****
  • Mensajes: 4039
  • Karma: 257
  • Sexo: Masculino
    • Ver Perfil
    • BennuGD Mobile Worklog
Re: All the steps for setting up BennuGD on Fedora16+
« Respuesta #5 en: Enero 14, 2012, 10:02:46 am »
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?

Desconectado pinger

  • Newbie
  • *
  • Mensajes: 35
  • Karma: 0
    • Ver Perfil
    • iPhone Games Development Team, not just iPhone Games.
Re: All the steps for setting up BennuGD on Fedora16+
« Respuesta #6 en: Enero 14, 2012, 12:49:41 pm »
Why not to make an BennuGD .rpm o .deb?

Desconectado MisterN

  • Hero Member
  • *****
  • Mensajes: 650
  • Karma: 4
    • Ver Perfil
Re: All the steps for setting up BennuGD on Fedora16+
« Respuesta #7 en: Enero 14, 2012, 01:18:50 pm »
I get import errors and it says ";"
werg

Desconectado josebita

  • Administrator
  • Hero Member
  • *****
  • Mensajes: 4039
  • Karma: 257
  • Sexo: Masculino
    • Ver Perfil
    • BennuGD Mobile Worklog
Re: All the steps for setting up BennuGD on Fedora16+
« Respuesta #8 en: Enero 14, 2012, 03:56:43 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.
I get import errors and it says ";"
I still don't quite understand. Could you elaborate a bit and post the actual errors?

Desconectado MisterN

  • Hero Member
  • *****
  • Mensajes: 650
  • Karma: 4
    • Ver Perfil
Re: All the steps for setting up BennuGD on Fedora16+
« Respuesta #9 en: Enero 15, 2012, 04:14:54 pm »
Código: [Seleccionar]
/media/8gb usb/.\level_tree.prg:67: error: .\MENU\menu.prg: file not found ( token error: "INCLUDE" ).
werg

Desconectado josebita

  • Administrator
  • Hero Member
  • *****
  • Mensajes: 4039
  • Karma: 257
  • Sexo: Masculino
    • Ver Perfil
    • BennuGD Mobile Worklog
Re: All the steps for setting up BennuGD on Fedora16+
« Respuesta #10 en: Enero 15, 2012, 04:24:06 pm »
Use "/" instead of "\"