compile glfw 3 without libglu1-mesa-dev [conflict]?

Using GLFW
  • cellsheet

    cellsheet - 2013-07-17

    Hello, I am currently having missing modern OpenGL references, despite having all drivers installed. I have a feeling the root of this cause is because of libglu1-mesa-dev is conflicting with nvidia's official .run driver files (I'm running on linux mint 15 with 319 stable drivers with a GTX 760 GPU). I had installed libglu-mesa-dev before and after installing the .run file (I did each seperately after reinstalling mint), yet I get this error:

    main.cpp: In function ‘int main()’:
    main.cpp:18:27: error: ‘glGenVertexArrays’ was not declared in this scope
    main.cpp:19:35: error: ‘glBindBuffer’ was not declared in this scope

    if I include GL/glew.h before the glfw3 header, then I get this error output:

    /tmp/ccUn7ZJ0.o: In function main': main.cpp: (.text+0x4b): undefined reference toglewGenVertexArrays'
    main.cpp: (.text+0x5e): undefined reference to `

    Here is what I am using to compile my program: g++ main.cpp -o test pkg-config glfw3 --static --cflags --libs

    I also found using #define GL_GLEXT_PROTOTYPES did not change the results of the output. I'm at my wit's end with glfw3.h.

    Here is my program and I know its very incomplete, I'm only compiling it to ensure i get these errors fixed for now:

  • Camilla Löwy

    Camilla Löwy - 2013-07-17

    If you're using GLEW then you need to link to it.

    • cellsheet

      cellsheet - 2013-07-17

      Alright, thanks

      Last edit: cellsheet 2013-07-17

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks