LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-21-2006, 02:01 AM   #1
alokagrawal
LQ Newbie
 
Registered: Sep 2005
Posts: 29

Rep: Reputation: 15
opengl


hello friends,
thanks for suggetion.
now i want to run or rather compile opengl programme.
but when ever i compile the source using gcc iget an error library gl.h is not included.please tell me how to make Makefile
to run my source code in knoppix 4.0.
 
Old 02-21-2006, 08:36 AM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Sounds like what you need are the development libraries for Mesa3d. Either that or Glade. Not sure at the moment, but that is what you are probably looking for.
 
Old 02-21-2006, 10:26 AM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by alokagrawal
hello friends,
thanks for suggetion.
now i want to run or rather compile opengl programme.
but when ever i compile the source using gcc iget an error library gl.h is not included.please tell me how to make Makefile
to run my source code in knoppix 4.0.
Have you heard of apt-file it is made for situations like this to allow you to find which package contains the file you need. It works similar to apt-get in that you apt-file update as root to refresh its cache then can use apt-file search file/needed.? as normal user to see which packages contain the file.

Code:
apt-file search gl.h
autoconf-archive: usr/share/doc/autoconf-archive/htmldoc/ax_check_gl.html
autoconf-archive: usr/share/doc/autoconf-archive/htmldoc/mdl_have_opengl.html
cimg-dev: usr/share/doc/cimg-dev/html/reference/structcimg__library_1_1CImgl.html
clanlib-examples: usr/share/doc/libclanlib2/examples/GUIGL/button_opengl.h
clanlib-examples: usr/share/doc/libclanlib2/examples/GUIGL/stylemanager_opengl.h
clanlib-examples: usr/share/doc/libclanlib2/examples/GUIGL/window_opengl.h
clanlib-examples: usr/share/doc/libclanlib2/examples/NetObjects/GUI/button_opengl.h
clanlib-examples: usr/share/doc/libclanlib2/examples/NetObjects/GUI/checkbox_opengl.h
clanlib-examples: usr/share/doc/libclanlib2/examples/NetObjects/GUI/frame_opengl.h
clanlib-examples: usr/share/doc/libclanlib2/examples/NetObjects/GUI/inputbox_opengl.h
clanlib-examples: usr/share/doc/libclanlib2/examples/NetObjects/GUI/listbox_opengl.h
clanlib-examples: usr/share/doc/libclanlib2/examples/NetObjects/GUI/scrollbar_opengl.h
clanlib-examples: usr/share/doc/libclanlib2/examples/NetObjects/GUI/stylemanager_opengl.h
clanlib-examples: usr/share/doc/libclanlib2/examples/NetObjects/GUI/window_opengl.h
doc-iana: usr/share/doc/doc-iana/root-whois/gl.htm
fltk1.1-doc: usr/share/doc/fltk1.1-doc/HTML/opengl.html
gnulib: usr/share/gnulib/lib/trigl.h
gtkglarea5-dev: usr/include/gtkgl/gdkgl.h
kernel-headers-2.6.8-11: usr/src/kernel-headers-2.6.8-11/include/config/usb/tigl.h
kmymoney2: usr/share/apps/kmymoney2/html/home_gl.html
kmymoney2: usr/share/apps/kmymoney2/html/whats_new_gl.html
libclanlib-dev: usr/include/ClanLib/GL/opengl.h
libclanlib-dev: usr/include/ClanLib/GL/setupgl.h
libclanlib-dev: usr/include/ClanLib/gl.h
libcoin40-dev: usr/include/Inventor/C/glue/gl.h
libcoin40-dev: usr/include/Inventor/system/gl.h
libdcmtk0-dev: usr/include/dcmtk/dcmpstat/dvpsgl.h
libfltk1.1-dev: usr/include/FL/gl.h
libfltk1.1-dev: usr/include/FL/gl2opengl.h
libggi2-dev: usr/include/ggi/display/vgl.h
libgnomeprint-dev: usr/include/gnome-1.0/libgnomeprint/gnome-pgl.h
libgnomeprint2.2-dev: usr/include/libgnomeprint-2.2/libgnomeprint/gnome-pgl.h
libgnomeprint2.2-doc: usr/share/doc/libgnomeprint2.2-doc/html/libgnomeprint-gnome-pgl.html
libgrass-dev: usr/lib/grass/include/dgl.h
libgrass-dev: usr/lib/grass/include/grass/dgl.h
libgtkgl2.0-dev: usr/include/gtkgl-2.0/gtkgl/gdkgl.h
libgtkglext1-dev: usr/include/gtkglext-1.0/gdk/gdkgl.h
libgtkglext1-dev: usr/include/gtkglext-1.0/gtk/gtkgl.h
libinti-gl-dev: usr/include/inti-1.0/inti/inti-gl.h
libopenvrml4-doc: usr/share/doc/libopenvrml4-doc/html/namespaceopenvrml_1_1gl.html
libqt3-mt-dev: usr/include/qt3/qgl.h
libsc-dev: usr/include/sc/util/render/oogl.h
libsdl-erlang: usr/lib/erlang/lib/esdl-0.94.1025/c_src/esdl_gl.h
libsdl-erlang: usr/lib/erlang/lib/esdl-0.94.1025/include/gl.hrl
libsdl-erlang: usr/share/doc/libsdl-erlang/html/doc/gl.html
libsdl-ocaml-dev: usr/share/doc/libsdl-ocaml-dev/html/Sdlgl.html
libsdl-ocaml-dev: usr/share/doc/libsdl-ocaml-dev/html/type_Sdlgl.html
libsdl1.2-dev: usr/include/SDL/SDL_opengl.h
libsdl1.2-dev: usr/share/doc/libsdl1.2-dev/docs/html/guidevideoopengl.html
libsvga1-dev: usr/include/vgagl.h
libwxgtk2.4-contrib-dev: usr/include/wx/ogl/ogl.h
lush-library: usr/share/lush/packages/opengl/opengl.hlp
mesa-common-dev: usr/include/GL/gl.h
mingw32-runtime: usr/i586-mingw32msvc/include/GL/gl.h
pike7.2: usr/lib/pike/7.2.580/lib/include/opengl.h
pike7.4-core: usr/lib/pike/7.4.117/lib/include/opengl.h
pike7.4-reference: usr/share/doc/pike7.4-doc/html/reference/ex/predef_3A_3A/GTK/GLArea/wait_gl.html
pike7.6-core: usr/lib/pike/7.6.24/lib/include/opengl.h
pike7.6-reference: usr/share/doc/pike7.6-doc/html/reference/ex/predef_3A_3A/GTK/GLArea/wait_gl.html
python2.1-doc: usr/share/doc/python2.1/html/lib/module-gl.html
python2.2-doc: usr/share/doc/python2.2/html/lib/module-gl.html
python2.3-doc: usr/share/doc/python2.3/html/lib/module-gl.html
python2.4-doc: usr/share/doc/python2.4/html/lib/module-gl.html
qt3-doc: usr/share/qt3/doc/html/opengl.html
qt3-doc: usr/share/qt3/doc/html/qaxserver-demo-opengl.html
qt3-doc: usr/share/qt3/doc/html/qaxserver-example-opengl.html
qt3-doc: usr/share/qt3/doc/html/qgl.html
r-base-html: usr/lib/R/library/base/html/gl.html
r-cran-rgl: usr/lib/R/site-library/rgl/html/rgl.html
r-cran-vr: usr/lib/R/library/MASS/html/fgl.html
simgear-dev: usr/include/simgear/xgl/xgl.h
survex: usr/share/doc/survex/manual/prhpgl.htm
tetex-doc: usr/share/doc/texmf/help/Catalogue/entries/dialogl.html
video4linux-nw802-source: usr/src/modules/video4linux-nw802/nw8xx_jpgl.h
wine-doc: usr/share/doc/wine-doc/html/wine-devel/opengl.htm
xlibmesa-gl-dev: usr/X11R6/include/GL/gl.h
xlibmesa-gl-dev: usr/include/GL/gl.h
yorick: usr/lib/yorick/1.5/include/playgl.h
As you can see the string is in more than a few packages but I will go with the xlibmesa-gl-dev package as the one you need. It is usually best when searching to use the whole output of what the compile said it could not find like in this case it most likely said include/GL/gl.h or GL/gl.h was not found. BTW you can do the same with a search on the package contents at http://packages.debian.org.
 
Old 02-21-2006, 10:51 AM   #4
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
The easiest way to build an app from source with apt is:
apt-get source app-name #get app source
apt-get build-dep app-name #get build dependencies
cd extracted-dir #move to source dir
assuming you are building from source to make some change, you would do it here.
debian/rules binary #build deb file(s)
 
Old 02-22-2006, 05:57 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
If your application use floating point or MMX/SSE extensions AND your compiler generates this code and you have libc6-i686, do this to gain some improvements. In any case, it won't hurt and will always be faster

Code:
CFLAGS="-O4 -march=i686" debian/rules app-name
I do it like this but maybe there is a debian-way of doing it, I would be interested as I always have to type this damn suffix

If its for a running on a 286, forget it

Last edited by nx5000; 02-22-2006 at 07:04 AM.
 
Old 02-22-2006, 02:09 PM   #6
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
you can add it to your .bashrc
export CFLAGS="-O4 -march=i686"
 
Old 02-23-2006, 02:41 AM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
But setting CFLAGS is the only method? There is not a more "debian specific"?
Or do I have to recompile gcc with CFLAGS=..i686 so that dpkg-architecture gives back i686?
As dpkg-architecture is (i think) used by apt I would like it to automatically dl i686 packages (only two binary in official repo). apt-build (which I don't use yet) is using dpkg-architecture I guess so it would still compile as 386. Argg if somebody has info on this, otherwise google is more or less my friend.
Cheers

Thanks dracae
 
  


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
Overwrite Mesa OpenGL with ATI OpenGL Carl-Fredrik Slackware 12 10-01-2004 03:33 PM
OpenGL fr0zen Programming 5 11-26-2003 08:02 AM
Changing from MESA OpenGL to ATI OpenGL tillyoubreakit Linux - Hardware 19 10-07-2003 07:32 PM
Opengl Abe_the_Man Slackware 3 09-30-2003 08:52 AM
OpenGL is needed by plib-1.7.0- but i have opengl ! qwijibow Linux - Newbie 0 08-05-2003 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:50 PM.

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