[Fxruby-announce] Compiling / Linking FXRuby
Status: Inactive
Brought to you by:
lyle
|
From: <mah...@ya...> - 2003-11-19 17:08:16
|
Hi there,
(sorry for my bad english)
First thanks to all persons worked and continue to
working on FXRuby. It's great !
I'm very new to Ruby and nearly new to Fox lib and of
of course over all very new to FXRuby :-)
I have chosen/needed FXRuby because I have to do some
little management softwares with GUI. The entirely OOP
and the clear syntax of Ruby attracted me. Of course I
can say the same things for the fox lib too...
Ok, let's say when the things seems wrong :
I'm working on Linux (SuSE 8.1)
-fox-lib-1.1.41
-latest stable snapshot of Ruby (yesterday, 1.8.1)
-FXRuby-1.0.27
After installing with success the fox lib and ruby
I've tried to install FXRuby.
With #ruby install.rb setup I obtain :
< my compiling/linking process of FXRuby >
gcc -shared -L"/usr/local/lib" -L"/usr/local/lib"
-L"/usr/X11R6/lib" -o fox.so librb.o ui_wrap.o
layout_wrap.o FXRuby.o iconlist_wrap.o core_wrap.o
dc_wrap.o opengl_wrap.o list_wrap.o label_wrap.o
text_wrap.o table_wrap.o frames_wrap.o FXRbApp.o
icons_wrap.o impl.o mdi_wrap.o dialogs_wrap.o
FXRbGLViewer.o image_wrap.o menu_wrap.o
FXRbDataTarget.o markfuncs.o treelist_wrap.o -lFOX
-lGLU -lGL -lX11 -lXext -ltiff -ljpeg -lz -lpng
-lstdc++ -ldl -lcrypt -lm -lc
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../../i486-suse-linux/bin/ld:
cannot find -lFOX
collect2: ld returned 1 exit status
make: *** [fox.so] Error 1
setup failed
'system make ' failed
Try 'ruby install.rb --help' for detailed usage.
< /my compiling/linking process of FXRuby >
what's wrong? Why ld says me cannot find -lFOX even
when the fox libs is well in /usr/local/lib directory
and ldconfig -v returns :
/usr/local/lib :
....
....
libFOX-1.1.so.41 -> libFOX-1.1.so.41.0.0
....
....
That's my FXRuby config :
# ruby install.rb show
prefix /usr/local
std-ruby $prefix/lib/ruby/1.8
site-ruby-common $prefix/lib/ruby/site_ruby
site-ruby $prefix/lib/ruby/site_ruby/1.8
bin-dir $prefix/bin
rb-dir $site-ruby
so-dir $prefix/lib/ruby/site_ruby/1.8/i686-linux
data-dir $prefix/share
ruby-path /usr/local/bin/ruby
ruby-prog /usr/local/bin/ruby
make-prog make
without-ext no
and that's where the fox libs were installed :
/usr/local/lib :
# ls /usr/local/lib/libFOX*
/usr/local/lib/libFOX-1.1.a
/usr/local/lib/libFOX-1.1.so
/usr/local/lib/libFOX-1.1.so.41.0.0
/usr/local/lib/libFOX-1.1.la
/usr/local/lib/libFOX-1.1.so.41
Before the !ABOVE! steps I've tried the following and
succeed
(Of course I've completely removed the !BELOW! libs
and ruby after that)
-fox-lib-1.0.47 !!!
-Ruby 1.8.0 !!!
-FXRuby-1.0.27.tar.gz.
Whith that config I have tried all the examples in the
examples directory. It seems all going well. Apart
some strange behaviour in "dctest.rb" example. Some
strange mixture of colors appears when going from tab
to another tab widget after some clicks on button
widgets ...
I hope I've clearly explained :)
thanks in advance.
mahmut
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
|