Re: [Pharo-users] OpenGL project
Strange, I tried "brew install glfw3 ? but it does not work. Instead, I had to do "brew install homebrew/versions/glfw3?
Yep good point thank you.
demo.c:2:10: fatal error: 'GLFW/glfw3.h' file not found
Homebrew should place the GLFW folder in /usr/local/include, and cc should list it among include directories with -v Cheers, Thibault
Cheers, Alexandre
On Mar 25, 2016, at 6:37 AM, Thibault Raffaillac <thibault.raffaillac@inria.fr> wrote:
Can you include a proper build script?
Yep sorry, here are the steps I used to make it run on OSX: $ brew install glfw3 $ cc demo.c -lglfw3 -framework OpenGL
For other systems the doc is hopefully detailed enough (http://www.glfw.org/docs/latest/build.html).
Why do you say ?porting NBOpenGL?? Is it just a matter of rewriting the native calls with the new FFI system? NBOpenGL functions were generated automatically from NBGLGenerator, so I need to get used to the tool beforehand. It looks like a lot of work was put into this, can I find a paper about it? Also, IMO this all looks too complex. My point in limiting to ES 2 is not just removing functions, I want to make it look simple like the C demo!
Thibault
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
------------------------------
Subject: Digest Footer
_______________________________________________ Pharo-users mailing list Pharo-users@lists.pharo.org http://lists.pharo.org/mailman/listinfo/pharo-users_lists.pharo.org
------------------------------
End of Pharo-users Digest, Vol 35, Issue 121 ********************************************
On 26 March 2016 at 18:44, Thibault Raffaillac <thibault.raffaillac@inria.fr
wrote:
Homebrew should place the GLFW folder in /usr/local/include, and cc should list it among include directories with -v
No. It should put them in `brew --prefix`/include, which only happens to be /usr/local/include if you followed homebrew's default installation instructions. If you have pkg-config installed, you can use it to determine the correct preprocessor and linker flags to the compiler, like so: pkg-config --cflags --libs glfw3
participants (2)
-
Damien Pollet -
Thibault Raffaillac