librelist archives

« back to archive

trying to build Shoes on OS X 10.6.8 with video

trying to build Shoes on OS X 10.6.8 with video

From:
Seth Thomas Rasmussen
Date:
2011-09-20 @ 16:42
Hey all.. long time no see.. glad to see an intrepid crew have been
keeping Shoes afloat!

I am not seeing how to get video support in my build. Is this
currently not supported at all, or are instructions hidden somewhere?
My apologies if I just need to RTFM, but I tried!

If there is work needing to be done to support video, perhaps I could
be pointed in that direction.

Thanks!

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
Steve Klabnik
Date:
2011-09-20 @ 16:50
Hey man, great to see you!

We had so many issues with getting vlc going on mac/linux that we
released Shoes 3 without video support, and recently I made a commit
that pulled all the code out.

I really want to put it back in, and it will eventually, but as of
right this second, there's zero support. If you want to help get that
going, though, we can talk...

-Steve

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
Seth Thomas Rasmussen
Date:
2011-09-20 @ 22:39
Well, I started by reverting those two commits of yours I found and
poking around in the code there. Seems scary!

It seems what was left is still assuming deps in /tmp? So, maybe
converting to brew would be better? The pre-built package from VLC
includes include and lib dirs in VLC.app.. maybe those could be used?

I imagine the VLC code written before is now out of date with current
VLC libs, but that's just a guess.

Is VLC even the thing to use? I don't know of a better option, just wondering..

On Tue, Sep 20, 2011 at 12:50 PM, Steve Klabnik <steve@steveklabnik.com> wrote:
> Hey man, great to see you!
>
> We had so many issues with getting vlc going on mac/linux that we
> released Shoes 3 without video support, and recently I made a commit
> that pulled all the code out.
>
> I really want to put it back in, and it will eventually, but as of
> right this second, there's zero support. If you want to help get that
> going, though, we can talk...
>
> -Steve
>

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
Steve Klabnik
Date:
2011-09-20 @ 23:28
Yeah, nothing at all should be in /tmp. Converting that to brew would be great!

> I imagine the VLC code written before is now out of date with current
> VLC libs, but that's just a guess.

/me nods

It might not be too bad, though. IIRC, it was all about building that
was the problem...

> Is VLC even the thing to use? I don't know of a better option, just wondering..

It should be the best thing for all three platforms, really.

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
Cecil Coupe
Date:
2011-09-21 @ 09:11
The VLC API changed after Shoes2 was written and no one wanted to hold up
Shoes3 release by digging into the VLC and Ruby 1.9.x threading issues that
await for one brave person.

On Tue, Sep 20, 2011 at 4:28 PM, Steve Klabnik <steve@steveklabnik.com>wrote:

> Yeah, nothing at all should be in /tmp. Converting that to brew would be
> great!
>
> > I imagine the VLC code written before is now out of date with current
> > VLC libs, but that's just a guess.
>
> /me nods
>
> It might not be too bad, though. IIRC, it was all about building that
> was the problem...
>
> > Is VLC even the thing to use? I don't know of a better option, just
> wondering..
>
> It should be the best thing for all three platforms, really.
>

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
Seth Thomas Rasmussen
Date:
2011-09-22 @ 18:12
Hmm. Do you have any more details on the API changes and/or the
threading issues?

I've gotten VLC to build over here.. unsure as to its functionality,
but I'm at least getting through the bootstrap/configure/make process
on my machine. Currently trying to run the build via homebrew..

On Wed, Sep 21, 2011 at 5:11 AM, Cecil Coupe <ccoupe@cableone.net> wrote:
> The VLC API changed after Shoes2 was written and no one wanted to hold up
> Shoes3 release by digging into the VLC and Ruby 1.9.x threading issues that
> await for one brave person.
>
> On Tue, Sep 20, 2011 at 4:28 PM, Steve Klabnik <steve@steveklabnik.com>
> wrote:
>>
>> Yeah, nothing at all should be in /tmp. Converting that to brew would be
>> great!
>>
>> > I imagine the VLC code written before is now out of date with current
>> > VLC libs, but that's just a guess.
>>
>> /me nods
>>
>> It might not be too bad, though. IIRC, it was all about building that
>> was the problem...
>>
>> > Is VLC even the thing to use? I don't know of a better option, just
>> > wondering..
>>
>> It should be the best thing for all three platforms, really.
>
>

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
Cecil Coupe
Date:
2011-09-22 @ 18:47
Since VLC libraries are installed in the system (not in Shoes) your success
in building depends on how old your VLC is. Your success in running that
Shoes app somewhere else is dependent on them have the old libraries too.  I
came across the problem when I installed a new VLC on my Linux box. Shoes
Apps broke, Shoes wouldn't build.  The VLC site has the info about what
changed and when. There should be some old emails on librelist about the it.

On Thu, Sep 22, 2011 at 11:12 AM, Seth Thomas Rasmussen <
sethrasmussen@gmail.com> wrote:

> Hmm. Do you have any more details on the API changes and/or the
> threading issues?
>
> I've gotten VLC to build over here.. unsure as to its functionality,
> but I'm at least getting through the bootstrap/configure/make process
> on my machine. Currently trying to run the build via homebrew..
>
> On Wed, Sep 21, 2011 at 5:11 AM, Cecil Coupe <ccoupe@cableone.net> wrote:
> > The VLC API changed after Shoes2 was written and no one wanted to hold up
> > Shoes3 release by digging into the VLC and Ruby 1.9.x threading issues
> that
> > await for one brave person.
> >
> > On Tue, Sep 20, 2011 at 4:28 PM, Steve Klabnik <steve@steveklabnik.com>
> > wrote:
> >>
> >> Yeah, nothing at all should be in /tmp. Converting that to brew would be
> >> great!
> >>
> >> > I imagine the VLC code written before is now out of date with current
> >> > VLC libs, but that's just a guess.
> >>
> >> /me nods
> >>
> >> It might not be too bad, though. IIRC, it was all about building that
> >> was the problem...
> >>
> >> > Is VLC even the thing to use? I don't know of a better option, just
> >> > wondering..
> >>
> >> It should be the best thing for all three platforms, really.
> >
> >
>

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
Seth Thomas Rasmussen
Date:
2011-09-22 @ 20:06
Hmm. Has this kind of thing not been a problem for other similar
system libraries with respect to Shoes? I guess a start to addressing
it is to specify that certain versions of dependencies are required in
the Shoes install documentation per platform. Blerg.

In similarly uninspiring other news, I'm having trouble building VLC
without also building all the GUI components and many codecs which we
perhaps would not need at the onset. Some quick research in #videolan
on IRC suggests that there are Mac defaults which still kick-in
despite --disable-FEATURE flags, and this is just considered a known,
stupid bug that apparently nobody cares about. It was suggested I just
build the whole shebang because "it's easy." :\

I've got half a mind to just take the lib and include dirs distributed
with the VLC.app package and include them in the Shoes source, but it
seems that is not the path of Shoes these days.

I'm not sure at this point if I want to keep fighting VLC, or find an
alternative means of creating my little video player app I want for
myself.

Cue sad trombone.

On Thu, Sep 22, 2011 at 2:47 PM, Cecil Coupe <ccoupe@cableone.net> wrote:
> Since VLC libraries are installed in the system (not in Shoes) your success
> in building depends on how old your VLC is. Your success in running that
> Shoes app somewhere else is dependent on them have the old libraries too.  I
> came across the problem when I installed a new VLC on my Linux box. Shoes
> Apps broke, Shoes wouldn't build.  The VLC site has the info about what
> changed and when. There should be some old emails on librelist about the it.
>
> On Thu, Sep 22, 2011 at 11:12 AM, Seth Thomas Rasmussen
> <sethrasmussen@gmail.com> wrote:
>>
>> Hmm. Do you have any more details on the API changes and/or the
>> threading issues?
>>
>> I've gotten VLC to build over here.. unsure as to its functionality,
>> but I'm at least getting through the bootstrap/configure/make process
>> on my machine. Currently trying to run the build via homebrew..
>>
>> On Wed, Sep 21, 2011 at 5:11 AM, Cecil Coupe <ccoupe@cableone.net> wrote:
>> > The VLC API changed after Shoes2 was written and no one wanted to hold
>> > up
>> > Shoes3 release by digging into the VLC and Ruby 1.9.x threading issues
>> > that
>> > await for one brave person.
>> >
>> > On Tue, Sep 20, 2011 at 4:28 PM, Steve Klabnik <steve@steveklabnik.com>
>> > wrote:
>> >>
>> >> Yeah, nothing at all should be in /tmp. Converting that to brew would
>> >> be
>> >> great!
>> >>
>> >> > I imagine the VLC code written before is now out of date with current
>> >> > VLC libs, but that's just a guess.
>> >>
>> >> /me nods
>> >>
>> >> It might not be too bad, though. IIRC, it was all about building that
>> >> was the problem...
>> >>
>> >> > Is VLC even the thing to use? I don't know of a better option, just
>> >> > wondering..
>> >>
>> >> It should be the best thing for all three platforms, really.
>> >
>> >
>
>

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
Cecil Coupe
Date:
2011-09-22 @ 21:18
>
> I've got half a mind to just take the lib and include dirs distributed
> with the VLC.app package and include them in the Shoes source, but it
> seems that is not the path of Shoes these days.
>

You could put it into Shoes, like the sqlite code but then Shoes developers
have to maintain and track VLC bugs and chose the codecs to support cross
platform - big ick.

There were licensing issues with ffmpeg codecs for GNU/OSS diehards. Ubuntu
for example doesn't install most codecs - you have to specifically ask and
install the 'non-free' codec package. Another mess for Shoes to emulate and
support.

>
> I'm not sure at this point if I want to keep fighting VLC, or find an
> alternative means of creating my little video player app I want for
> myself.
>
>
Green Shoes would be the best way to avoid the mess except I don't think
ashbb gotten to the video stuff yet.

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
Seth Thomas Rasmussen
Date:
2011-09-22 @ 21:45
Hrmm. OK. Thanks for the info.

On Thu, Sep 22, 2011 at 5:18 PM, Cecil Coupe <ccoupe@cableone.net> wrote:
>
>>
>> I've got half a mind to just take the lib and include dirs distributed
>> with the VLC.app package and include them in the Shoes source, but it
>> seems that is not the path of Shoes these days.
>
> You could put it into Shoes, like the sqlite code but then Shoes developers
> have to maintain and track VLC bugs and chose the codecs to support cross
> platform - big ick.
>
> There were licensing issues with ffmpeg codecs for GNU/OSS diehards. Ubuntu
> for example doesn't install most codecs - you have to specifically ask and
> install the 'non-free' codec package. Another mess for Shoes to emulate and
> support.
>>
>> I'm not sure at this point if I want to keep fighting VLC, or find an
>> alternative means of creating my little video player app I want for
>> myself.
>>
>
> Green Shoes would be the best way to avoid the mess except I don't think
> ashbb gotten to the video stuff yet.
>

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
ashbb
Date:
2011-09-23 @ 09:15
Hi Cecil, Seth, Steve and folks,

> I don't think ashbb gotten to the video stuff yet.
hahaha. Yes.
But yesterday I found this: http://code.google.com/p/ossbuild

I have thought that GStreamer doesn't work on Windows. xx-P

So, after some googling, I found this:

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html#section-helloworld

Just now, I could compile helloworld.c and it worked on my Windows 7.
I could hear a song from a .ogg file!

The gstreamer gem for Windows is not released so far.
But if OSSBuild is useful for me, GStreamer may be one of the alternatives
for Green Shoes.

ashbb

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
J. Kaiden
Date:
2011-09-23 @ 12:01
hey folks,

  i've built Shoes with GStreamer, and it works nicely on my ubuntu
system...

I have thought that GStreamer doesn't work on Windows. xx-P
>

  i've been trying to get GStreamer to install on a WinXP system, but with
no luck so far...


> Just now, I could compile helloworld.c and it worked on my Windows 7.
> I could hear a song from a .ogg file!
>

  how did you get GStreamer successfully installed on Windows?  i can't seem
to do it...

   if we can get GStreamer to install and run on Windows (should be no
problem for Linux and Mac) i think it would be a good option for Shoes video
and audio - the API is pretty straightforward, and it sounds good ;)

  - j

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
ashbb
Date:
2011-09-24 @ 01:20
Hi J,

> i've built Shoes with GStreamer, and it works nicely on my ubuntu
system...
Awesome!
But sorry, my English ability is very poor.
I don't understand the meaning of "built Shoes with GStreamer" clearly...

I guess that you've written Green Shoes app with Ruby/GStreamer gem.
Right?
If so, I'd like to see the code. Could you upload to gist or somewhere?

> how did you get GStreamer successfully installed on Windows?
As I mentioned in the previous post, The Ruby/GStreamer gem is not released
so far. But we can get GStreamer binary files for Windows (.dll files) from
http://code.google.com/p/ossbuild

I've just installed GStreamer-WinBuilds-LGPL-x86.msi and
GStreamer-WinBuilds-SDK-LGPL-x86.msi and compiled a C sample code
(helloworld.c). ;-)

> if we can get GStreamer to install and run on Windows (should be no
problem
> for Linux and Mac) i think it would be a good option for Shoes video and
> audio - the API is pretty straightforward, and it sounds good ;)
Yeah, I totally agree.
I don't know Ruby/GStreamer gem for Windows will be published soon.
But we will be able to write some code to use the GStreamer dll files in
Ruby.
I need to study more, of course though. :-P

ashbb

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
J. Kaiden
Date:
2011-09-24 @ 12:28
hi ashbb,

But sorry, my English ability is very poor.

I don't understand the meaning of "built Shoes with GStreamer" clearly...
>

  your english is great - my explanation was not!

I guess that you've written Green Shoes app with Ruby/GStreamer gem.
> Right?


  no, i built a version of Red Shoes that includes the GStreamer gem and its
dependencies (so that you can "require 'gst'",) in order to re-write this
audio player - https://github.com/lljk/rubyWax - in Shoes...

  here's a link to a post that explains better what i did -

http://librelist.com/browser//shoes/2011/5/9/shoes-and-gems-with-native-dependencies/

  i've got a RedShoes(+GStreamer) version of the player more or less working
- i'll put it up on github once i fix a couple of bugs...

  i did finally manage to install gtk2 1.0 - and i've been able to play
around some with Green Shoes.  i like it a lot - but it seems like some
methods that i need for my player (most notably #rotate, which moves the
record player's arm) are missing...  or maybe i just don't understand how
the Green Shoes and gtk2 methods work together?


> ...we can get GStreamer binary files for Windows (.dll files) from
> http://code.google.com/p/ossbuild
>
I've just installed GStreamer-WinBuilds-LGPL-x86.msi and
> GStreamer-WinBuilds-SDK-LGPL-x86.msi and compiled a C sample code
> (helloworld.c). ;-)


  i've installed the same on a WinXP virtual box, and it seems to have
installed with no problems.  i realize now that the problem is that the ruby
gstreamer gem won't install on windows...  oh well... :(

I don't know Ruby/GStreamer gem for Windows will be published soon.
> But we will be able to write some code to use the GStreamer dll files in
> Ruby.
> I need to study more, of course though. :-P


  that would be great!  wish i could help - but i think that's a bit beyond
me!

  i'm investigating some ruby audio libraries, trying to find one that would
work well cross-platform with Shoes - once i get things sorted out a little
better i'll post some ideas...  we need media capabilities in Shoes!!

  - j

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
ashbb
Date:
2011-09-25 @ 15:27
Hi J,

> here's a link to a post that explains better what i did -
>

http://librelist.com/browser//shoes/2011/5/9/shoes-and-gems-with-native-dependencies/
Oh, I remember now!

> but it seems like some methods that i need for my player (most notably
#rotate,
> which moves the record player's arm) are missing...
Are you looking for this?
http://ashbb.github.com/green_shoes/Art.html#rotate
But to move a record player's arm on Green Shoes, I recommed using show/hide
methods.
The sample44.rb may help you.

BTW, I have a good news. ;-)
Kou (Kouhei Sutou), an active Ruby/GNOME2 developer, built the following for
me.

- http://pub.cozmixng.org/~kou/archives/glib2-1.0.3-x86-mingw32.gem
- http://pub.cozmixng.org/~kou/archives/gstreamer-1.0.3-x86-mingw32.gem

 *Note*: The above glib2 gem is the same name as the gem published on
RubyGems.org.
         But it's revised a little bit. So, just overwrite an existing file.

This is just a trial. We know some problems.
But I think we will be able to use Ruby/GStreamer gem for Windows not so
far,... hopefully. ;-)

ashbb

Re: [shoes] trying to build Shoes on OS X 10.6.8 with video

From:
J. Kaiden
Date:
2011-09-25 @ 16:48
hi ash,

Are you looking for this?
> http://ashbb.github.com/green_shoes/Art.html#rotate
> But to move a record player's arm on Green Shoes, I recommed using
> show/hide methods.
> The sample44.rb may help you.
>

  hmm...  somehow didn't see that!  i was checking methods with #methods -
and not looking in the manual like a normal person! :P

  i'll fool around with it more - thanks!


>
> BTW, I have a good news. ;-)
> Kou (Kouhei Sutou), an active Ruby/GNOME2 developer, built the following
> for me.
>
> - http://pub.cozmixng.org/~kou/archives/glib2-1.0.3-x86-mingw32.gem
> - http://pub.cozmixng.org/~kou/archives/gstreamer-1.0.3-x86-mingw32.gem
>
> ...But I think we will be able to use Ruby/GStreamer gem for Windows not so
> far,... hopefully. ;-)


  AWESOME!  i'll give them a shot in my WinXP virtual box and let you know
what happens!


  thanks again for the tips / updates!

 - j