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.