richard.j.dale@gmail.com
5/5/2009 5:06:00 PM
On May 5, 2:18 pm, Olivier Lolveley <lolve...@yahoo.fr> wrote:
> hello,
>
> I would like to use kdevelop with Qt and ruby with a mandriva 2009.
>
> so I downloaded kdevelop from the mandriva packages, it runs fine.
>
> then, I installed Qt, and ruby.ok.
>
> then, I had to install the binding Qt-kdevelop, referring at these
> pages:
> - [www.bawet.org] (in french)
> - [techbase.kde.org]
> - [rubyforge.org] finally.
>
> in the last page, I have only to install the 2 last packages I think.
>
> so I installed qt4-qtruby, I installed smoke (./configure,make, make
> install) (ok) then I have this error, while trying to install
> qt4-qtruby:
>
> ****************************************************
> [root@localhost qt4-qtruby-2.0.3]# cmake
> -DCMAKE_INSTALL_PREFIX=/opt/kde4/ . && make && make install
> -- Found Qt-Version 4.5.0 (using /usr/bin/qmake)
> -- Ruby found: /usr/lib/libruby.so
> -- Build Smoke... yes - Qt, QtWebKit, QtScript, QtUiTools, QtTest
> -- Ruby found: /usr/lib/libruby.so
> -- Build QtRuby... yes
> -- Build QtWebKit Ruby... yes
> -- Build QtUiTools Ruby... yes
> -- Build QtScript... yes
> -- Build QtTest... yes
> -- Build QScintilla Ruby... no
> -- Build Qwt Ruby... no
> CMake Warning (dev) in CMakeLists.txt:
> No cmake_minimum_required command is present. A line of code such as
>
> cmake_minimum_required(VERSION 2.6)
>
> should be added at the top of the file. The version specified may be
> lower
> if you wish to support older CMake versions for this project. For more
> information run "cmake --help-policy CMP0000".
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> -- Configuring done
> CMake Warning (dev) at smoke/qtwebkit/CMakeLists.txt:28 (add_library):
> Policy CMP0003 should be set before this line. Add code such as
>
> if(COMMAND cmake_policy)
> cmake_policy(SET CMP0003 NEW)
> endif(COMMAND cmake_policy)
>
> as early as possible but after the most recent call to
> cmake_minimum_required or cmake_policy(VERSION). This warning appears
> because target "smokeqtwebkit" links to some libraries for which the
> linker
> must search:
>
> -lpthread
>
> and other libraries with known full path:
>
> /home/lolveley/bin/qt4-qtruby-2.0.3/smoke/qt/libsmokeqt.so.2.0.0
>
> CMake is adding directories in the second list to the linker search path
> in
> case they are needed to find libraries from the first list (for
> backwards
> compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to
> enable
> or disable this behavior explicitly. Run "cmake --help-policy CMP0003"
> for
> more information.
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> -- Generating done
> -- Build files have been written to: /home/lolveley/bin/qt4-qtruby-2.0.3
> [ 35%] Built target smokeqt
> [ 40%] Built target smokeqtwebkit
> [ 45%] Built target smokeqtscript
> [ 50%] Built target smokeqtuitools
> [ 54%] Built target smokeqttest
> [ 59%] Built target qtruby4shared
> [ 61%] Built target qtruby4
> [ 83%] Built target rbuic4_bin
> [ 87%] Built target rbrcc
> [ 90%] Built target rubyqtwebkit
> [ 93%] Built target rubyqtuitools
> [ 96%] Built target qtscript
> Linking CXX shared module qttest.so
> /usr/bin/ld: cannot find -lsmokekde
> collect2: ld a retourné 1 code d'état d'exécution
> make[2]: *** [ruby/qttest/qttest.so] Erreur 1
> make[1]: *** [ruby/qttest/CMakeFiles/qttest.dir/all] Erreur 2
> make: *** [all] Erreur 2
>
> ****************************************************
>
> can you help me?
That's a bug in the ruby/qttest/CMakeLists.txt file, you need to edit
it and remove the reference to 'smokekde'. It has been fixed in the
KDE svn and so the fix will be in the next release of QtRuby.
-- Richard