Bennu Game Development

Foros en Español => Extensiones => Topic started by: SplinterGU on January 29, 2008, 01:39:00 AM

Title: Bennu Dll Kit (solo para windows)
Post by: SplinterGU on January 29, 2008, 01:39:00 AM
Esta es una preview del kit para construccion de dlls, es muy basico, pero para que puedan ir compilando sus dlls de Fenix y vayan viendo como se linkean contra las dlls...

http://download.bennugd.org/dllkit/

Incluyo un ejemplo, mpeg.dll...

Cuando lo descompriman, haganlo al mismo nivel, por ejemplo:

c:\Bennu-Dev\dllkit
c:\Bennu-Dev\mpeg

Usar mingw32 para compilarlo... y bajen la mpeg del sourceforge de Fenix para ver las diferencias entre un proyecto y otro, muy simple.
Title: Re: Bennu Dll Kit (solo para windows)
Post by: TYCO on January 29, 2008, 08:49:01 AM
Gracias SlinterGU, nunca he hecho una recompilacion (siempre me daban errores) pero intentare probar de nuevo con este kit a ver si lo consigo de una vez, gracias.
Title: Re: Bennu Dll Kit (solo para windows)
Post by: TYCO on January 30, 2008, 08:53:31 AM
Bueno pues la cosa es que me baje mingw y no se donde incluir el kit, hago un mingw32 mpeg\mpeg.c y no da mas que errores a montones, seguro algo hago mal, he probado a cambiar las rutas del kit a meterlo en lib de mingw y no se, o no uso el comando correcto o algo pasa, alguna ayuda?
Title: Re: Bennu Dll Kit (solo para windows)
Post by: SplinterGU on January 30, 2008, 12:14:00 PM
ummm... mingw32 no es un ejecutable... es un entorno... tenes que bajar mingw32, msys, librerias SDL-1.2.11, SDL_mixer, SDL_image, SDL_net, SDL_flic, libungif, libpng, libogg, libvorbis, giflib, dumbogg, dumb-0.9.3, smpeg, zlib-1.2.3... compilarlas...
Para compilarlas (sirve tanto para estas libs como para Bennu), las tenes que meter en algun directorio, descomprimirlas (generalmente "tar -zxvf <archivo>", sin las " y sin los <>)... luego hacer, cargas la consola del msys, navegas hasta cada directorio desde la consola (cd <directorio>):

./configure

en cada uno de los directorios (algunos requieren algun que otro parametro en el ./configure)

luego

make install

o solo, si el anterior falla

make

Eso es compilar... investiga un poquito que hay mucha info de esto en internet...
Title: Re: Bennu Dll Kit (solo para windows)
Post by: TYCO on January 30, 2008, 02:35:05 PM
Me dan estos errores al principio (luego siguen muchos mas) es porque tengo que meter esos archivos que faltan, voy bien?
TYCO@TYCODRAGON /mingw
$ cd mpeg

TYCO@TYCODRAGON /mingw/mpeg
$ make mpeg.c
make: Nothing to be done for `mpeg.c'.

TYCO@TYCODRAGON /mingw/mpeg
$ make install mpeg.c
....
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/bgdi.h:45:17: SDL.h: No such file or directory
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/bgdi.h:48:24: SDL_keysym.h: No such file or directory
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/bgdi.h:49:24: SDL_thread.h: No such file or directory
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/bgdi.h:50:23: SDL_syswm.h: No such file or directory

Metiendo estos arhivos ya funcionara? es el sieguiente paso que voy hacer a ver que tal.
Title: Re: Bennu Dll Kit (solo para windows)
Post by: SplinterGU on January 30, 2008, 02:58:22 PM
No... primero

./configure

luego

make install

primero tenes que instalar los paquetes que te mencione arriba, y de la misma forma, configure y make install

algunos es solo make

y en ningun caso se le pone el nombre del .c
Title: Re: Bennu Dll Kit (solo para windows)
Post by: syous on January 30, 2008, 04:18:54 PM
sugerencia:

seria interesante  hacer un paquete con todas las librerias necesarias y preparado para usar y recompilar sin que te falta esto y aquello
Title: Re: Bennu Dll Kit (solo para windows)
Post by: SplinterGU on January 30, 2008, 04:31:02 PM
Eso es una locura, pesa demasiado, ademas son productos que ya existen, no corresponde hostearlos otra vez en un site que no es del producto...
La lista de paquetes esta en el README que esta en el paquete de fuente de Fenix...
Title: Re: Bennu Dll Kit (solo para windows)
Post by: TYCO on February 06, 2008, 04:08:08 PM
checking for SDL - version >= 1.2.10... no
*** Could not run SDL test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /mingw/bin/sdl-config
configure: error: *** SDL version 1.2.10 not found!

Yo he puesto la que me has dicho la 1.2.11, tengo que poner la 10???
me estoy volviendo loco, no hago mas que pruebas y no consigo nada, leo foros y me suena todo a chino, no se si conseguire compilar algo algun dia.
Title: Re: Bennu Dll Kit (solo para windows)
Post by: SplinterGU on February 06, 2008, 09:43:55 PM
no, esta bien con la 1.2.11, pero la instalaste? o sea, hiciste make install?

cuesta un poquito armar el entorno, pero una vez que lo tenes ya te olvidas...
Title: Re: Bennu Dll Kit (solo para windows)
Post by: TYCO on February 07, 2008, 01:19:08 PM
No consigo instalarla, el error me da al poner ./configure al make install no llego, porque en el primer paso: ./configure ya me da error.

Me baje:
SDL-devel-1.2.11-mingw32.tar.gz y lo extrai al directorio "SDL-1.2.11"

Estos son los errores:

TYCO@TYCODRAGON /mingw/sdl-1.2.11
$ ./configure
sh: ./configure: No such file or directory

TYCO@TYCODRAGON /mingw/sdl-1.2.11
$ make install
make: `install' is up to date.

TYCO@TYCODRAGON /mingw/sdl-1.2.11
$ make
Type "make native" to install to /usr
Type "make cross" to install to /usr/local/cross-tools/i386-mingw32msvc/

TYCO@TYCODRAGON /mingw/sdl-1.2.11
$ make native
make install prefix=/usr
make[1]: Entering directory `/mingw/sdl-1.2.11'
make[1]: `install' is up to date.
make[1]: Leaving directory `/mingw/sdl-1.2.11'

TYCO@TYCODRAGON /mingw/sdl-1.2.11
$ make cross
make install prefix=/usr/local/cross-tools/i386-mingw32msvc/
make[1]: Entering directory `/mingw/sdl-1.2.11'
make[1]: `install' is up to date.
make[1]: Leaving directory `/mingw/sdl-1.2.11'
Title: Re: Bennu Dll Kit (solo para windows)
Post by: SplinterGU on February 07, 2008, 02:08:31 PM
Veo que cero unix...

Bien... cuando un archivo te da error de que no se encuentra, lo primero que hay que verificar es si esta realmente:

ls -l <archivo>

o solo

ls -l

se pueden usar * como comodines en parte del nombre

ahora, si el archivo esta, hay que ver que tenga permisos de ejecucion, esto se ve reflejado con x en la columna de attributos... por ejemplo...

$ ls -l /opt/SDL-1.2.11/config*
-rw-r--r--    1 Administ Administ   120963 Feb 11  2007 /opt/SDL-1.2.11/config.log
-rwxr-xr-x    1 Administ Administ    45256 Feb 11  2007 /opt/SDL-1.2.11/config.status
-rwxr-xr-x    1 Administ Administ  1079802 Jun 27  2006 /opt/SDL-1.2.11/configure
-rw-r--r--    1 Administ Administ    94102 Jun 27  2006 /opt/SDL-1.2.11/configure.in

Aca tenemos, que config.log y configure.in no tienen permisos de ejecucion, en cambio, configure y config.status si...
Si llegara a ser el caso que configure no tiene permisos de ejecucion con un chmod lo remediamos...

chmod 777 configure

No se como descompactaste los paquetes, pero desde la consola de mingw, deberias hacer...

tar -zxvf archivo.tgz

o

tar -zxvf archivo.tar.gz
Title: Re: Bennu Dll Kit (solo para windows)
Post by: TYCO on February 07, 2008, 03:04:41 PM
TYCO@TYCODRAGON /mingw/sdl-1.2.11/test/
$ ls -l config*
-rw-r--r--    1 TYCO     Administ     2583 May 17  2006 config.log
-rwxr-xr-x    1 TYCO     Administ   112175 May 17  2006 configure
-rw-r--r--    1 TYCO     Administ     1879 May 12  2006 configure.in

TYCO@TYCODRAGON /mingw/sdl-1.2.11/test
$ chmod 777 configure

TYCO@TYCODRAGON /mingw/sdl-1.2.11/test
$ chmod 777 configure.in

TYCO@TYCODRAGON /mingw/sdl-1.2.11/test
$ chmod 777 config.log 

TYCO@TYCODRAGON /mingw/sdl-1.2.11/test
$ ls -l config*
-rw-r--r--    1 TYCO     Administ     2583 May 17  2006 config.log
-rwxr-xr-x    1 TYCO     Administ   112175 May 17  2006 configure
-rw-r--r--    1 TYCO     Administ     1879 May 12  2006 configure.in

No noto que los permison hayan cambiado, de todas formas esos archivos estan en la carpeta TEST, no se si el paquete que me he bajado le faltan cosas???

DESPUES DE HACER ESTO:
-------------------------
TYCO@TYCODRAGON /mingw
$ tar -zxvf sdl-devel-1.2.11-mingw32.tar.gz

CONTENIDO DE LA CARPTEA QUE CREA:
-------------------------------------
TYCO@TYCODRAGON /mingw/sdl-1.2.11
$ ls -l
total 37
-rw-r--r--    1 TYCO     Administ     7442 May  1  2006 BUGS
-rw-r--r--    1 TYCO     Administ    24390 May  1  2006 COPYING
-rw-r--r--    1 TYCO     Administ      766 May  1  2006 INSTALL
-rw-r--r--    1 TYCO     Administ      928 Feb 22  2004 Makefile
-rw-r--r--    1 TYCO     Administ     1842 May  4  2006 README
-rw-r--r--    1 TYCO     Administ      425 May  1  2006 README-SDL.txt
-rw-r--r--    1 TYCO     Administ    27334 May  9  2006 WhatsNew
drwxr-xr-x    2 TYCO     Administ        0 Feb  7 14:47 bin
drwxr-xr-x    2 TYCO     Administ        0 Feb  7 14:47 build-scripts
drwxr-xr-x    4 TYCO     Administ        0 Feb  7 14:47 docs
-rw-r--r--    1 TYCO     Administ     9212 Jun 27  2006 docs.html
drwxr-xr-x    2 TYCO     Administ        0 Feb  7 14:47 include
drwxr-xr-x    2 TYCO     Administ        0 Feb  7 14:47 lib
drwxr-xr-x    3 TYCO     Administ        0 Feb  6 14:27 share
drwxr-xr-x    2 TYCO     Administ        0 Feb  7 14:54 test

Y estos problemas solo con la SDL, luego me faltaria hacer lo mismo con la SDL_net, SDL_image, etc, espero que haciendo una bien las demas sean igual.
Title: Re: Bennu Dll Kit (solo para windows)
Post by: SplinterGU on February 07, 2008, 03:26:57 PM
Se te ocurrio leer el contenido del archivo INSTALL?
Otra cosa, yo no uso los paquetes para mingw32 o para msvc, uso siempre los paquetes standard (unix)...

EDIT:

Claro, estas usando las libs ya compiladas... bajate este http://www.libsdl.org/release/SDL-1.2.13.tar.gz y proba ahi...
Title: Re: Bennu Dll Kit (solo para windows)
Post by: TYCO on February 07, 2008, 03:53:00 PM
ya intente hacer lo del archivo INSTALL y no me funciona nada, no hago mas que "dar palos de ciego", no se que hacer cada vez son errores distintos, no se si avanzo o retrocedo, es demasiado complicado para mi.

Si te doy el control de mi ordenador por messenger y me echas una mano? no te pido que me lo hagas, si quieres puedes ir diciendome segun ves las pantallas, quiza aprenda algo.
Title: Re: Bennu Dll Kit (solo para windows)
Post by: SplinterGU on February 07, 2008, 04:12:51 PM
Si, por supuesto, no hay problema... agregame al msn...
Title: Re: Bennu Dll Kit (solo para windows)
Post by: syous on July 16, 2008, 08:44:06 AM
sigo pensansando que seria interesante  hacer un paquete con todas las librerias necesarias y preparado para usar y recompilar sin que te falta esto y aquello y mas aun sin es para windows y se podria hacer de ciertos tamaños lo minimo la sdl minigw  y alguna cosilla mas

quitaria muchos quebraderos de cabeza

siquereis lo hosteo yo
Title: Re: Bennu Dll Kit (solo para windows)
Post by: osk on July 16, 2008, 11:20:36 AM
¿Y este kit es muy difícil que pueda estar para Linux también? Pregunto.
Title: Re: Bennu Dll Kit (solo para windows)
Post by: SplinterGU on July 16, 2008, 12:48:21 PM
Con que problemas te encontraste syous?

Para linux sirve, solo tenes que poner las .so de linux... de la preview de linux que salio...
Title: Re: Bennu Dll Kit (solo para windows)
Post by: TYCO on July 16, 2008, 12:51:38 PM
A mi me parece bien si alguien se anima.

Yo lo tengo parado aun, entre que estos meses apenas he tenido tiempo y que no controlo... pues aun sigo atascado.
Title: Re: Bennu Dll Kit (solo para windows)
Post by: SplinterGU on July 16, 2008, 01:14:34 PM
Sandman ya esta haciendo una lib de video con opengl usando el dllkit... sin problemas... seria bueno, den feedback de los problemas con los que se van encontrando, para poder mejorar la cosa en futuras versiones... o incluso corregir esta...
Title: Re: Bennu Dll Kit (solo para windows)
Post by: syous on July 16, 2008, 03:25:58 PM
 :D un sencillo ejemplo estoy realizando un proyecto paralelo con construct por un encargo y demas
y el install te viene con las directx setup y el vc++ redistribuble y to do incluido para desarrollar lo que quieras y la sdk te viene con todo lo que necesites

sin problemas de dependencias ni ni nada todo incluido
para tu solo dedicarte a tu proyecto y a nada mas
Title: Re: Bennu Dll Kit (solo para windows)
Post by: SplinterGU on July 16, 2008, 03:30:39 PM
Todavia es un kit un poco desprolijo... no es final, solo para aquellos que quieran empezar a experimentar... recorda que todavia no salio una version release de Bennu...
Title: Re: Bennu Dll Kit (solo para windows)
Post by: blostec on August 11, 2008, 08:31:14 AM
Quote from: TYCO on February 07, 2008, 01:19:08 PM
No consigo instalarla, el error me da al poner ./configure al make install no llego, porque en el primer paso: ./configure ya me da error.

Me baje:
SDL-devel-1.2.11-mingw32.tar.gz y lo extrai al directorio "SDL-1.2.11"


El problema es que tienes que bajarte el paquete del codigo fuente, te explico como lo he instalado yo:

1. Me he bajado la libreria SDL en su version actual 1.2.13 (http://www.libsdl.org/release/SDL-1.2.13.tar.gz)

2. La he guardado en el directorio de mingw

3. Luego he abierto el msys y he introducido los siguientes comandos:

$ cd /mingw
$ tar -xzvf SDL-1.2.13.tar.gz
$ cd SDL-1.2.13
$ ./configure --prefix=/mingw
$ make
$ make install

4.Si quieres también puedes compilar algunos ejemplos que vienen en el directorio test:

$ cd test
$ ./configure
$ make

Espero que te sirva.

Title: Re: Bennu Dll Kit (solo para windows)
Post by: blostec on August 11, 2008, 10:37:03 AM

Te dejo los pasos para compilar otras librerias.

SDL_mixer


descargar (http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.8.tar.gz)

$ tar -xzvf SDL_mixer-1.2.8.tar.gz
$ cd SDL_mixer-1.2.8
$ ./configure --prefix=/mingw
$ make
$ make install


SDL_image

Antes de compilar la SDL_image tenemos que obtener las librerias JPEG, PNG y ZLIB

ZLIB

descargar (http://www.zlib.net/zlib-1.2.3.tar.gz)

$ tar -xzvf zlib-1.2.3.tar.gz
$ cd zlib-1.2.3
$ configure --prefix=/mingw
$ make
$ make install


PNG

descargar (http://downloads.sourceforge.net/libpng/libpng-1.2.29.tar.gz?modtime=1210235299&big_mirror=0)

$ tar -xzvf libpng-1.2.29.tar.gz
$ cd libpng-1.2.29
$ configure --prefix=/mingw
$ make
$ make install


JPEG

descargar (http://www.ijg.org/files/jpegsrc.v6b.tar.gz)

$ tar -xzvf jpegsrc.v6b.tar.gz
$ cd jpeg-6b
$ ./configure --prefix=/mingw --enable-static
$ make
$ make install
$ make install-lib



SDL_image


descargar (http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.6.tar.gz)

$ tar -xzvf SDL_image-1.2.6.tar.gz
$ cd SDL_image-1.2.6
$ ./configure --prefix=/mingw --disable-tif --disable-jpg-shared --disable-png-shared
$ make
$ make install


SDL_net


descargar (http://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.7.tar.gz)

$ tar -xzvf SDL_net-1.2.7.tar.gz
$ cd SDL_net-1.2.7
$ ./configure --prefix=/mingw
$ make
$ make install

Title: Re: Bennu Dll Kit (solo para windows)
Post by: SplinterGU on August 11, 2008, 02:58:45 PM
Excelente, la verdad que un paso a pasa asi, queda barbaro... gracias...
Title: Re: Bennu Dll Kit (solo para windows)
Post by: TYCO on August 12, 2008, 10:29:31 AM
Se sigue atascando en el mismo sitio, al hacer:

/.configure --prefix=/mingw
....
....
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... cl.exe
checking whether we are using the GNU C++ compiler... no
checking whether cl.exe accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

¿Mefalta quizas eso del preprocesador?? ¿dónde debería estar esa "lib/cpp"???
Title: Re: Bennu Dll Kit (solo para windows)
Post by: SplinterGU on August 12, 2008, 12:05:21 PM
te falta el compilador cpp (c++)...
Title: Re: Bennu Dll Kit (solo para windows)
Post by: blostec on August 12, 2008, 12:19:41 PM

Ve aquí (https://sourceforge.net/project/showfiles.php?group_id=2435&package_id=240780) y te bajas el ejecutable que contiene MinGW. En este caso la ultima versión que es la 5.1.4.

Luego lo instalas en el directorio que quieras. Te pedirá que paquetes quieres instalar, asegúrate de marcar el MinGW base tools, el g++ Compiler, objective C Complier y el MinGW Make.

Title: Re: Bennu Dll Kit (solo para windows)
Post by: TYCO on August 12, 2008, 04:36:11 PM
Vale, esto marcha... ahora si que si ya a compilado la SDL a la perfeccion, muchas gracias.

aunque la SDL_mixer da errores:

TYCO@TYCODRAGON /mingw/sdl_mixer-1.2.8
$ ./configure --prefix=/mingw
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables

¿que puede ser? ahora que ya funcionaba "aparentemente todo", mas errores XD
Title: Re: Bennu Dll Kit (solo para windows)
Post by: blostec on August 14, 2008, 08:36:39 AM

Te has bajado el SDL_mixer del link que yo puse? Asegurarte que tienes instalados todos los paquetes del MinGW que te indique en el post anterior. A mi me funciono a la primera siguiendo los pasos que te he dicho. Ya me contaras. Saludos!