Reply
Thread Tools
farfary's Avatar
Posts: 147 | Thanked: 300 times | Joined on Mar 2012 @ ^^ IRAN ^^ - Tehran :D
#1
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 ?
 
Posts: 466 | Thanked: 418 times | Joined on Jan 2010
#2
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
__________________
I have figured out the reason 'smartphones' were invented. They are for reading the internet while pooping. This means the best smartphone ever created is the N9. It is the only one that works so well single-handed.
 

The Following User Says Thank You to slaapliedje For This Useful Post:
farfary's Avatar
Posts: 147 | Thanked: 300 times | Joined on Mar 2012 @ ^^ IRAN ^^ - Tehran :D
#3
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 ?
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

Last edited by farfary; 2012-08-24 at 09:15.
 
cddiede's Avatar
Posts: 1,034 | Thanked: 784 times | Joined on Dec 2007 @ Annapolis, MD
#4
Originally Posted by farfary View Post
EDIT -----------------------------------------------------------
my Problem IS SOLVED


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


Did I read this right?
 
farfary's Avatar
Posts: 147 | Thanked: 300 times | Joined on Mar 2012 @ ^^ IRAN ^^ - Tehran :D
#5
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
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
 

The Following User Says Thank You to farfary For This Useful Post:
jflatt's Avatar
Posts: 534 | Thanked: 723 times | Joined on Oct 2009
#6
What's the plan here? Are you trying to run softfp binaries on Harmattan which is hardfp?
 
farfary's Avatar
Posts: 147 | Thanked: 300 times | Joined on Mar 2012 @ ^^ IRAN ^^ - Tehran :D
#7
:| 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 ?!

Last edited by farfary; 2012-08-24 at 23:36.
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:52.