[Kde-bindings] Problems builing RUBY binding
Alex Martin Ugalde
alex.martin at eresmas.com
Fri Jun 4 11:58:13 UTC 2004
Hi Folks,
I got a link error while linking korudum:
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde3/include
-I/usr/lib/qt3/include -I/usr/X11R6/include
-I/usr/lib/ruby/1.8/i686-linux -DQT_THREAD_SUPPORT -D_REENTRANT
-Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W
-Wpointer-arith -Wwrite-strings -O2 -fno-exceptions -fno-check-new
-fno-common -c -o krubyinit.o krubyinit.cpp
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -fno-exceptions -fno-check-new -fno-common -o krubyinit -module -L/usr/X11R6/lib -L/usr/lib/qt3/lib -L/opt/kde3/lib -version-info 0:0:0 -L../../smoke/kde/ -L/usr/lib krubyinit.o ../../smoke/kde/libsmokekde.la ../../qtruby/rubylib/qtruby/libqtrubyinternal.la
libtool: link: warning: `-version-info' is ignored for programs
krubyinit.o: In function `main':
krubyinit.o(.text+0xf): undefined reference to `ruby_init'
krubyinit.o(.text+0x1d): undefined reference to `ruby_script'
krubyinit.o(.text+0x27): undefined reference to `ruby_options'
krubyinit.o(.text+0x2f): undefined reference to `ruby_run'
collect2: ld returned 1 exit status
make[1]: *** [krubyinit] Error 1
The problem was it miss "-lruby", I have included it in bin/Makefile,
and the link gone well.
I guess it is not the best place :), but anyway here is the changes i
made at korundum/bin/Makefile:
88c88
< $(AM_LDFLAGS) $(LDFLAGS) -lruby -o $@
---
> $(AM_LDFLAGS) $(LDFLAGS) -o $@
Regards,
Alex
More information about the Kde-bindings
mailing list