shoes / shoes-deprecated

Former repo for Shoes... see README for up to date locations!
http://shoesrb.com/
Other
1.15k stars 167 forks source link

Uncaught exception: uninitialized constant Shoes #228

Open JohnBat26 opened 11 years ago

JohnBat26 commented 11 years ago

Hi all I get next error in simple application with shoes: Uncaught exception: uninitialized constant Shoes

Gem shoes installed properly. My app: https://gist.github.com/4197498

steveklabnik commented 11 years ago

Which Shoes are you running? This repository (red Shoes) cannot be installed via a gem.

JohnBat26 commented 11 years ago

gem 'shoes'

JohnBat26 commented 11 years ago

Via gem 'shoes'

wasnotrice commented 11 years ago

On Dec 3, 2012, at 2:12 PM, Eugene notifications@github.com wrote:

gem 'shoes'

As Steve said, Shoes can't be installed as a gem. When you try, it seems like the gem installed correctly, but there is no gem, really. It doesn't even set up the Shoes constant.

This is definitely confusing. To run the current version of Shoes (Shoes 3), you should download it from Github:

https://github.com/shoes/shoes/downloads

That is the short answer.

A longer answer includes this tidbit: we are working on a new version, Shoes 4:

https://github.com/shoes/shoes4

Shoes 4 can be installed as a gem, but

  1. it requires JRuby
  2. Shoes 4 is not feature-complete with respect to Shoes 3, so it hasn't been officially released as a gem
  3. Not everything you see in the Shoes manual will work yet

However, if you are running JRuby, you can build it yourself from Github and install like this:

git clone https://github.com/shoes/shoes4.git
cd shoes4
gem build
gem install pkg/shoes-4.0.0.pre1.gem

now you can run your apps:

bin/shoes /path/to/your/app.rb

Hope that helps!

Eric

JohnBat26 commented 11 years ago

Thanks

JohnBat26 commented 11 years ago

Do you want implement Shoes 4 at Swing or Java FX?

wasnotrice commented 11 years ago

On Dec 3, 2012, at 2:40 PM, Eugene notifications@github.com wrote:

Do you want implement Shoes 4 at Swing or Java FX?

SWT

wasnotrice commented 11 years ago

On Dec 3, 2012, at 2:40 PM, Eugene notifications@github.com wrote:

Do you want implement Shoes 4 at Swing or Java FX?

I forgot to say, Shoes 4 is structured so that it can work with different backends. The reference implementation is in JRuby and Swt, but there is a proof-of-concept backend using MRI and Qt. The Qt backend doesn't do much, though.

Eric

JohnBat26 commented 11 years ago

:) Why Java ? Why not QT ?

JohnBat26 commented 11 years ago

I have downloaded shoes-develop.zip with shoes 3.0.1. unpack it and run rake. Get compile error: https://gist.github.com/4198112 OS: Gentoo (Calculate Linux) emerge --info: https://gist.github.com/4198121

steveklabnik commented 11 years ago

Whoah, werid. I'm getting github emails from this thread, but the comments (except for @wasnotrice 's) don't appear. :(

wasnotrice commented 11 years ago

On Dec 3, 2012, at 2:46 PM, Eugene notifications@github.com wrote:

:) Why Java ? Why not QT ?

This very issue, actually :)

We thought using Java would make it easier to build (no compiling dependencies).

Eric

PragTob commented 11 years ago

I don't see the replies of Eugene either, just good old @wasnotrice sharing his wisdom :-)

wasnotrice commented 11 years ago

I don't see the replies of Eugene either, just good old @wasnotrice sharing his wisdom :-)

There goes @wasnotrice, talking to himself again...

JohnBat26 commented 11 years ago

I try to install shoes-3.0.1 from (shoes-develop.zip) whereby run rake command and get error: cannot find -lungif https://gist.github.com/4198112

My OS is Gentoo Linux (https://gist.github.com/4198121)

wasnotrice commented 11 years ago

On Dec 3, 2012, at 10:51 PM, Eugene notifications@github.com wrote:

I try to install shoes-3.0.1 from (shoes-develop.zip) whereby run rake command and get error: cannot find -lungif https://gist.github.com/4198112

My OS is Gentoo Linux (https://gist.github.com/4198121)

Maybe you haven't installed libungif. Have you seen these instructions?

https://github.com/shoes/shoes/wiki/Building-Shoes-on-Linux

They are not specifically for Gentoo, but you can see the dependencies you have to install. After you get it to work, add your Gentoo instructions to the wiki!

Eric

PragTob commented 11 years ago

Hi, @arnebrasseur cooked up some build script maybe that can help you!

https://gist.github.com/arnebrasseur/4194d8c47e9493019e04