The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Ubuntu
.
google unix.com



Ubuntu Ubuntu is a complete desktop Linux operating system, freely available with both community and professional support.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
DirectFb installation & accelerator not recognised sifar Red Hat 0 06-02-2009 11:35 AM
Execute "telinit q" while programs are running ? vilius AIX 1 11-28-2008 05:38 AM
Ubuntu Linux Toolbox: 1000+ Commands For Ubuntu And Debian Power ... - PR-Inside.com iBot UNIX and Linux RSS News 0 12-19-2007 09:00 AM
help to execute programs in sequence through batch getdpg Shell Programming and Scripting 1 07-22-2006 08:27 AM
Problem with initializing DirectFB by Links eugrus Linux 0 01-15-2005 01:13 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-07-2009
Ravikishore Ravikishore is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 29
Post How do i Execute DirectFB programs on Ubuntu

Hi,
I am new to directFB..i installed DirectFB-1.4.2.tar.gz on my ubuntu(Virtual machine)..its successfully installed without any error msg,,
so i took one exampl to execute the program which include the header files like below

#include <config.h>

#include <stdio.h>
#include <string.h>
#include <unistd.h>

#include <direct/messages.h>

#include <directfb.h>
#include <directfb_strings.h>
#include <directfb_util.h>


but its showing error msg like

root@lxdevenv:~/Desktop/DirectFB-1.4.2/include# gcc ka.c -o ka -I/usr/X11R6/include/ -L/usr/X11R6/lib -lX11 -lXi -lXmu -lglut -lGL -lGLU
ka.c:3:20: error: config.h: No such file or directory
ka.c:11:29: error: direct/messages.h: No such file or directory
ka.c:14:22: error: directfb.h: No such file or directory
ka.c:15:30: error: directfb_strings.h: No such file or directory


after that i entered th command as dfbinfo its showing the information like:

root@lxdevenv:~/Desktop# cd ..
root@lxdevenv:~# dfbinfo

~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.4.2 |~~~~~~~~~~~~~~~~~~~~~~~~~~
(c) 2001-2009 The world wide DirectFB Open Source Community
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2009-09-07 06:04)
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
--> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system_core' core!
--> Initialization error!
(#) DirectFBError [DirectFBCreate() failed]: Initialization error!

so guide me ,,, any answer will appreciated...
  #2 (permalink)  
Old 09-07-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
Until you get the compile to find the all the include files you are not going to succeed. The locate(1) command will help you find the include files if they are installed on your system.

The mentions of /dev/fb/0 and /dev/fb0 looks like it is referring to a Solaris framebuffers (graphics card by another name for a P.C.) to me; you I think will have a /dev/video so you could try setting FRAMEBUFFER to /dev/video before running dfbinfo?
  #3 (permalink)  
Old 09-08-2009
Ravikishore Ravikishore is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 29
Exclamation How to set that /dev/video for framebuffer

Hi Sir,

i am trying from 4hours to set the Frame buffer to /dev/video ..
but i dint get how to set that,,,
pls guide me for That...it will appreciated ..

---------- Post updated at 07:22 AM ---------- Previous update was at 07:08 AM ----------

Hi Sir,
one more doubt is without setting framebuffer .. i can't execute the Directfb code..
i am not getting how to set that Framebuffer ...guide me ,,
  #4 (permalink)  
Old 09-08-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
Code:
# FRAMEBUFFER=/dev/video; export FRAMEBUFFER
# dfbinfo
  #5 (permalink)  
Old 09-09-2009
Ravikishore Ravikishore is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 29
Exclamation Error after setting the framebuffer

Hi Sir,
After setting the framebuffer like as you told its giving the following error msg..

root@lxdevenv:/etc# FRAMEBUFFER=/dev/video; export FRAMEBUFFER
root@lxdevenv:/etc# dfbinfo

~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.4.2 |~~~~~~~~~~~~~~~~~~~~~~~~~~
(c) 2001-2009 The world wide DirectFB Open Source Community
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2009-09-07 06:04)
(!) DirectFB/FBDev: Error opening '/dev/video'!
--> No such file or directory
(!) DirectFB/Core: Could not initialize 'system_core' core!
--> File not found!
(#) DirectFBError [DirectFBCreate() failed]: File not found!
root@lxdevenv:/etc#

---------- Post updated 09-09-09 at 07:14 AM ---------- Previous update was 09-08-09 at 11:14 PM ----------

Hi Sir,

i tried to execute the simple program on Directfb

#include <stdio.h>
#include <unistd.h>
#include <directfb.h>

int main (int argc, char **argv)
{

DirectFBInit (&argc, &argv);

}


but while compiling that i got an error msg like this

root@lxdevenv:~/Desktop# cd DirectFB-1.4.0/include/
root@lxdevenv:~/Desktop/DirectFB-1.4.0/include# gcc m.c -o m -I/usr/local/include/directfb -L/usr/local/lib -lX11 -lXi -lXmu -lglut -lGL -lGLU
/tmp/ccYg2Bf2.o: In function `main':
m.c.text+0x1c): undefined reference to `DirectFBInit'
collect2: ld returned 1 exit status
root@lxdevenv:~/Desktop/DirectFB-1.4.0/include#


guide me Sir,,, any answer will appreciated,,,,,.
  #6 (permalink)  
Old 09-09-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
Just checked my Ubunto and it has a:
Code:
 /dev/video0
Do a:
Code:
$ ls -l /dev/video*
to see if your setup has any /dev/video device?
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0