Search the web
Sign In
New User? Sign Up
cuLUG · Cairo University Linux User Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
OpenGL on linux   Message List  
Reply | Forward Message #1679 of 1765 |
Re: OpenGL on linux

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
>
>
>
>
________________________________________________________________________________\
_______________________________
>
> &#1581;&#1579;&#1610;&#1579;&#1575;&#1611;
&#1610;&#1585;&#1608;&#1609; &#1571;&#1589;&#1608;&#1604;
&#1575;&#1604;&#1606;&#1582;&#1610;&#1604; ...
&#1601;&#1593;&#1575;&#1588;
&#1575;&#1604;&#1601;&#1587;&#1610;&#1604; &#1608;
&#1605;&#1575;&#1578; &#1575;&#1604;&#1585;&#1580;&#1604;
>
>
________________________________________________________________________________\
_______________________________
>
>
>
>
>
>
>
> ---------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo!
Search.
>





Mon Feb 11, 2008 3:38 pm

diaasami
Offline Offline
Send Email Send Email

Forward
Message #1679 of 1765 |
Expand Messages Author Sort by Date

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 ...
sehs
sehs_prince
Offline Send Email
Feb 11, 2008
10:05 am

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:...
Diaa Sami
diaasami
Offline Send Email
Feb 11, 2008
3:38 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help