Results 1 to 2 of 2

Thread: Got problem while compiling an OpenGL .cpp file

  1. #1
    Join Date
    May 2013
    Beans
    44

    Got problem while compiling an OpenGL .cpp file

    Hi freiends,

    While compiling a .cpp file having code written for OpenGL by using command:
    g++ -lGL -lglut tutorial14.cpp -o aaa ,
    or
    g++ -lGL -lglut -lglew -lglu tutorial14.cpp -o aaa


    I got an error message as follows:

    tutorial14.cpp:25:21: fatal error: GL/glew.h: No such file or directory
    compilation terminated.


    My g++ version is as follows:

    rahul@rahul-VPCEG28FN:~/Downloads/tutorial14$ g++ --version
    g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
    Copyright (C) 2011 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


    Regards,
    Rahul

  2. #2
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Got problem while compiling an OpenGL .cpp file

    You'll need to install libglew-dev, it's a separate package.

    Code:
    sudo apt-get install libglew-dev

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •