Giter Site home page Giter Site logo

Comments (3)

nigels-com avatar nigels-com commented on June 19, 2024 3

Ah, interesting. I can reproduce this problem on Linux too.

It appears that opengl-boilerplate is trying to generate an old version of GLEW with the current version of the OpenGL specifications. Here is a workaround that works for me:

cd external/glew
git clean -xdf .
git reset --hard glew-1.13.0
cd auto/registry
git clean -xdf
git reset --hard glew-1.13.0
touch gl/specs/.dummy
cd ../..
make extensions
cd ../..

And a-la, it works again...

$ make
Scanning dependencies of target glew
[  4%] Building C object CMakeFiles/glew.dir/external/glew/src/glew.c.o
[  8%] Linking C static library libglew.a
[  8%] Built target glew
Scanning dependencies of target glfw
[ 13%] Building C object external/glew/src/CMakeFiles/glfw.dir/clipboard.c.o
[ 17%] Building C object external/glew/src/CMakeFiles/glfw.dir/context.c.o
[ 21%] Building C object external/glew/src/CMakeFiles/glfw.dir/gamma.c.o
[ 26%] Building C object external/glew/src/CMakeFiles/glfw.dir/init.c.o
[ 30%] Building C object external/glew/src/CMakeFiles/glfw.dir/input.c.o
[ 34%] Building C object external/glew/src/CMakeFiles/glfw.dir/joystick.c.o
[ 39%] Building C object external/glew/src/CMakeFiles/glfw.dir/monitor.c.o
[ 43%] Building C object external/glew/src/CMakeFiles/glfw.dir/time.c.o
[ 47%] Building C object external/glew/src/CMakeFiles/glfw.dir/window.c.o
[ 52%] Building C object external/glew/src/CMakeFiles/glfw.dir/x11_clipboard.c.o
[ 56%] Building C object external/glew/src/CMakeFiles/glfw.dir/x11_gamma.c.o
[ 60%] Building C object external/glew/src/CMakeFiles/glfw.dir/x11_init.c.o
[ 65%] Building C object external/glew/src/CMakeFiles/glfw.dir/x11_joystick.c.o
[ 69%] Building C object external/glew/src/CMakeFiles/glfw.dir/x11_monitor.c.o
[ 73%] Building C object external/glew/src/CMakeFiles/glfw.dir/x11_time.c.o
[ 78%] Building C object external/glew/src/CMakeFiles/glfw.dir/x11_window.c.o
[ 82%] Building C object external/glew/src/CMakeFiles/glfw.dir/x11_unicode.c.o
[ 86%] Building C object external/glew/src/CMakeFiles/glfw.dir/glx_context.c.o
[ 91%] Linking C static library libglfw3.a
[ 91%] Built target glfw
Scanning dependencies of target opengl-boilerplate
[ 95%] Building CXX object CMakeFiles/opengl-boilerplate.dir/main.cpp.o
[100%] Linking CXX executable opengl-boilerplate
[100%] Built target opengl-boilerplate

from glew.

ackoujens avatar ackoujens commented on June 19, 2024

Alright, some more details about my issue.
I was trying to get this https://github.com/andersonfreitas/opengl-boilerplate to work in Xcode.

So I just commented out every redefinition error and it seems to compile and run.
Not sure if I'm mutilating glew but here you can see what I needed to alter to make this work.

glew.zip

Hope there's a solution so this'll turn into an out of the box experience for me :D

from glew.

ackoujens avatar ackoujens commented on June 19, 2024

Thanks again code magician. I learn something new on GitHub every day it seems.

from glew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.