[fxruby-users] Compiling error

Diego Cano Lagneaux d.cano.lagneaux at gmail.com
Wed Nov 16 03:11:36 EST 2005


Hello,
I am a Gentoo user.
I emerged Fox 1.4.11 with all features turned on recently.
Since FXRuby 1.4.x is not on Portage, I tried to install 1.4.2 manually.

install.rb config works with no problems at all.

install.rb setup aborts with the following output:
---------------
install.rb: entering setup phase...
---> lib
---> lib/fox14
<--- lib/fox14
<--- lib
---> ext
---> ext/fox14
make
g++ -fPIC -O2 -march=pentium-m  -fPIC -O0 -Iinclude -DWITH_FXSCINTILLA
-I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/lib/ruby/1.8/i686-linux
-I/tmp/FXRuby-1.4.2/ext/fox14 -DHAVE_SYS_TIME_H -DHAVE_SIGNAL_H
-I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.4
-I/usr/include/fox-1.4 -I/usr/include/fxscintilla -c core_wrap.cpp
In file included from include/FXRuby.h:747,
                  from include/FXRbCommon.h:90,
                  from core_wrap.cpp:588:
include/FXRbIconSourceVirtuals.h:15: error: tipo de devolución covariante
inválido para `virtual FX::FXImage* FXRbIconSource::loadImage(const void*,
const FX::FXString&) const'
/usr/include/fox-1.4/FXIconSource.h:109: error:   sustituyendo `virtual
FX::FXIcon* FX::FXIconSource::loadImage(const void*, const FX::FXString&)
const'
make: *** [core_wrap.o] Error 1
setup failed
'system make ' failed
Try 'ruby install.rb --help' for detailed usage.
------------------
I am sorry part of the error is in Spanish. Here is an approximative
translation by me:
include/FXRbIconSourceVirtuals.h:15: error: invalid covariant return
type for `virtual FX::FXImage* FXRbIconSource::loadImage(const void*,
const FX::FXString&) const'
/usr/include/fox-1.4/FXIconSource.h:109: error:   substituting `virtual
FX::FXIcon* FX::FXIconSource::loadImage(const void*, const FX::FXString&)
const'

If anyone has any advice, I would be really grateful.

Diego



More information about the fxruby-users mailing list