maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Help plz : Compile Libsdlpre For Harmattan (https://talk.maemo.org/showthread.php?t=86276)

farfary 2012-08-23 16:30

Help plz : Compile Libsdlpre For Harmattan
 
Hi Every One
I want to Compile Libsdlpre for Harmattan
and this error :(

Code:

[root@chroot: /home/preenv-preenv] make libsdlpre
make -C "libsdlpre" all
make[1]: Entering directory `/home/preenv-preenv/libsdlpre'
cc -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Os -Wall -I. -o global.o -c global.c
In file included from /usr/include/SDL/SDL_mouse.h:32,
                from /usr/include/SDL/SDL_events.h:35,
                from /usr/include/SDL/SDL.h:37,
                from global.h:4,
                from global.c:1:
/usr/include/SDL/SDL_video.h:469: warning: null character(s) ignored
cc -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Os -Wall -I. -o pdl.o -c pdl.c
In file included from /usr/include/SDL/SDL_mouse.h:32,
                from /usr/include/SDL/SDL_events.h:35,
                from /usr/include/SDL/SDL.h:37,
                from global.h:4,
                from pdl.c:7:
/usr/include/SDL/SDL_video.h:469: warning: null character(s) ignored
cc -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Os -Wall -I. -o gl.o -c gl.c
In file included from /usr/include/SDL/SDL_mouse.h:32,
                from /usr/include/SDL/SDL_events.h:35,
                from /usr/include/SDL/SDL.h:37,
                from gl.c:4:
/usr/include/SDL/SDL_video.h:469: warning: null character(s) ignored
gl.c: In function 'glLoadIdentity':
gl.c:284: warning: enumeration value 'PDL_ORIENTATION_0' not handled in switch
gl.c:284: warning: enumeration value 'PDL_ORIENTATION_90' not handled in switch
gl.c:284: warning: enumeration value 'PDL_ORIENTATION_180' not handled in switch
cc -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Os -Wall -I. -o joystick.o -c joystick.c
In file included from /usr/include/SDL/SDL_mouse.h:32,
                from /usr/include/SDL/SDL_events.h:35,
                from /usr/include/SDL/SDL.h:37,
                from joystick.c:5:
/usr/include/SDL/SDL_video.h:469: warning: null character(s) ignored
cc -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Os -Wall -I. -o cinema.o -c cinema.c
In file included from /usr/include/SDL/SDL_mouse.h:32,
                from /usr/include/SDL/SDL_events.h:35,
                from /usr/include/SDL/SDL.h:37,
                from cinema.c:2:
/usr/include/SDL/SDL_video.h:469: warning: null character(s) ignored
cc  -shared -o libsdlpre.so global.o pdl.o gl.o joystick.o cinema.o -L/usr/lib -lSDL -lpthread -lSDL_gles -ldl
/usr/bin/ld: cannot find -lSDL_gles
collect2: ld returned 1 exit status
make[1]: *** [libsdlpre.so] Error 1
make[1]: Leaving directory `/home/preenv-preenv/libsdlpre'
make: *** [libsdlpre] Error 2

can help me ?

slaapliedje 2012-08-24 01:20

Re: Help plz : Compile Libsdlpre For Harmattan
 
Looks like you may be missing some -dev packages. I'd look namely at the libsdl1.2-dev package.

Not sure what package has the libsdl gles headers though.

What are the dependencies for libsdlpre?

slaapliedje

farfary 2012-08-24 08:21

Re: Help plz : Compile Libsdlpre For Harmattan
 
my last error is this
in sdk source list , i have these sdl package
and all is instaled
i find a some one problem like this in thread ( http://stackoverflow.com/questions/2...nd-libraryname )
its mean i havent libsdl_gles.so
so maybe i must first compile this ? :confused:
but SDL_gles.c is not in source file of SDL 1.2.14
( http://www.libsdl.org/release/SDL-1.2.14.zip )

Code:

[root@chroot: /home/preenv-preenv] make libsdlpre
make -C "libsdlpre" all
make[1]: Entering directory `/home/preenv-preenv/libsdlpre'
cc  -shared -o libsdlpre.so global.o pdl.o gl.o joystick.o cinema.o -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -lSDL_gles -ldl
/usr/bin/ld: cannot find -lSDL_gles
collect2: ld returned 1 exit status
make[1]: *** [libsdlpre.so] Error 1
make[1]: Leaving directory `/home/preenv-preenv/libsdlpre'
make: *** [libsdlpre] Error 2
[root@chroot: /home/preenv-preenv] apt-cache search sdl
libsdl-image1.2 - image loading library for Simple DirectMedia Layer 1.2
libsdl-image1.2-dev - development files for SDL 1.2 image loading libray
libsdl-mixer1.2 - mixer library for Simple DirectMedia Layer 1.2
libsdl-mixer1.2-dev - development files for SDL1.2 mixer library
libsdl-net1.2 - network library for Simple DirectMedia Layer
libsdl-net1.2-dev - Development files for SDL network library
libsdl-ttf2.0-0 - ttf library for Simple DirectMedia Layer with FreeType 2 support
libsdl-ttf2.0-dev - development files for SDL ttf library (version 2.0)
libsdl1.2 - Simple DirectMedia Layer (with X11 and PulseAudio options)
libsdl1.2-dbg - Simple DirectMedia Layer development files
libsdl1.2-dev - Simple DirectMedia Layer development files
python-pygame - SDL bindings for games development in Python
[root@chroot: /home/preenv-preenv] apt-get install libsdl1.2-dev libsdl1.2-dbg libsdl1.2 libsdl-ttf2.0-dev libsdl-ttf2.0-0 libsdl-net1.2-dev libsdl-net1.2 libsdl-mixer1.2-dev libsdl-mixer1.2 libsdl-image1.2-dev libsdl-image1.2-dev libsdl-image1.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsdl1.2-dev is already the newest version.
libsdl1.2-dbg is already the newest version.
libsdl1.2 is already the newest version.
libsdl-ttf2.0-dev is already the newest version.
libsdl-ttf2.0-0 is already the newest version.
libsdl-net1.2-dev is already the newest version.
libsdl-net1.2 is already the newest version.
libsdl-mixer1.2-dev is already the newest version.
libsdl-mixer1.2 is already the newest version.
libsdl-image1.2-dev is already the newest version.
libsdl-image1.2-dev is already the newest version.
libsdl-image1.2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
[root@chroot: /home/preenv-preenv]

EDIT -----------------------------------------------------------
my Problem IS SOLVED :D

cddiede 2012-08-24 11:56

Re: Help plz : Compile Libsdlpre For Harmattan
 
Quote:

Originally Posted by farfary (Post 1255203)
EDIT -----------------------------------------------------------
my Problem IS SOLVED :D



Woah, woah, woah! Solved? As in, you got libsdlpre to compile? As in, you can install it on Harmattan??


Did I read this right? :confused:

farfary 2012-08-24 18:52

Re: Help plz : Compile Libsdlpre For Harmattan
 
yes i compiled the libsdlpre ( but this source i used not in preenv source , i used another source that for libhildon
but ! when i want to compile this i have UP Error
i first compiled libSDL_gles and put it in /usr/lib
I want to run preenv on N9 , and i compiled faac & libpng ( Harmattan have this but i compiled it ) & libsdlpre ( i am not sure it work :( bucase i cant run the game ) & libstub & opencore-amr & ffmpeg
i have libsdl_image libsdl_ttf and preloaded error but i dont find the source of these :(
in Dropbox i puts the my compiled and source of the preenv & libsdlpre ( that is another source )
if you want to compiled it again first " make clean "
AND a thing :D
when i use the preCompiled preenv for N900 and depends for run the game i have some error that deferent to when i compiled it ( its beter Result for some game :) )
i attached preCompiled for N900
https://www.dropbox.com/sh/vwyxnnekvwu9clh/cPZTJSArNM

jflatt 2012-08-24 20:04

Re: Help plz : Compile Libsdlpre For Harmattan
 
What's the plan here? Are you trying to run softfp binaries on Harmattan which is hardfp?

farfary 2012-08-24 23:18

Re: Help plz : Compile Libsdlpre For Harmattan
 
:| i dont know what you talk
but when i send msg to javispedro , he told :
Preenv on the N9 & N950 will be a completely different beast, because most of the functionality that was implemented in Preenv's libSDLpre is now implemented in Harmattan's libSDL. So the entire library will probably disappear or be much smaller. On the other hand, there is the armhf<->armel conversion which is an entirely different project. So probably the code of Preenv for Fremantle will no be of much use.
so i want to try run it, maybe it's imposibel

it is imposibel ?!


All times are GMT. The time now is 23:12.

vBulletin® Version 3.8.8