-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation under Linux #1
Comments
Here's what gdb says:
|
@yaxu I haven't run this on linux and I am definitely not sure why I added the glxw header (including the casing for linux and windows) If I remember correctly it should compile fine without the glxw.h include. (and did run—though shaders fail—on a raspberry pi 2 (debian, but I guess sid/unstable)) The segfault appears when reading opengl version information, which seems rather odd, can you try recompiling (make clean && make) without the glxw.h ? |
@lennart It still segfaults. With optimisation turned off (i.e. removing -O3) it fails at printing out the version... |
Yes now it seems to run every time, can't get it to segfault whether or not |
It could be that your graphics card does not support the current shaders. Can you tell me the log output from weltfrieden, mine says:
Regarding shaders, I'll be adding a DEBUG flag to turn on Shaderlogging. |
|
are you on irc? as I am trying to get a test setup running in a virtual machine and would be interested to get this working on linux. I’d be interested if the shaders cannot be loaded correctly on your side, or if it is something different.
|
I updated the instruction for dependencies and setup for linux (and osx). I have this working on a raspberry pi 2 (though with explicitly sourcing from the debian sid repositories), it even works with glfw3 installed via apt-get.
I added logic for choosing the shading level and choose the appropriate shaders for your graphics card. Since you have a OpenGL 3xx capable card, you should be able to use most of the shaders. |
Thanks it's working now! Compiling + working out of the box. Fun stuff! I did notice that the timing isn't right. Tidal calculates and sends dirt messages so many times per cycle (I can't remember, maybe 4), which dirt then schedules according to the timestamp. This is to iron out any network jitter. As you're not doing the scheduling this isn't well timed: You can switch off this behaviour so Tidal does the scheduling for you:
But you'd then also need to change weltfrieden to not expect the timestamp related parameters. BTW you might be better off making a new OscShape with parameters that make sense for weltfrieden (although I can see why you're reusing the dirt one).. |
Great it works! Regarding timing, I opened another issue for that. |
Tantalising, but I haven't managed to get it working.. Here's some notes. The stock Debian Jessie glfw was too old, but installed that from source, no problems there.
GLXW is a dependency, and I'm not sure where to get it, it's not in debian.. This seems to be it:
https://github.com/rikusalminen/glxw
There is no install process, I manually moved the header files into
/usr/local/include
, not sure whether that is the right thing..I then get this error:
I solve this by deleting the colons.
Then I am in the realm of missing x11 dependencies:
I add
-lX11 -ldl -lXi -lXxf86vm -lGL -lXinerama -lXCursor -lXrandr
to the LDFLAGS as it asks for them..I also copy in glxw.c, and add it to SOURCES in the Makefile..
Then it compiles!! and..
The text was updated successfully, but these errors were encountered: