Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 01-11-2011, 08:54 AM   #1
LQ Newbie
Registered: Mar 2010
Distribution: Fedora12 & Angstrom
Posts: 22

Rep: Reputation: 0
Develop and running a SDL program for non-Xwindows platforms

I have written a SDL graphics program that runs on an Angstrom distrobution of Linux. It currently runs on X windows, but I would like to get rid of X and boot directly to the console and run the SDL program there.

There is no user input needed. Keyboard and mouse support is not needed. I just need to build a screen and blit it to the display.

Does anyone know if this can be done, and if so, how?

Old 01-11-2011, 02:43 PM   #2
Senior Member
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36

Well simply have a look at how to compile SDL. You will quickly see that you can compile SDL without input support and with different kind of graphics backend like X11, DirectFB or FrameBuffer.
So assuming that your program only relies on SDL library, I mean no direct calls to some X11 libs, it should be ok with a simple recompilation/relink with your new lightweight SDL library (a SDL lib without X11 and input backends).




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Develop chat program using SCTP protocol phase_ram Linux - Networking 7 05-19-2010 07:44 PM
Trying to program an SDL application but cannot find the SDL.h file:SuSE 9.2&KDevelop pujolasdf Linux - Newbie 4 03-13-2005 07:50 AM
PGP Password program for multiple platforms? arobinson74 Linux - Software 0 11-19-2004 12:53 AM
How can I develop the audio program in linux? fliny Programming 3 10-03-2003 07:17 PM
Running a Java Program from XWindows kilobravo Linux - General 4 01-16-2003 02:36 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration