yes it is possible to use OGLplus with GLFW, but the current build system does not support it yet (it's sitting on the TODO list), which is why the configuration script fails.
Right now to use GLFW you have to compile the examples manually or write (and compile) your own apps.
As to the " error: oglplus/all.hpp: No such file or directory" error. Did you use -I<path/to/oglplus-root-dir> (or some equivalent)?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
(sorry to reply to myself but,)
to clarify the above, the examples would need some additional tweaking too if they were to be used with GLFW, but generally it is possible to write your own apps that use OGLplus and GLFW.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, the CMakefile.txt should look something along those lines,
OGLplus is header-only so there is no compiled library now.
In the future it will probably be possible to optionally compile
some parts into a library to improve build times.
We'll also bump the priority for support of GLFW.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everyone,
Newbie, here…
Is is it possible to use OGLplus with GLFW, instead of GLUT?
I tried using it on a simple example, and I got this:
I then tried to run ./configure.sh, and I got this:
If it's possible any tips to help getting it working would be appreciated.
Thanks.
Hi,
yes it is possible to use OGLplus with GLFW, but the current build system does not support it yet (it's sitting on the TODO list), which is why the configuration script fails.
Right now to use GLFW you have to compile the examples manually or write (and compile) your own apps.
As to the " error: oglplus/all.hpp: No such file or directory" error. Did you use -I<path/to/oglplus-root-dir> (or some equivalent)?
(sorry to reply to myself but,)
to clarify the above, the examples would need some additional tweaking too if they were to be used with GLFW, but generally it is possible to write your own apps that use OGLplus and GLFW.
I see.. Thanks for the input.
Then then problem is that I don't know how to set up CMakeLists.txt properly. This is what I have:
Also tried with
And if I removed the #include <oglplus/all.hpp>, I get:
I suppose that's because OGLplus is not installed on the system.
So I need a way to specify the path to where to look for the OGLplus.so file?
Oops, sorry…
…there should be no .so file, right?.. if it's a header only library
So adding OGLplus to the target_link_libraries doesn't make any sense.
Sorry for the triple post.. would just edit the first I could.. :\
Anyway.. got it working with:
Thanks. ^^
Yes, the CMakefile.txt should look something along those lines,
OGLplus is header-only so there is no compiled library now.
In the future it will probably be possible to optionally compile
some parts into a library to improve build times.
We'll also bump the priority for support of GLFW.