DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th July 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Thanked 3 Times in 3 Posts
Default Ruby qtruby installation

I would like to start playing around with qtruby.

How do I go about installing the qtruby4 package under FreeBSD 7.0?

It doesn't seem to be in ports and 'gem install qtruby4' doesn't want to work.
Reply With Quote
  #2   (View Single Post)  
Old 14th July 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

You have to compile it manually from source code.


I once had QtRuby for Qt3 bindings working on a PC-BSD machine (FreeBSD 6.2 or 6.1 under the hood back then), I haven't tried on any other system yet.

Korundums support for FreeBSD is broken and has been for a _long_ time, I tried helping a friend with getting it to compile awhile back. It involved a fair bit of punching and kicking to the build system, not sure if he ever got it compiled though.


Perls Qt bindings in ports has also been marked broken for a _long_ time, so long that it may get removed last I heard.




Ruby and Qt is however quite nice a tag team.


For *easy* installation of stuff and portability to other peoples bsd machines, GUI programming in Ruby on FreeBSD should probably be done using GTK+, WxWidgets, or TK.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #3   (View Single Post)  
Old 14th July 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Thanked 3 Times in 3 Posts
Default

If I wanted to try and compile the source where is the best place to start?

Is the qt4-qtruby-1.4.10.tgz file the correct download from the Korundum/QtRuby site:
http://rubyforge.org/frs/?group_id=181 ?
or is there a better source?
Reply With Quote
  #4   (View Single Post)  
Old 15th July 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

Korundum includes QtRuby among other things -> I have never gotten it to build.

QtRuby -> I did once get to build but it was an older one for Qt3 support.


best start point would likely to install qt4 meta port (or use a pkg -> it's not a small compile!) if you haven't already, then download QtRuby source code, unpack, cd to it's directory, do a ./configure --help to check for any important options you might need. -> Your in the right directory if there is a file called 'configure' there.

I don't recall needing any but, age of my last test + newer versions == YMMV

run ./configure and pass any needed args to it, e.g. --with-somefeature

if configure passes, try to compile it with GNU make (gmake command) and install as normal, e.g. 'gmake install'

should only have to be root to install it.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #5   (View Single Post)  
Old 16th July 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Thanked 3 Times in 3 Posts
Default

When I do a 'cmake .' on QTRuby I get this error:

Code:
CMake Error at cmake/modules/FindRUBY.cmake:84 (MESSAGE):
Could not find Ruby
Call Stack (most recent call first):
CMakeLists.txt:24 (FIND_PACKAGE)
Did you manage to fix this when you compiled it?
Reply With Quote
  #6   (View Single Post)  
Old 16th July 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

When I compiled it they still used GNU autotools, KDE hadn't even adapted CMake yet.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #7   (View Single Post)  
Old 17th July 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Thanked 3 Times in 3 Posts
Default

I found that if I do a
Code:
# gem list --remote | grep -i qt
I get qtruby4 listed but I cannot install this. I tried this:
Code:
# gem install qtruby4 --remote
ERROR:  could not find qtruby4 locally or in a repository
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg installation LordZ OpenBSD Installation and Upgrading 10 23rd November 2008 05:52 PM
cannot login after installation ccc FreeBSD Installation and Upgrading 3 28th October 2008 11:54 AM
freebsd 7 64 bit installation ijk FreeBSD Installation and Upgrading 9 1st September 2008 03:16 AM
ruby execute commands remotely Dr_Death_UAE Programming 0 18th August 2008 11:23 AM
Ruby-gem problem giga FreeBSD Ports and Packages 2 21st July 2008 02:34 PM


All times are GMT. The time now is 02:06 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick