[rkward-devel] KDE4 porting status

Prasenjit Kapat kapatp at gmail.com
Sun Oct 21 23:06:36 UTC 2007


Hi,

On 10/21/07, Thomas Friedrichsmeier
<thomas.friedrichsmeier at ruhr-uni-bochum.de> wrote:
> Hi,
>
> On Sunday 21 October 2007, Prasenjit Kapat wrote:
> > I am trying to get kde4 working. I have a few questions:
> > 1. Do you use a separate user (as mentioned in the techbase
> > instructions) for compiling KDE4?
>
> yes, in fact I use a separate user. I guess this is highly recommended, as it
> seems to be the only good way to keep a "clean" KDE3 environment installed in
> parallel.

Good, I am using a separate user too. And Kubuntu's kde4 files are all
in /usr/lib/kde4/, so I hope this doesnot screw up my KDE3!

> > 2. Which QT are you using? Is it from Debian's repo or the "qt-copy"
> > (again as mentioned in the techbase instructions) from KDE svn?
> > http://techbase.kde.org/Getting_Started/Build/KDE4#Qt
>
> I use the one from debian, and this seems to work fine. I had to make sure the
> correct version of "moc" (/usr/bin/moc-qt4) was the first to be picked up in
> the path (I placed it ~/kde/bin/ for the kde4 user).

ok "moc-qt4 -v" shows
Qt Meta Object Compiler version 59 (Qt 4.3.2)

I think that is fine! Let me know if it is not..

> > 3. Are you compiling cmake or using the binary version from Debian's repo?
>
> I use the one from the debian repository (2.4-patch 7).

$ cmake --version
cmake version 2.4-patch 7

so that is good.

> > CMake Error: Error in cmake code at
> > /home/kde4-devel/rkward_kde4/rkward/dataeditor/CMakeLists.txt:20:
> > Unknown CMake command "QT4_AUTOMOC".
> >
> > I am not sure why cmake (2.4.7) is not able to find this macro,
> > though, /usr/share/cmake-2.4/Modules/FindQT4.cmake does have the
> > QT4_AUTOMOC macro in it. Did you face anything like this?
>
> No. Are you sure you have the right path for "/path/to/rkward/sources"? This
> should point to the directory containing a CMakeLists.txt starting
> with "PROJECT (rkward)". That's my only idea on this ATM.

Ah, I was doing it one level of directory deeper. Now it seems to work
but with the following output (and Error in the end:)
========================
kde4-devel at nebu:~/rkward_kde4$ cmake /home/kde4-devel/rkward_kde4
-DCMAKE-BUILD-TYPE=debugfull -DCMAKE_INSTALL_PREFIX=~/.kde4
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.3.2
-- Looking for XOpenDisplay in
/usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so
-- Looking for XOpenDisplay in
/usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so
- found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_NO_THREADSAFE_STATICS
-- Performing Test __KDE_HAVE_NO_THREADSAFE_STATICS - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.0 include dir: /usr/lib/kde4/include
-- Found KDE 4 library dir: /usr/lib/kde4/lib
-- Found KDE4 kconfig_compiler preprocessor: /usr/lib/kde4/bin/kconfig_compiler
-- Found KDE4 automoc: /usr/lib/kde4/bin/kde4automoc
-- Looking for R executable
-- Using R at /usr/bin/R
-- Looking for R_HOME
-- R_HOME is /usr/lib/R
-- Looking for R include files
-- Include files should be at /usr/share/R/include. Checking for R.h
-- Found at /usr/share/R/include/R.h
-- Checking for existence of libR.so
-- Exists at /usr/lib/R/lib/libR.so
-- Checking whether we should link against libRlapack.so
-- Yes, /usr/lib/R/lib/libRlapack.so exists
-- Checking whether we should link against libRblas.so
-- No, /usr/lib/R/lib/libRblas.so does not exist
-- Checking for R package library location to use
CMake Error: /usr/local/lib/R/site-library:/usr/lib/R/site-library:/usr/lib/R/library
does not exist
-- Configuring done
====================

On my machine, /usr/local/lib/R/site-library exists:
$ ls -l /usr/local/lib/R/site-library
-rw-r--r--  1 root root  608 2007-10-17 23:40 R.css
drwxr-xr-x 10 root root 4096 2007-10-17 23:44 rkward

/usr/lib/R/library contains all the usual libraries (with R.css)....
and /usr/lib/R/site-library is empty (exists though, but no R.css)...

I have R 2.5.1 though... For KDE3 compilation I had to use
CC=/usr/bin/gcc-4.2 and CXX=/usr/bin/g++-4.2 before ./configure. What
are the relevant options here?

Regards
PK




More information about the Rkward-devel mailing list