librelist archives

« back to archive

Shoes 3 https://github.com/shoes/shoes

Shoes 3 https://github.com/shoes/shoes

From:
Douglas Allen
Date:
2013-04-23 @ 18:07
Hey All,

I 'm playing with building this right in the middle of the shoes4 rush.
I couldn't have picked a worse time. But let me tell you some of my cold
experience here.

First off I forked and cloned it. Then ran rake -T and in all branches
except gem-bin I'm getting permission denied.

So the odd thing is that after finding my includes from the GTK+ win32
package bundle I can get  extconf.rb to find them but pangocairo.h
is not getting found even though it will find pango.h. And I have both.
This is what is strange. Why one and not the other when both are in the
same directory?

Let me use this as a learning experience because I'm new to building
extensions in Ruby and many times now with my own MinGW rather than the
DevKit, which gem installs do find and try to use, builds the shared object
while DevKit doesn't. I'm using mingw-get that updates the whole package if
you so desire. The funny thing about DevKit is that the GCC is older and
the profile for the directory structure is reversed as referring to MSYS
and MinGW.
In DevKit the MSYS is the base and MinGW is inside it. But to use it for
windows you still need to set env vars for both bins anyway. But I'm
reading this book on using MinGW title Instant MinGW Starter and it does
give good directions on how to install the GTK+ bundle package for windows.
I missed the link almost on the website because it's just a little thing
with a huge package of all the requirements for building GUIs in C\C++.
That's all I wanted to share. I don't care about Shoes for the moment, at
least building the old one that nobody cares about now. But it is still a
good package if you get the exe installer for windows.

Re: [shoes] Shoes 3 https://github.com/shoes/shoes

From:
J. Kaiden
Date:
2013-04-23 @ 21:38
hi Douglas,

  i'm not at all familiar with building shoes3 on windows - but if you'd
like to start playing around with shoes, have you tried green_shoes?  it
installs as a gem, and i'm pretty sure it goes nice and easy with windows.

  shoes4 is on the way thanks to all the folks around here, but i believe
(and hope!) that green shoes will also be maintained, and either way it's a
good way to get your feet (shoes?) wet...

 - j


On Tue, Apr 23, 2013 at 8:07 PM, Douglas Allen <kb9agt@gmail.com> wrote:

> Hey All,
>
> I 'm playing with building this right in the middle of the shoes4 rush.
> I couldn't have picked a worse time. But let me tell you some of my cold
> experience here.
>
> First off I forked and cloned it. Then ran rake -T and in all branches
> except gem-bin I'm getting permission denied.
>
> So the odd thing is that after finding my includes from the GTK+ win32
> package bundle I can get  extconf.rb to find them but pangocairo.h
> is not getting found even though it will find pango.h. And I have both.
> This is what is strange. Why one and not the other when both are in the
> same directory?
>
> Let me use this as a learning experience because I'm new to building
> extensions in Ruby and many times now with my own MinGW rather than the
> DevKit, which gem installs do find and try to use, builds the shared object
> while DevKit doesn't. I'm using mingw-get that updates the whole package if
> you so desire. The funny thing about DevKit is that the GCC is older and
> the profile for the directory structure is reversed as referring to MSYS
> and MinGW.
> In DevKit the MSYS is the base and MinGW is inside it. But to use it for
> windows you still need to set env vars for both bins anyway. But I'm
> reading this book on using MinGW title Instant MinGW Starter and it does
> give good directions on how to install the GTK+ bundle package for windows.
> I missed the link almost on the website because it's just a little thing
> with a huge package of all the requirements for building GUIs in C\C++.
> That's all I wanted to share. I don't care about Shoes for the moment, at
> least building the old one that nobody cares about now. But it is still a
> good package if you get the exe installer for windows.
>

Re: [shoes] Shoes 3 https://github.com/shoes/shoes

From:
Sebastjan Hribar
Date:
2013-04-23 @ 21:51
Dne 23. 04. 2013 23:38, piše J. Kaiden:
> hi Douglas,
>
>   i'm not at all familiar with building shoes3 on windows - but if 
> you'd like to start playing around with shoes, have you tried 
> green_shoes?  it installs as a gem, and i'm pretty sure it goes nice 
> and easy with windows.
>

I can confirm green shoes on windows 7. The benefit of using it with 
windows for me is that the .rb is executable and apps can be run by 
doubleclick.

regards,
seba
love (green) shoes:)

Re: [shoes] Shoes 3 https://github.com/shoes/shoes

From:
ashbb
Date:
2013-04-24 @ 11:54
Hi Douglas,

I don't recommend building Shoes 3 for Windows now.
But if you want, this might help you.

https://github.com/ashbb/shoes_hack_note/blob/master/md/hack019.md

But this guide is for Shoes 3 (with ruby 1.9.1), not for Shoes 3.1 (with
ruby 1.9.3). I haven't been building Red Shoes for a year. So, I may not be
able to build Red Shoes again...

ashbb

Re: [shoes] Shoes 3 https://github.com/shoes/shoes

From:
Douglas Allen
Date:
2013-04-24 @ 23:40
Well thanks All. I'ved used green_shoes gem before. I just want to learn a
little more about using C extensions in Ruby. What better place to try to
lean from than shoes. Although it's not easy as it could be. I would just
like to get extconf.rb to use pkg_config instead of the old look up the
headers way. Any ideas? We can do it. GTK+ is easy that way. Just look at
any tutorial on it.


On Wed, Apr 24, 2013 at 6:54 AM, ashbb <ashbbb@gmail.com> wrote:

> Hi Douglas,
>
> I don't recommend building Shoes 3 for Windows now.
> But if you want, this might help you.
>
> https://github.com/ashbb/shoes_hack_note/blob/master/md/hack019.md
>
> But this guide is for Shoes 3 (with ruby 1.9.1), not for Shoes 3.1 (with
> ruby 1.9.3). I haven't been building Red Shoes for a year. So, I may not be
> able to build Red Shoes again...
>
> ashbb
>
>

Re: [shoes] Shoes 3 https://github.com/shoes/shoes

From:
Cecil Coupe
Date:
2013-04-24 @ 23:58
Extconf.rb and mkmf.rb are not well documented and behave unexpectedly 
when creating or modifying them.

As ashbb notes, you may get it to build if you are patient. Will it run? 
Maybe, Probably Not. Do you know how to debug a C + Ruby program in 
Windows? It's more work than most of us are willing to do for a dieing 
platform.

I can be done. I once did some extconf mods to handle cross compiling 
Shoes/mingw from linux.

--Cecil


On 04/24/2013 05:40 PM, Douglas Allen wrote:
> Well thanks All. I'ved used green_shoes gem before. I just want to learn
> a little more about using C extensions in Ruby. What better place to try
> to lean from than shoes. Although it's not easy as it could be. I would
> just like to get extconf.rb to use pkg_config instead of the old look up
> the headers way. Any ideas? We can do it. GTK+ is easy that way. Just
> look at any tutorial on it.
>
>
> On Wed, Apr 24, 2013 at 6:54 AM, ashbb <ashbbb@gmail.com
> <mailto:ashbbb@gmail.com>> wrote:
>
>     Hi Douglas,
>
>     I don't recommend building Shoes 3 for Windows now.
>     But if you want, this might help you.
>
>     https://github.com/ashbb/shoes_hack_note/blob/master/md/hack019.md
>
>     But this guide is for Shoes 3 (with ruby 1.9.1), not for Shoes 3.1
>     (with ruby 1.9.3). I haven't been building Red Shoes for a year. So,
>     I may not be able to build Red Shoes again...
>
>     ashbb
>
>

Re: [shoes] Shoes 3 https://github.com/shoes/shoes

From:
Douglas Allen
Date:
2013-04-25 @ 00:51
Well then I'll make my own makefile. The heck with it. This will be better
learning for gcc and make than anything. Thanks.



On Wed, Apr 24, 2013 at 6:58 PM, Cecil Coupe <ccoupe@cableone.net> wrote:

> Extconf.rb and mkmf.rb are not well documented and behave unexpectedly
> when creating or modifying them.
>
> As ashbb notes, you may get it to build if you are patient. Will it run?
> Maybe, Probably Not. Do you know how to debug a C + Ruby program in
> Windows? It's more work than most of us are willing to do for a dieing
> platform.
>
> I can be done. I once did some extconf mods to handle cross compiling
> Shoes/mingw from linux.
>
> --Cecil
>
>
> On 04/24/2013 05:40 PM, Douglas Allen wrote:
> > Well thanks All. I'ved used green_shoes gem before. I just want to learn
> > a little more about using C extensions in Ruby. What better place to try
> > to lean from than shoes. Although it's not easy as it could be. I would
> > just like to get extconf.rb to use pkg_config instead of the old look up
> > the headers way. Any ideas? We can do it. GTK+ is easy that way. Just
> > look at any tutorial on it.
> >
> >
> > On Wed, Apr 24, 2013 at 6:54 AM, ashbb <ashbbb@gmail.com
> > <mailto:ashbbb@gmail.com>> wrote:
> >
> >     Hi Douglas,
> >
> >     I don't recommend building Shoes 3 for Windows now.
> >     But if you want, this might help you.
> >
> >     https://github.com/ashbb/shoes_hack_note/blob/master/md/hack019.md
> >
> >     But this guide is for Shoes 3 (with ruby 1.9.1), not for Shoes 3.1
> >     (with ruby 1.9.3). I haven't been building Red Shoes for a year. So,
> >     I may not be able to build Red Shoes again...
> >
> >     ashbb
> >
> >
>
>

Re: [shoes] Shoes 3 https://github.com/shoes/shoes

From:
Cecil Coupe
Date:
2013-04-25 @ 01:52
IMO, you'd be better of learning the extconf/mkmf stuff instead of 
recreating the functionality your way. "Programming Ruby, The Pragmatic 
Programmers Guide" has a incomplete intro. I believe the book is 
available for online browsing.

On 04/24/2013 06:51 PM, Douglas Allen wrote:
> Well then I'll make my own makefile. The heck with it. This will be
> better learning for gcc and make than anything. Thanks.
>
>
>
> On Wed, Apr 24, 2013 at 6:58 PM, Cecil Coupe <ccoupe@cableone.net
> <mailto:ccoupe@cableone.net>> wrote:
>
>     Extconf.rb and mkmf.rb are not well documented and behave unexpectedly
>     when creating or modifying them.
>
>     As ashbb notes, you may get it to build if you are patient. Will it run?
>     Maybe, Probably Not. Do you know how to debug a C + Ruby program in
>     Windows? It's more work than most of us are willing to do for a dieing
>     platform.
>
>     I can be done. I once did some extconf mods to handle cross compiling
>     Shoes/mingw from linux.
>
>     --Cecil
>
>
>     On 04/24/2013 05:40 PM, Douglas Allen wrote:
>      > Well thanks All. I'ved used green_shoes gem before. I just want
>     to learn
>      > a little more about using C extensions in Ruby. What better place
>     to try
>      > to lean from than shoes. Although it's not easy as it could be. I
>     would
>      > just like to get extconf.rb to use pkg_config instead of the old
>     look up
>      > the headers way. Any ideas? We can do it. GTK+ is easy that way. Just
>      > look at any tutorial on it.
>      >
>      >
>      > On Wed, Apr 24, 2013 at 6:54 AM, ashbb <ashbbb@gmail.com
>     <mailto:ashbbb@gmail.com>
>      > <mailto:ashbbb@gmail.com <mailto:ashbbb@gmail.com>>> wrote:
>      >
>      >     Hi Douglas,
>      >
>      >     I don't recommend building Shoes 3 for Windows now.
>      >     But if you want, this might help you.
>      >
>      > https://github.com/ashbb/shoes_hack_note/blob/master/md/hack019.md
>      >
>      >     But this guide is for Shoes 3 (with ruby 1.9.1), not for
>     Shoes 3.1
>      >     (with ruby 1.9.3). I haven't been building Red Shoes for a
>     year. So,
>      >     I may not be able to build Red Shoes again...
>      >
>      >     ashbb
>      >
>      >
>
>

Re: [shoes] Shoes 3 https://github.com/shoes/shoes

From:
Steve Klabnik
Date:
2013-04-25 @ 17:14
Also, Shoes is more than just 'a C extension in Ruby', it's actually a
C program that embeds a Ruby interpreter, which is the other way
around....

The Rubygems guide to cexts is pretty good:
http://guides.rubygems.org/c-extensions/

And of course, the canonical reference is in the Ruby source:
https://github.com/ruby/ruby/blob/trunk/README.EXT