hybridgroup / kidsruby

KidsRuby is a Ruby programming environment meant for kids to learn and have fun!
http://kidsruby.com
Other
333 stars 104 forks source link

QT doesn't build with non-xcode gcc #19

Closed krainboltgreene closed 10 years ago

krainboltgreene commented 12 years ago

A note should be made about this for future committers.

petervandenabeele commented 12 years ago

Is this the cause that on Ubuntu Linux, bundle install hangs forever on the step for building qtbindings.

Thanks.

Installing qtbindings (4.6.3.4) with native extensions ^C Interrupt: An error occured while installing qtbindings (4.6.3.4), and Bundler cannot continue. Make sure that `gem install qtbindings -v '4.6.3.4'` succeeds before bundling.

My environment is

Ubuntu Lucid (10.04) rvm 1.9.3 installed the required qt packages

gcc is this version:

peterv@ASUS:~/b/github/hybridgroup/kidsruby$ dpkg -l gcc* | grep ^ii | cut -dT -f1 ii gcc 4:4.4.3-1ubuntu1
ii gcc-4.3 4.3.4-10ubuntu1
ii gcc-4.3-base 4.3.4-10ubuntu1
ii gcc-4.4 4.4.3-4ubuntu5
ii gcc-4.4-base 4.4.3-4ubuntu5

deadprogram commented 12 years ago

In order to build qtbinding gems, you need several dependencies installed. We know it works because we have built on both Ubuntu and Debian distros. Perhaps @phlipper or @ldenman can lend a hand, but we do know it can be built on the qt 4.7.x codebase.

You should check the Ubuntu section of the README, which does have some of the dependencies listed.

petervandenabeele commented 12 years ago

Thanks for the quick feedback. More details of my set-up below:

I am willing to help debugging, but not sure where to find the log of the breaking compile in rvm ...

peterv@ASUS:~/b/github/hybridgroup/kidsruby$ git status

On branch master

nothing to commit (working directory clean)

peterv@ASUS:~/b/github/hybridgroup/kidsruby$ sudo apt-get install libqt4-dev [sudo] password for peterv: Reading package lists... Done Building dependency tree
Reading state information... Done libqt4-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

peterv@ASUS:~/b/github/hybridgroup/kidsruby$ sudo apt-get install cmake Reading package lists... Done Building dependency tree
Reading state information... Done cmake is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

peterv@ASUS:~/b/github/hybridgroup/kidsruby$ sudo apt-get install g++ libgl1-mesa-dev libpango1.0-dev libboost-dev libopenal-dev libsndfile-dev libxdamage-dev libsdl-ttf2.0-dev libfreeimage3 libfreeimage-dev [sudo] password for peterv: Reading package lists... Done Building dependency tree
Reading state information... Done g++ is already the newest version. libgl1-mesa-dev is already the newest version. libpango1.0-dev is already the newest version. libboost-dev is already the newest version. libopenal-dev is already the newest version. Note, selecting libsndfile1-dev instead of libsndfile-dev libsndfile1-dev is already the newest version. libxdamage-dev is already the newest version. libsdl-ttf2.0-dev is already the newest version. libfreeimage3 is already the newest version. libfreeimage-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

peterv@ASUS:~/b/github/hybridgroup/kidsruby$ rvm current ruby-1.9.3-p0@kidsruby

peterv@ASUS:~/b/github/hybridgroup/kidsruby$ bundle install Fetching source index for http://rubygems.org/ Using rake (0.8.7) Using chunky_png (1.2.5) Using fssm (0.2.7) Using sass (3.1.12) Using compass (0.11.5) Using ffi (1.0.10) Using thor (0.14.6) Using guard (0.8.7) Using guard-shell (0.1.1) Using htmlentities (4.2.3) Using mocha (0.9.10) Installing qtbindings (4.6.3.4) with native extensions ^C # waited for minutes ... Interrupt: An error occured while installing qtbindings (4.6.3.4), and Bundler cannot continue. Make sure that gem install qtbindings -v '4.6.3.4' succeeds before bundling.

peterv@ASUS:~/b/github/hybridgroup/kidsruby$ grep -v ^# /etc/apt/sources.list | head -4

deb http://be.archive.ubuntu.com/ubuntu/ lucid main restricted deb-src http://be.archive.ubuntu.com/ubuntu/ lucid main restricted

petervandenabeele commented 12 years ago

Digging further. Relevant posts (from Ryan Melt, creator of the binding)

http://lists.kde.org/?l=kde-bindings&m=128146593620611&w=2

To be continued ....

petervandenabeele commented 12 years ago

Problem solved (and not related to the original thread).

Sorry for the confusion.

The build process for qtbindings now works, it just takes several minutes without apparent progress ...

I propose a small patch to add to the documentation https://github.com/hybridgroup/kidsruby/pull/36

hunterboerner commented 10 years ago

Closing do to old age. Please retest on latest KidsRuby version and if problem persists, reopen the issue with details.