FXRuby 1.4 doesn't compile on Mandrake Linux

G

Guillaume Marcais

I get the following error:

$ sudo gem install fxruby
Attempting local installation of 'fxruby'
Local gem file not found: fxruby*.gem
Attempting remote installation of 'fxruby'
Updating Gem source index for: http://gems.rubyforge.org
Select which gem to install for your platform (i686-linux)
1. fxruby 1.4.3 (mswin32)
2. fxruby 1.4.3 (ruby)
[...snip...]
Building native extensions. This could take a while...
In file included from include/FXRuby.h:747,
from include/FXRbCommon.h:90,
from ui_wrap.cpp:581:
include/FXRbIconSourceVirtuals.h:15: error: invalid covariant return
type for `v
irtual FX::FXImage* FXRbIconSource::loadImage(const void*, const
FX::FXString&)
const'
/usr/include/fox-1.4/FXIconSource.h:109: error: overriding `virtual
FX::FXIcon
* FX::FXIconSource::loadImage(const void*, const FX::FXString&) const'
make: *** [ui_wrap.o] Error 1

gcc reads:

$ gcc -v
Reading specs from /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/specs
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib
--with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix --disable-checking
--enable-long-long --enable-__cxa_atexit --enable-clocale=gnu
--disable-libunwind-exceptions
--enable-languages=c,c++,ada,f77,objc,java
--host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)

Any idea?

Guillaume.
 
L

Lyle Johnson

I get the following error:
...
Any idea?

You need to first upgrade to a more recent version of FOX 1.4. The
compile error you're seeing is due to a bug in the FOX header files,
and this bug was fixed in FOX 1.4.12 (way back in April). Please
resist the urge to download FOX 1.6, since FXRuby 1.4 is not in fact
compatible with FOX 1.6.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top