Author Topic: Has anyone compiled SDL?  (Read 4670 times)

DrWowe

  • Hero Member
  • *****
  • Posts: 696
    • View Profile
    • http://
Has anyone compiled SDL?
« on: May 18, 2004, 11:42:39 am »
So, I\'ve tried running various programs that use SDL, but all of them have had bugs of one sort or another.  So, I decide to try compiling my own.  I downloaded SDL 1.2.7 and compiled it.  But when run an SDL application (even the sample apps in the SDL distribution) nothing appears on the screen!  I\'ve added debugging statement at various points, and they are printing out, so I know that SDL is initializing, and the API calls are going through.

I also tried the patch from www.gnurou.org/software/zaurus/ but it didn\'t make a difference.

Has anyone successfully built a working SDL library for qtopia?

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
Has anyone compiled SDL?
« Reply #1 on: May 18, 2004, 12:14:34 pm »
I\'ve compiled my own SDL 1.2.7 library like this:

Code: [Select]
NM=arm-linux-nm LD=arm-linux-ld CC=arm-linux-gcc CXX=arm-linux-g++ RANLIB=arm-linux-ranlib AR=arm-linux-ar ./configure --host=arm-linux --build=i686-pc-linux-gnu --enable-video-qtopia --disable-video-dummy --disable-video-fbcon --disable-video-dga --disable-arts --disable-esd --disable-alsa --disable-cdrom --disable-video-x11 --disable-nasm --prefix=/opt/Embedix/tools/arm-linux

And I\'ve wrote my own plasma demo and it works fine (I\'m getting 25fs/s).
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

DrWowe

  • Hero Member
  • *****
  • Posts: 696
    • View Profile
    • http://
Has anyone compiled SDL?
« Reply #2 on: May 18, 2004, 12:20:22 pm »
Did you use stock SDL 1.2.7 or apply patches?  I suppose the problem could be with my cross compiler - maybe I should try the Embedix toolchain.  Can you send me your SDL binary so I can test it?

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
Has anyone compiled SDL?
« Reply #3 on: May 18, 2004, 12:28:10 pm »
ok PM me with yr email
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

minhda

  • Newbie
  • *
  • Posts: 3
    • View Profile
Has anyone compiled SDL?
« Reply #4 on: May 08, 2005, 05:24:20 am »
Hi, I'm a newbie, could anyone send me some example code for zaurus sdl app? I've compiled it myself but it run only in root mode and stuck at SDL_SetVideoMode().

Thanks for help.

DINH Anh Minh

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Has anyone compiled SDL?
« Reply #5 on: May 08, 2005, 06:58:08 am »
@DrWowe:

Did you look at the .bb files for SDL? Did you apply the same patches, etc.?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

minhda

  • Newbie
  • *
  • Posts: 3
    • View Profile
Has anyone compiled SDL?
« Reply #6 on: May 08, 2005, 06:24:42 pm »
Hi,
First of all, thanks for your attention .
But.. I really don't understand what did u say ?
I can't find any file .bb, I've read README.Qtopia and my script is:

 ./configure --enable-video-qtopia --disable-video-dummy --disable-video-fbcon  --disable-video-dga --disable-arts --disable-esd --disable-alsa --disable-cdrom --disable-video-x11 --disable-nasm --prefix=/opt/Qtopia/sharp --host=arm-linux --build=i686-pc-linux-gnu

I've all done like http://www.ossh.com/zaurus/mirrors/docs.za...tup_howto.shtml
what more do I have to do?

Thanks

DINH Anh Minh

SL6000L

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Has anyone compiled SDL?
« Reply #7 on: May 09, 2005, 05:15:36 am »
@minhda:

Sorry, I was talking about building SDL - you're talking about using it in an app - I don't know anything about that I'm afraid.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva