Re: [Hamlib-developer] quick swig report
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Stephane F. <f8...@fr...> - 2002-09-16 06:50:06
|
Hi Joop,
Thanks for giving swig a try!
On Fri, Sep 13, 2002, Joop Stakenborg wrote:
> Swig fails in the latest CVS. (swig version 1.1) here:
^^^
>
> make[1]: Entering directory `/home/aba/Projects/hamlib/hamlib.pa4tu/bindings'
> swig -perl5 -shadow -I../include -I../src -I../lib -o hamlibperl_wrap.c hamlib.swg
> Generating wrappers for Perl 5
> hamlib.swg : Line 40. Syntax error in input.
> hamlib.swg : Line 54. Syntax error in input.
> hamlib.swg : Line 76. Missing semicolon. Reached end of input.
> make[1]: *** [hamlibperl_wrap.c] Error 1
> make[1]: Leaving directory `/home/aba/Projects/hamlib/hamlib.pa4tu/bindings'
> make: *** [all-recursive] Error 1
>
> This might be related to perl-5.8, see http://bugs.debian.org/swig
nope. I forgot to tell you. You need at least swig 1.3,
and the latest one gives better result. I work with 1.3.14 in Debian unstable.
I have a little problem, with automake though. The following Makefile.am does
compile only static version (BINDING_LA = hamlibperl.la hamlibtcl.la):
lib_LTLIBRARIES = @BINDING_LA@
EXTRA_LTLIBRARIES = hamlibperl.la hamlibtcl.la
So I cannot use @BINDING_LA@, and have to hardcode the list for now. Any idea?
lib_LTLIBRARIES = hamlibperl.la hamlibtcl.la
I am using autoconf 2.53-5, automake 1.6.3-2, and libtool 1.4.2-7
The get methods are almost done. I try to achieve dynamic type casting
for get_level/get_param, but documentation is sparse on this (advanced) subject.
Error codes will be handled seamlessly with exceptions (even in Perl).
Once this will be done, we'll be able to get rid of rigmatrix (rewritten
in perl), and write easily a memory editor/dumper in perl/tk/..
Let me know how it works for you.
Stephane
|