GIDForums

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 25-Apr-2008, 00:14
Stanley Stanley is offline
New Member
 
Join Date: Apr 2008
Posts: 5
Stanley is on a distinguished road

Opengl in Gentoo linux


Hi,

I have a problem in drawing opengl in Gentoo linux, my harware is AMD Geode
board.Its a small intelligent board.This hardware does not support 3D drawings
and GLX commands.

My requirement is I want to draw a simple 2D using normal fltk window,

I did this in windows(OS) in two different methods but the problem is with linux.
1.Get the window handle, Get device context and rendering context,
set pixel format and start drawing.
2.Using glstart() and glFinish().

When I try the above two methods in linux it says the following error.

1.when i use glstart and glfinish along with glVisual, it says "Segmentation fault" in Gentoo linux deskop PC, and XopenIM() fail XLib: Extension "GLX" missing on display ":0.0" Insufficient GL support in Geode board.

I am using gentoo linux in both desktop and geode board.

My fltk version is V2.0.0, gentoo linux kernel version is genkernel-x86-2.6.23-gentoo-r8

I want to run the code in both desktop linux pc and in Geode board PC.

thanks
  #2  
Old 25-Apr-2008, 02:26
Stanley Stanley is offline
New Member
 
Join Date: Apr 2008
Posts: 5
Stanley is on a distinguished road

Opengl in Gentoo linux


Hi,

Now i got rid of segmentation fault, but I could not clear the screen using glClearColor, I think the color buffers are not getting cleared.I doubt the rendering context.

awaiting for inputs.

thanks.
  #3  
Old 25-Apr-2008, 22:24
Stanley Stanley is offline
New Member
 
Join Date: Apr 2008
Posts: 5
Stanley is on a distinguished road

Re: Opengl in Gentoo linux


Hi,

I made the opengl 2d working in gentoo linux in desktop pc,
but not in my actual hardware.

have anybody tried drawing opengl using normal gl commands
in AMD geode board.

thanks.
  #4  
Old 26-Apr-2008, 07:21
Stanley Stanley is offline
New Member
 
Join Date: Apr 2008
Posts: 5
Stanley is on a distinguished road

Re: Opengl in Gentoo linux


hi,

That's the end of the story.

The problem is:
Not able to use glx commands in fltk, due to the following error:

XopenIM() fail XLib: Extension "GLX" missing on display ":0.0" Insufficient GL support

The solution is:

Download MesaLib-7.0.3.tar from http://sourceforge.net/project/showfiles.php?group_id=3

make install, you will get the library files like

libgl.so.1 etc., and place it in usr/lib.

And also download libglx.so(actually i had his file in my desktop pc) and place it in user/lib.

Thanks.
 

Recent GIDBlogNew Corolla Altis, 10th Generation - Part I by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Remove Linux And Install Windows? rockaway Computer Software Forum - Windows 3 06-Mar-2008 21:00
Help Old Computer Linux Network Planning 6795 Computer Software Forum - Linux 1 09-Dec-2007 21:56
Making a home linux server crystalattice Computer Software Forum - Linux 6 16-Jan-2006 15:08
Linux Kernel Upgrade Mini Howto dsmith Computer Software Forum - Linux 3 05-Apr-2004 22:10

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 12:52.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.