artfulbytes / bots2d

Bots2D is a C++ framework for simulating robotics in 2D that provides boilerplate code and robotics assets to help you quickly get started.
MIT License
29 stars 12 forks source link

Shader error on Mac OS #1

Open avardy opened 2 years ago

avardy commented 2 years ago

Hi,

This looks like a really cool and useful project! I'm trying to evaluate whether it could be adopted for swarm robotics research. However, I'm on a Mac and got the following error when trying to execute bots2dtest:

4.1 ATI-4.8.15
Failed to compile vertex
ERROR: 0:11: ';' : syntax error: syntax error

Failed to compile fragment
ERROR: 0:11: ';' : syntax error: syntax error

/Users/av/Downloads/bots2d/src/renderer/Shader.cpp 171 glAttachShader(program, vs) [OpenGL errer]: 1281
Assertion failed: (false), function GLLogCall, file /Users/av/Downloads/bots2d/src/renderer/GLError.cpp, line 15.
Abort trap: 6

I understand that this may be an OS-specific issue. But maybe someone has some advice?

niklasab commented 1 year ago

Sorry for late reply, haven't looked at this repo in a while. I have not tried to build this on MacOS. Might be possible to get it working, but OpenGL is deprecated on MacOS.