Skip to content
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

fails on latest OpenGL::Modern - "glGenTextures" is not exported #20

Open
dk opened this issue Mar 6, 2017 · 8 comments
Open

fails on latest OpenGL::Modern - "glGenTextures" is not exported #20

dk opened this issue Mar 6, 2017 · 8 comments

Comments

@dk
Copy link
Contributor

dk commented Mar 6, 2017

"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.

@devel-chm
Copy link
Contributor

devel-chm commented Mar 6, 2017 via email

@Corion
Copy link
Owner

Corion commented Mar 6, 2017

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...

@dk
Copy link
Contributor Author

dk commented Mar 6, 2017

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.

@wchristian
Copy link

wchristian commented Mar 7, 2017

@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: Perl-GPU/OpenGL-Modern#50

@devel-chm
Copy link
Contributor

I just tried the latest git from master, 8ebcb1b
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.

@Corion
Copy link
Owner

Corion commented May 21, 2017

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)

@devel-chm
Copy link
Contributor

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.

@dk
Copy link
Contributor Author

dk commented Aug 7, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants