-
Notifications
You must be signed in to change notification settings - Fork 5
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
undefined subroutine &AutoLoader::AUTOLOAD #2
Comments
You never actually use Autoloader in GLUT.pm. |
When I add 'use AutoLoader;' at the top, the error becomes:
I had a thought the problem might be the namespace for the XS constant routine but I don't know enough about AutoLoader to debug further. Probably won't have significant time until next weekend but would really like to get OpenGL::GLUT released. If you use OpenGL for GLUT/FreeGLUT, I would appreciate help with fix and confirming that it works ok. |
I can't really provide a fix since i'm not sure what the code is supposed to be doing. Adding
You maybe want to remove this altogether: https://github.com/devel-chm/OpenGL-GLUT/blob/master/lib/OpenGL/GLUT.pm#L427-L436 |
Also looking at Sysiphus' commit, it doesn't look like much of a fix. His patch just disabled the XS parts entirely, but i'm sure you still want XS functions to be loaded? |
I found the problem. Calling XS loading twice for the same module. |
Fix looks good. Let me know if you can use OpenGL::GLUT in place of OpenGL qw(:glutfunctions :glutconstants); |
Haven't tried that yet, but i can confirm menutest.pl works here too. I'll do some work on another task first (reintegrating the old git history without performing a force push), then i'll try and make test.pl work with this module. |
Works fine in Perl-GPU/OpenGL-Modern#41 |
Great! Maybe we should put the functions used in test.pl at the top of the OpenGL::Modern priority list so we can finish this update. |
The current git of OpenGL::GLUT now builds and passes tests which closes issue #1. However, when I try to run the example program, I get the following error:
The text was updated successfully, but these errors were encountered: