H
Hector
I've been trying to compile Qt Ruby without success.
I've got Qt 4.1.1 installed and it tested fine. I was able to run the
demos without a problem.
When I try to compile qt4-qtruby-1.4.3 I get this:
<Abstract>
-c -o qtrubyinit.o `test -f 'qtrubyinit.cpp' || echo
'./'`qtrubyinit.cpp; \
then mv ".deps/qtrubyinit.Tpo" ".deps/qtrubyinit.Po"; \
else rm -f ".deps/qtrubyinit.Tpo"; exit 1; \
fi
/bin/sh ../../libtool --silent --mode=link 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 -O2
-g -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions
-fno-check-new -fno-common -o qtrubyinit -module
-L/usr/local/Trolltech/Qt-4.1.1/lib -L/usr/X11R6/lib -version-info
0:0:0 -L../../smoke/qt/ -L/usr/local/lib qtrubyinit.o -lQtGui -lz -lpng
-lz -lm -lXext -lX11 -lSM -lICE -lpthread -Wl,-R -Wl,/usr/local/lib
-L/usr/local/lib -L. ../../smoke/qt/libsmokeqt.la
../../qtruby/rubylib/qtruby/libqtrubyinternal.la
libtool: link: warning: `-version-info' is ignored for programs
qtrubyinit.o: In function `main':
/source/qt4-qtruby-1.4.3/qtruby/bin/qtrubyinit.cpp:25: undefined
reference to `ruby_init'
/source/qt4-qtruby-1.4.3/qtruby/bin/qtrubyinit.cpp:26: undefined
reference to `ruby_script'
/source/qt4-qtruby-1.4.3/qtruby/bin/qtrubyinit.cpp:27: undefined
reference to `ruby_options'
/source/qt4-qtruby-1.4.3/qtruby/bin/qtrubyinit.cpp:28: undefined
reference to `ruby_run'
collect2: ld returned 1 exit status
make[3]: *** [qtrubyinit] Error 1
make[3]: Leaving directory `/source/qt4-qtruby-1.4.3/qtruby/bin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/source/qt4-qtruby-1.4.3/qtruby'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/source/qt4-qtruby-1.4.3'
make: *** [all] Error 2
I know almost nothing about compiling C++ programs, does anyone know how
I can get around this problem.
Thank you.
Hector
I've got Qt 4.1.1 installed and it tested fine. I was able to run the
demos without a problem.
When I try to compile qt4-qtruby-1.4.3 I get this:
<Abstract>
-c -o qtrubyinit.o `test -f 'qtrubyinit.cpp' || echo
'./'`qtrubyinit.cpp; \
then mv ".deps/qtrubyinit.Tpo" ".deps/qtrubyinit.Po"; \
else rm -f ".deps/qtrubyinit.Tpo"; exit 1; \
fi
/bin/sh ../../libtool --silent --mode=link 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 -O2
-g -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions
-fno-check-new -fno-common -o qtrubyinit -module
-L/usr/local/Trolltech/Qt-4.1.1/lib -L/usr/X11R6/lib -version-info
0:0:0 -L../../smoke/qt/ -L/usr/local/lib qtrubyinit.o -lQtGui -lz -lpng
-lz -lm -lXext -lX11 -lSM -lICE -lpthread -Wl,-R -Wl,/usr/local/lib
-L/usr/local/lib -L. ../../smoke/qt/libsmokeqt.la
../../qtruby/rubylib/qtruby/libqtrubyinternal.la
libtool: link: warning: `-version-info' is ignored for programs
qtrubyinit.o: In function `main':
/source/qt4-qtruby-1.4.3/qtruby/bin/qtrubyinit.cpp:25: undefined
reference to `ruby_init'
/source/qt4-qtruby-1.4.3/qtruby/bin/qtrubyinit.cpp:26: undefined
reference to `ruby_script'
/source/qt4-qtruby-1.4.3/qtruby/bin/qtrubyinit.cpp:27: undefined
reference to `ruby_options'
/source/qt4-qtruby-1.4.3/qtruby/bin/qtrubyinit.cpp:28: undefined
reference to `ruby_run'
collect2: ld returned 1 exit status
make[3]: *** [qtrubyinit] Error 1
make[3]: Leaving directory `/source/qt4-qtruby-1.4.3/qtruby/bin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/source/qt4-qtruby-1.4.3/qtruby'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/source/qt4-qtruby-1.4.3'
make: *** [all] Error 2
I know almost nothing about compiling C++ programs, does anyone know how
I can get around this problem.
Thank you.
Hector