Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 517483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:50:19+00:00 2026-05-13T07:50:19+00:00

I am starting learning OpenGL and I am not sure, how to set it

  • 0

I am starting learning OpenGL and I am not sure, how to set it up on (Ubuntu) Linux.

I think that this could be a way:

OpenGL is only a graphics language specification (or interface) and to properly use it I have to download some library (for the specific OS) that implements the OpenGL specification.

After long searching and from multiple sources I found that the Mesa 3D Graphics Library would be the best for me.

I also found the SDL (Simple DirectMedia Layer) library but it seems to be a library for all other things beside graphics (e.g. GUI, sound, keyboard and mouse input, …). I need ONLY a graphics library, so that it will implement the OpenGL specification.

As a graphical user interface I use the Gtkmm library and I am “very satisfied” with it so far, so I would like to “connect” gtkmm with OpenGL – for that I found an extension to gtkmm library called gtkglextmm by means of which I should be able to draw the OpenGL animation to a window (or DrawingArea in Gtkmm jargon) in GUI (but I have not tried it yet so I hope it will work 🙂 ).

And the last problem is the cross compilation from Linux to Windows (with the MinGW cross compiler). So far, I have successfully cross compiled (from Linux to Windows) all my work done with the Gtkmm library.

When I combine it with OpenGL, won’t it be any problem to cross compile it (e.g. do I need to link something special when compiling with the Gcc compiler, or should I distribute some Windows OpenGL library with my application)?

I would be very pleased I you confirmed that I am in the right direction or turned me in the right direction that I could done something easier or better way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T07:50:20+00:00Added an answer on May 13, 2026 at 7:50 am

    To some extent its graphics card dependent, the proprietary driver packs include their own libGL.so and also include the libGL.la (to link against the .so) and any relevant header files.

    • Nvidia – OpenGL libraries and headers are included in the proprietary driver package.
    • ATi FGLRX – OpenGL libraries and headers are included in the proprietary driver package.
    • Open Source Drivers – OpenGL libraries and headers are provided as a part of Mesa. Depending on your distribution you may need to install the *-devel packages to get the headers and linkable libraries you’ll need.

    If you’re using an Intel or Matrox card, or you’re running an ATi card with the rage, radeon or radeonhd driver you’re using the Open Source drivers.

    GLUT will be the shortest path to a working program. Otherwise you’ll need to write the code to create the OpenGL context (OS specific) yourself.

    If you’re still having issues, let us know more about whats not working for you.

    EDIT Here’s some sample commands/code that might be relevant or useful.

    GCC Compiling:

    gcc -lGL glprogram.c -o glprogram
    

    Includes:

    #include <GL/gl.h>
    #include <GL/glu.h>
    #include <GL/glut.h>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This seems to match the rules I have defined, but I only starting learning
I'm only starting learning c# (and programming in general). I'm doing a little college
I have been learning python for some time now. While starting this learning python
I'm just starting out in learning Ruby and I've written a program that generates
I'm starting learning javascript for a project, I've found a script that does a
I'm just starting out learning javascript, and tried to write a little script that
So forgive me, I'm just starting learning Javascript, I don't even know if this
I'm starting learning classes in PHP. I coded that: class User { function getFbId($authtoken)
I'm just starting learning CDI and Java EE 6 but I found this piece
This semester, I'm learning database using the isql*plus (oracle10g), but that needs to install

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.