Results 1 to 5 of 5

Thread: compiling issue - Ubuntu -> Eclipse

  1. #1

    compiling issue - Ubuntu -> Eclipse

    Hi All,
    I just yesterday installed ubuntu on my pc (now I have dual boot with Vista - where open GL works without problem) and when I want to compile one openGL program the compiler can not find open GL. This is what I get on every openGL function (the variable is different):

    Description Resource Path Location Type
    ‘GL_COLOR_BUFFER_BIT’ was not declared in this scope openGLtest.cpp openGLtest/src 28 C/C++ Problem



    please where can I define it?

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: compiling issue - Ubuntu -> Eclipse

    #include <GL/gl.h>

  3. #3

    Re: compiling issue - Ubuntu -> Eclipse

    thanks for the reply but that does not work. Should I include it also in a project? (Glut have already included..)

  4. #4
    Senior Member Frequent Contributor _NK47's Avatar
    Join Date
    Mar 2008
    Posts
    574

    Re: compiling issue - Ubuntu -> Eclipse

    you should make sure the path to GL directory is known. can be either hardcoded or setup in project settings (include directories).
    you could test some NeHe ubuntu samples and see how they do it.

  5. #5
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: compiling issue - Ubuntu -> Eclipse

    No gl.h header ?
    try `locate gl.h` to be sure.

    Maybe you need to install a dev package too, ie. freeglut comes with all .h needed for gl development, I guess for ubuntu it is called like this : freeglut3-dev

Similar Threads

  1. Replies: 2
    Last Post: 09-20-2017, 07:43 AM
  2. issue with radeon driver under Ubuntu 16.04
    By StephanP in forum OpenGL: Drivers
    Replies: 5
    Last Post: 09-13-2016, 01:39 PM
  3. Issue compiling OpenGL program that uses GLEW
    By MilesAway1980 in forum OpenGL: Windows
    Replies: 12
    Last Post: 06-21-2013, 01:45 PM
  4. Open GL and Python2-7 issue in Ubuntu 12.04 (x86_64)
    By farrington in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-28-2013, 03:49 AM
  5. Offline Kernel Compiling in Ubuntu?
    By hyunn0204 in forum OpenCL
    Replies: 3
    Last Post: 01-22-2013, 04:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean