Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Inline::C *back* into Perl

by flyingmoose (Priest)
on Feb 14, 2004 at 01:10 UTC ( [id://328910]=note: print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
Re: Re: Re: Inline::C *back* into Perl
by BUU (Prior) on Feb 14, 2004 at 01:31 UTC
    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.

        This is by far the most common problem people encounter with wxPerl. It's a FAQ (docs/install.txt). Either install wxSTC or disable it from the perl build. perl Makefile.PL --help

        MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
        I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
        ** The third rule of perl club is a statement of fact: pod is sexy.

        Wow. I can even get wx to compile on windows!
Re: Re: Re: Inline::C *back* into Perl
by PodMaster (Abbot) on Feb 14, 2004 at 17:23 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-24 01:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found