Wa alaykom assalam,
Assuming you're using Ubuntu/Debian, install libgl-dev and then you'll
find the headers in /usr/include and the libraries in /usr/lib
note: the exact package for me is libgl1-mesa-dev but I think
libgl-dev is more general.
so for a simple OpenGL hello world you should be able to compile it by
running:
g++ gl.cpp -lGL -lGLU
but the above compilation command assumes no other library is used for
initialization which is impossible, so in practice this line is
g++ gl.cpp -lglut
assuming GLUT is used to handle windowing and events(and it instructs
the compiler to link with libGL)
I suggest that you use the cross-platform abstraction library SDL to
avoid dealing with the OS directly, SDL abstracts events and windowing
and your program becomes really cross-platform, it's similar to GLUT
but in a much better way.
salam
--- In cuLUG@yahoogroups.com, sehs <sehs_prince@...> wrote:
>
> SA,
> I'd like to know how to install OpenGL libraries on linux to start
working on it
> thnx for ur help in advance
> SA
>
>
>
>
________________________________________________________________________________\
_______________________________
>
> حثيثاً
يروى أصول
النخيل ...
فعاش
الفسيل و
مات الرجل
>
>
________________________________________________________________________________\
_______________________________
>
>
>
>
>
>
>
> ---------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo!
Search.
>