Re: Perl6 and wxwidgets
Hi All, Thanks for the very fast information provided. As this is not an easy project I’ll dig into it later on, if I’m feeling confident enough… best -- erik colson
Re: Perl6 and wxwidgets
On Sun, Jun 8, 2014 at 6:54 AM, Erik Colson wrote: > Is it possible to use an external C-library like wxwidgets from > perl6/moarvm ? > If so, is there any doc how this can be achieved ? > wxwidgets may actually be a bit difficult, since it's not a C library. It's C++, and that is famously difficult to use via system linkage unless you write the linkage in C++ exporting C interfaces with the `extern "C"` mechanism. -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net
Re: Perl6 and wxwidgets
GTK::Simple is a recent example of how to make these bindings: https://github.com/perl6/gtk-simple/ Am 08.06.2014 12:56, schrieb Moritz Lenz: > Hallo Erik, > > On 08.06.2014 12:54, Erik Colson wrote: >> Is it possible to use an external C-library like wxwidgets from perl6/moarvm >> ? >> If so, is there any doc how this can be achieved ? > It is, through the NativeCall library: https://github.com/jnthn/zavolaj/ > > Cheers, > Moritz
Re: Perl6 and wxwidgets
On 06/08/2014 12:54 PM, Erik Colson wrote: > Hi, > > Is it possible to use an external C-library like wxwidgets from perl6/moarvm ? > If so, is there any doc how this can be achieved ? > > Thanks > -- > erik colson Hello Erik, We have a Module in the ecosystem called NativeCall (lives on github in a repository named zavolaj), that makes it quite simple to bind C libraries. This works across jvm, moar and parrot. For a few examples, check out these projects: https://github.com/avuserow/perl6-audio-taglib-simple/ https://github.com/avuserow/perl6-compress-snappy/ https://github.com/retupmoca/P6-Compress-Zlib-Raw/ https://github.com/dagurval/perl6-gd-raw/ https://github.com/perl6/gtk-simple/ https://github.com/mrhdias/perl6-Imlib2/ Hope to help! - Timo signature.asc Description: OpenPGP digital signature
Re: Perl6 and wxwidgets
Hallo Erik, On 08.06.2014 12:54, Erik Colson wrote: > Is it possible to use an external C-library like wxwidgets from perl6/moarvm ? > If so, is there any doc how this can be achieved ? It is, through the NativeCall library: https://github.com/jnthn/zavolaj/ Cheers, Moritz