[yast-devel] SWIG bindings for libyui available: YCP-free YaST dialogs !
Things you do with some spare time in the evening ... ;-) Hi, I just imported 'libyui-bindings' into the YaST svn repository, providing SWIG bindings (well, just Ruby for now) for libyui. For the curious: svn co http://svn.opensuse.org/svn/yast/trunk/libyui-bindings cd libyui-bindings mkdir build cd build cmake .. make cd ../swig/ruby/examples ruby hello_world.rb Enjoy ! Now back to sat-solver and libzypp ... Klaus -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Klaus Kaempf wrote:
Things you do with some spare time in the evening ... ;-)
Hi,
I just imported 'libyui-bindings' into the YaST svn repository, providing SWIG bindings (well, just Ruby for now) for libyui.
For the curious:
svn co http://svn.opensuse.org/svn/yast/trunk/libyui-bindings cd libyui-bindings mkdir build cd build cmake .. make cd ../swig/ruby/examples ruby hello_world.rb
Enjoy !
Now back to sat-solver and libzypp ...
Klaus
great!, I was planning to do that since long time... I think the next step is to provide APIs more close to each target language, and use the generated ones as a hidden glue. For example it would be cool to use the famous ruby syntax by using blocks, just like shoes do: Shoes.app { button("Press Me") { alert("You pressed me") } } } -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
* Duncan Mac-Vicar Prett <dmacvicar@suse.de> [Apr 11. 2008 11:26]:
great!, I was planning to do that since long time...
And you already did 90% percent of the work with libzypp-bindings ;-)
I think the next step is to provide APIs more close to each target language, and use the generated ones as a hidden glue. For example it would be cool to use the famous ruby syntax by using blocks, just like shoes do:
Shoes.app { button("Press Me") { alert("You pressed me") } }
Exactly ! Klaus -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Fri, Apr 11, 2008 at 11:17:55AM +0200, Klaus Kaempf wrote:
svn co http://svn.opensuse.org/svn/yast/trunk/libyui-bindings cd libyui-bindings mkdir build cd build cmake .. make
It doesn't work for me. Any idea what's wrong? [ 0%] Generating yui_wrap.cxx Creating wrapper code for ruby... /home/mvidner/s/yt/libyui-bindings/swig/ruby/../yui.i:51: Error: Unable to find 'std_list.i' /home/mvidner/s/yt/libyui-bindings/swig/ruby/../yui.i:52: Error: Unable to find 'std_set.i' make[2]: *** [swig/ruby/yui_wrap.cxx] Error 1 I have 10.3, swig-1.3.31-50 there is /usr/share/swig/1.3.31/ruby/std_string.i but no .../ruby/std_list.i, only .../std/std_list.i -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Martin Vidner wrote:
On Fri, Apr 11, 2008 at 11:17:55AM +0200, Klaus Kaempf wrote:
svn co http://svn.opensuse.org/svn/yast/trunk/libyui-bindings cd libyui-bindings mkdir build cd build cmake .. make
It doesn't work for me. Any idea what's wrong?
[ 0%] Generating yui_wrap.cxx Creating wrapper code for ruby... /home/mvidner/s/yt/libyui-bindings/swig/ruby/../yui.i:51: Error: Unable to find 'std_list.i' /home/mvidner/s/yt/libyui-bindings/swig/ruby/../yui.i:52: Error: Unable to find 'std_set.i' make[2]: *** [swig/ruby/yui_wrap.cxx] Error 1
I have 10.3, swig-1.3.31-50 there is /usr/share/swig/1.3.31/ruby/std_string.i but no .../ruby/std_list.i, only .../std/std_list.i
I think Klaus copied something from libzypp-bindings, because I remember I did std_set myself because it was not part of swig. I dont think libyui uses sets anyway. Duncan -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
* Martin Vidner <mvidner@suse.cz> [Apr 11. 2008 11:34]:
On Fri, Apr 11, 2008 at 11:17:55AM +0200, Klaus Kaempf wrote:
svn co http://svn.opensuse.org/svn/yast/trunk/libyui-bindings cd libyui-bindings mkdir build cd build cmake .. make
It doesn't work for me. Any idea what's wrong?
[ 0%] Generating yui_wrap.cxx Creating wrapper code for ruby... /home/mvidner/s/yt/libyui-bindings/swig/ruby/../yui.i:51: Error: Unable to find 'std_list.i' /home/mvidner/s/yt/libyui-bindings/swig/ruby/../yui.i:52: Error: Unable to find 'std_set.i'
Get a newer version of SWIG. Factory has 1.3.34 (or copy the std_*.i files from zypp/libzypp-bindings/swig/ruby) Maybe it works without these files, just uncomment them in yui.i and try again. Klaus -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (3)
-
Duncan Mac-Vicar Prett
-
Klaus Kaempf
-
Martin Vidner