Hi Chris,
I did the last tests with the OpenGL module not the PGOPOGL module.
I tried the PGOPOGL today and I got the same problem with 'make test'.
But I think I found the problem. Maybe it's not the perl OpenGL module,
neither is it the PGOPOGL module, it's openSuse's OpenGL library setup
that causes the trouble. At least it looks like it.
I've got two 'libGL.so' libraries on my system. One, the Mesa library,
resides in /usr/lib the other, Nvidias OpenGL implementation, resides
in /usr/X11R6/lib. This particular combination seems to be troublesome
for the POGL( and PGOPODL) Makefile generator. I suspect that somewhere
in the process of building the module the two libraries get mixed up and
therefore 'make test' fails.
My current workaround to this problem is to move the mesa libGL.so
library into /usr/local/lib. Then I get an 3D hardware accelerated spinning
cube from 'make test' :) (from both POGL and PGOPOGL).
I'm not comletly sure why this works, but obviously /usr/X11R6/lib takes
precedence over /usr/local/lib during linking.
These are my current findings, if you need more information just let me know.
Kind Regards
Matthias
2009/6/5 Chris Marshall via RT <bug-OpenGL@rt.cpan.org>:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=46586 >
>
> Hi Mattias,
>
> Was this with OpenGL or PGOPOGL?
>
> It is good that the Mesa software OpenGL worked
> as a fallback but the real issue is getting the
> hardware accelerated graphics working.
>
> If the glversion program builds with the NV
> drivers then we should be able to get perl to
> build the OpenGL or Perl::Graphics::OpenGL::Perl::OpenGL
> (a.k.a. PGOPOGL) using the same compile options.
>
> Could you try a clean build with PGOPOGL with the
> verbose option and trying to specify the interface
> as freeglut?
>
> Thanks,
> Chris
>
>
> On Thu Jun 04 17:52:33 2009, mhiebing@googlemail.com wrote:
>> Hello Chris,
>>
>> I played around with the graphics driver of my system. As it seems,
>> when I remove the 3D hardware accelerated Nvidia OpenGL drivers and
>> replace them with the Mesa OpenGL software drivers, 'make test'
>> succeeds.
>> I can see the spinning cube. Of course its quite slow. But it works with
>> the software drivers. Currently I have no idea why it fails with the
> Nvidia
>> hardware drivers.
>>
>> And another thing. On one occasion I got another error message from
>> 'make test'. I still have to find a way to reproduce it.
>>
>> other message 'make test'
>> ---------------------------
>> freeglut (test.pl): ERROR: Internal error <FBConfig with necessary
>> capabilities not found> in function fgOpenWindow
>> X Error of failed request: BadWindow (invalid Window parameter)
>> Major opcode of failed request: 4 (X_DestroyWindow)
>> Resource id in failed request: 0x0
>> Serial number of failed request: 25
>> Current serial number in output stream: 28
>> make: *** [test_dynamic] Fehler 1
>>
>>
>> if you need further information, I will do what I can to get it to you.
>>
>> Regards
>>
>> Matthias
>
>
>
>