app-shadertoy
app-shadertoy copied to clipboard
fails on latest OpenGL::Modern - "glGenTextures" is not exported
"glGenTextures" is not exported by the OpenGL::Modern module "glTexImage2D" is not exported by the OpenGL::Modern module "glTexSubImage2D" is not exported by the OpenGL::Modern module Can't continue after import errors at C:/Strawberry/perl/site/lib/OpenGL/Texture.pm line 4. BEGIN failed--compilation aborted at C:/Strawberry/perl/site/lib/OpenGL/Texture.pm line 22. Compilation failed in require at shadertoy.pl line 15. BEGIN failed--compilation aborted at shadertoy.pl line 15.
All are available as their "_c" variants:
glGenTextures_c glTexImage2D_c glTexSubImage2D_c
See source and pod in OpenGL::Modern::Helpers for information on how to call. Friendlier bindings are in progress.
--Chris
On 3/6/2017 02:39, Dmitry Karasik wrote:
"glGenTextures" is not exported by the OpenGL::Modern module "glTexImage2D" is not exported by the OpenGL::Modern module "glTexSubImage2D" is not exported by the OpenGL::Modern module Can't continue after import errors at C:/Strawberry/perl/site/lib/OpenGL/Texture.pm line 4. BEGIN failed--compilation aborted at C:/Strawberry/perl/site/lib/OpenGL/Texture.pm line 22. Compilation failed in require at shadertoy.pl line 15. BEGIN failed--compilation aborted at shadertoy.pl line 15.
I've moved the API to the new version with 8ebcb1b , but I now get crashes before the program really starts up. I guess soem of my buffer handling needs a closer look...
Totally unrelated: I know you develop under win32, I found a nice valgrind alternative for it, might be handy: Dr.Memory from google (drmemory.org). The only problem it doesn't understand mingw, msvc only, so you'll need an activestate build for it to work.
@Corion i tried with the latest master, but i get perl syntax errors. Is that commit incomplete?
In any case, maybe try with the feature added by this branch: https://github.com/devel-chm/OpenGL-Modern/pull/50
I just tried the latest git from master, 8ebcb1b80da23ad7167cec791918387323a69c0a But the tests did not run because of a missing Future.pm. Is there another repo for that?
make test PERL_DL_NONLAZY=1 "/usr/bin/perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/www-shadertoy-02-basic.t t/www-shadertoy-02-basic.t .. Can't locate Future.pm in @INC (you may need to install the Future module) (@INC contains: /cygdrive/e/chm/pogl/app-shadertoy/blib/lib /cygdrive/e/chm/pogl/app-shadertoy/blib/arch /home/chm/local64/lib/perl5/cygwin-thread-multi /home/chm/local64/lib/perl5/cygwin-thread-multi /home/chm/local64/lib/perl5 /home/chm/local64/lib/perl5/cygwin-thread-multi /home/chm/local64/lib/perl5 /usr/lib/perl5/site_perl/5.22/x86_64-cygwin-threads /usr/lib/perl5/site_perl/5.22 /usr/lib/perl5/vendor_perl/5.22/x86_64-cygwin-threads /usr/lib/perl5/vendor_perl/5.22 /usr/lib/perl5/5.22/x86_64-cygwin-threads /usr/lib/perl5/5.22 .) at /cygdrive/e/chm/pogl/app-shadertoy/blib/lib/WWW/ShaderToy.pm line 9. BEGIN failed--compilation aborted at /cygdrive/e/chm/pogl/app-shadertoy/blib/lib/WWW/ShaderToy.pm line 9. Compilation failed in require at t/www-shadertoy-02-basic.t line 4. BEGIN failed--compilation aborted at t/www-shadertoy-02-basic.t line 4.
Whoops! I've added the missing prerequisites via 30bbcf4 , but you still need the API key for shadertoy.com (which needs registering with the site)
We've just released OpenGL::Modern 0.04 with all the fixes Dmitry has done for app-shadertoy. I tried to build and test but the repo is missing some prerequisites: Future and Future::HTTP. I hope it will build for you.
Also, it might be nice if there were a "built in" shader for the application so folks can see it working without having an ID from shadertoy.com.
Not directly related to app-shadertoy, but Prima-OpenGL/examples/shadertoy.pl does exactly that, runs the minimal built-in shader program against OpenGL::Modern, if available. I'll try to sync it with v0.04 later
/dk
On Mon, Aug 07, 2017 at 12:31:51PM -0700, devel-chm wrote:
We've just released OpenGL::Modern 0.04 with all the fixes Dmitry has done for app-shadertoy. I tried to build and test but the repo is missing some prerequisites: Future and Future::HTTP. I hope it will build for you.
Also, it might be nice if there were a "built in" shader for the application so folks can see it working without having an ID from shadertoy.com.
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/Corion/app-shadertoy/issues/20#issuecomment-320758199
-- Sincerely, Dmitry Karasik