Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Inline::C *back* into Perl

by BUU (Prior)
on Feb 14, 2004 at 01:01 UTC ( #328909=note: print w/replies, xml ) Need Help??


in reply to Inline::C *back* into Perl

As you say, trying to go from glut back to perl is probably futile. I'd rather try something like wxWindows to write the window wrapper and write the main loop in perl.

Replies are listed 'Best First'.
Re: Re: Inline::C *back* into Perl
by flyingmoose (Priest) on Feb 14, 2004 at 01:10 UTC
    Sounds like a very good plan, but wxWindows is C++. Does that complicate the matters of using inline? It seems from CPAN docs that Inline::CPP isn't going to allow me to call instance methods across the Perl/C++ boundary without non OO wrappers (I could be wrong).

    FYI: freeglut 2.20 apparently doesn't have the mainloop requirement, I'm just trying to use packages that are in my apt-repository if possible...just to be sure I'm not the only one who can compile whatever I do...worst case, I can upgrade freeglut.

    Again, it seems as though I would just use wxPerl or GTK perl bindings or even OpenGL.pm -- except that, as I've said, OpenGL doesn't compile. Besides, using Inline is fun and opens up the ability to use a lot of cool libs out there.

      wxWindows also has perl bindings. So theoretically you could just write perl wrappers for opengl commands and then do it all in perl. Thats what I'd try.
        CPAN Wx module doesn't compile anyway, gosh darn it! This is a relatively complete system, too.
        make[2]: Leaving directory `/root/.cpan/build/Wx-0.18/ext/docview' make[2]: Entering directory `/root/.cpan/build/Wx-0.18/ext/stc' PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, '../../blib/lib', '../../blib/arch')" t/*.t t/01_load...........Can't load '/root/.cpan/build/Wx-0.18/ext/stc/../. +./blib/arch/auto/Wx/STC/STC.so' for module Wx::STC: /root/.cpan/build +/Wx-0.18/ext/stc/../../blib/arch/auto/Wx/STC/STC.so: undefined symbol +: wxSTCNameStr at /usr/lib/perl5/5.8.1/i386-linux-thread-multi/DynaLo +ader.pm line 229. at /root/.cpan/build/Wx-0.18/ext/stc/../../blib/lib/Wx.pm line 138 Compilation failed in require at t/01_load.t line 7. BEGIN failed--compilation aborted at t/01_load.t line 7. t/01_load...........dubious Test returned status 255 (wstat 65280, 0xff00) Scalar found where operator expected at (eval 153) line 1, near "'int' + $__val" (Missing operator before $__val?) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/02_inheritance....Can't load '/root/.cpan/build/Wx-0.18/ext/stc/../. +./blib/arch/auto/Wx/STC/STC.so' for module Wx::STC: /root/.cpan/build +/Wx-0.18/ext/stc/../../blib/arch/auto/Wx/STC/STC.so: undefined symbol +: wxSTCNameStr at /usr/lib/perl5/5.8.1/i386-linux-thread-multi/DynaLo +ader.pm line 229. at /root/.cpan/build/Wx-0.18/ext/stc/../../blib/lib/Wx.pm line 138 Compilation failed in require at t/02_inheritance.t line 10. BEGIN failed--compilation aborted at t/02_inheritance.t line 10. # Looks like your test died before it could output anything. t/02_inheritance....dubious

        I am starting to get a little mad with my OS :) ... I'm really thinking learning how to XS back into Perl might the answer, however ugly.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://328909]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2022-05-22 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (80 votes). Check out past polls.

    Notices?