LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-14-2010, 12:21 PM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Rep: Reputation: 43
getting SDL to use a single frame buffer


Hi all,
I've cross compiled SDL to run on a ARM processor, setting the framebuffer driver to console video driver (directfb won't work). All seems fine, I've ran a small bit of code that gives a segmentation fault. Some debugging shows this comes from SDL_Flip. So I changed this to SDL_updaterect. No crash but no update to screen. So I added a error check using
Code:
screen = SDL_SetVideoMode( 640, 480, 16, SDL_SWSURFACE|SDL_FULLSCREEN );

if( screen == NULL )
{
    std::cerr << "Video initialization failed: " << SDL_GetError() << std::endl;
This gives

Video initialization failed: Unable to open mouse


However it's on an embedded chip with no mouse, how can I tell SDL not to use one.




Thanks in advance

Last edited by knobby67; 08-14-2010 at 01:35 PM.
 
Old 08-14-2010, 02:33 PM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,781

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Environment_variables

Quote:
SDL_NOMOUSE

* If set allows SDL to start when no mouse is available.
 
  


Reply



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
Frame Buffer Rotation Suyog Deshpande Programming 1 05-09-2009 11:22 PM
about frame buffer yugandhar Linux - Kernel 2 06-03-2006 05:07 PM
frame buffer doesn't seem to work hubabuba Fedora 2 05-03-2005 12:39 PM
Frame buffer bkeating Linux - Newbie 6 04-22-2003 06:09 PM
lilo (frame buffer maybe??) watashiwaotaku7 Linux - Software 6 03-10-2003 04:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

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