My first Krusader2-kde4 compilation attempt

30 views
Skip to first unread message

Frank Schoolmeesters

unread,
May 17, 2008, 6:01:27 PM5/17/08
to krusader-devel
Hi guys,

I finally found some time to start with KDE4 :-)

First i tried Debian Experimental, but ended in up a dependency hell
with unavailable kde4 packages.

So, i installed "Kubuntu 8.04 (KDE 4 Remix)" on my harddrive.
http://kubuntu.org/download.php

After reading our compile instructions at
http://www.krusader.org/handbook/krusader_kde4_install.html

It was needed to install the next packages first:
- gcc
- g++
- cmake
- gettext (contains "msgfmt")
- kdelibs5-dev (installs many development libraries for KDE4)
So, i need to update our compile instructions ;)


But then i ended up with the next error:
-------------------------------------------------------------------------
frank@frank-kubuntu:~/krusader_kde4$ cmake
-DCMAKE_INSTALL_PREFIX=/usr/ -DQT_INCLUDES=/usr/share/qt4/include
-- Found Qt-Version 4.3.4 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- 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
-- /home/frank/krusader_kde4/krusader: skipped subdir $(KRJSDIR)
-- Found ZLIB: /usr/lib/libz.so
-- /home/frank/krusader_kde4: skipped subdir $(TARDIR)
CMake Error: CPack welcome resource file:
"/usr/share/cmake/Templates/CPack.GenericWelcome.txt" could not be
found.
-- Configuring done
frank@frank-kubuntu:~/krusader_kde4$
-------------------------------------------------------------------------

"/usr/share/cmake/Templates/CPack.GenericWelcome.txt" could not be found
->
This is correct, the file resides in:
/usr/share/cmake-2.4/Templates/CPack.GenericWelcome.txt

How can i change the path?

Thanks and bye,

Frank

Václav Jůza

unread,
May 17, 2008, 6:10:53 PM5/17/08
to krusade...@googlegroups.com
Hi,

I have had similar problem after cpack was added to krusader, but
it is probably bug in the cmake package.

I have worked it around by making a
symlink /usr/share/cmake->/usr/share/cmake-2.4

Václav

Dne ne 18. května 2008 Frank Schoolmeesters napsal(a):

Fathi Boudra

unread,
May 19, 2008, 3:29:50 AM5/19/08
to krusade...@googlegroups.com
I finally found some time to start with KDE4 :-)

First i tried Debian Experimental, but ended in up a dependency hell
with unavailable kde4 packages.

I have uploaded latest KDE4 snapshots (4.0.74) to Debian Experimental this week-end.
See for informations : http://pkg-kde.alioth.debian.org/experimental.html

let me know what's your issue on dependency hell :)

cheers,

Fathi

Frank Schoolmeesters

unread,
May 19, 2008, 8:43:35 AM5/19/08
to krusade...@googlegroups.com

Hi Fathi,

I have installed Debian Lenny (with the netinstall CD)
- Installed KDE 3.5.9 desktop enviroment
- Upgraded to SID

Followed the next instructions for KDE4
http://te.ch-ne.ws/2008/01/kde4-debian-howto/

I have the next lines in /etc/apt/sources.list
----------------------------------------------
deb http://ftp.kulnet.kuleuven.ac.be/debian/ sid main contrib
deb-src http://ftp.kulnet.kuleuven.ac.be/debian/ sid main contrib
deb http://ftp.kulnet.kuleuven.ac.be/debian/ experimental main contrib
----------------------------------------------

This is the output of a few days ago (before the weekend), maybe if i
run it today it will work.
----------------------------------------
debian:/home/frank# apt-get -t experimental install kdebase-workspace kdm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
kdebase-workspace: Depends: kdebase-workspace-bin (>= 4:4.0.72-1)
but it is not going to be installed
Depends: klipper (>= 4:4.0.72-1) but
4:3.5.9.dfsg.1-2+b1 is to be installed
Depends: ksysguard (>= 4:4.0.72-1) but
4:3.5.9.dfsg.1-2+b1 is to be installed
Depends: kde-window-manager (>= 4:4.0.72-1) but
it is not going to be installed
Depends: systemsettings (>= 4:4.0.72-1) but it is
not going to be installed
kdm: Depends: kdebase-runtime (>= 4:4.0.66) but it is not going to
be installed
E: Broken packages
debian:/home/frank#
-------------------------------------------------------

Fathi Boudra

unread,
May 19, 2008, 9:29:26 AM5/19/08
to krusade...@googlegroups.com
> I have uploaded latest KDE4 snapshots (4.0.74) to Debian Experimental this
> week-end.
> See for informations :
> http://pkg-kde.alioth.debian.org/experimental.html
>
> let me know what's your issue on dependency hell :)
 
 
I have installed Debian Lenny (with the netinstall CD)

- Installed KDE 3.5.9 desktop enviroment

You don't need this step as you want KDE4 :)

- Upgraded to SID
Followed the next instructions for KDE4
http://te.ch-ne.ws/2008/01/kde4-debian-howto/
I have the next lines in /etc/apt/sources.list
----------------------------------------------
deb http://ftp.kulnet.kuleuven.ac.be/debian/ sid main contrib
deb-src http://ftp.kulnet.kuleuven.ac.be/debian/ sid main contrib
deb http://ftp.kulnet.kuleuven.ac.be/debian/ experimental main contrib
----------------------------------------------

I suggest to use DE server (faster):

deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
deb-src http://ftp.de.debian.org/debian/ unstable main contrib non-free

deb http://ftp.de.debian.org/debian/ experimental main contrib non-free
deb-src http://ftp.de.debian.org/debian/ experimental main contrib non-free

This is the output of a few days ago (before the weekend), maybe if i
run it today it will work.

this weekend I have uploaded a full KDE4 4.0.74 packages set for amd64/i386.
You must not have this kind of problem anymore.

----------------------------------------
debian:/home/frank# apt-get -t experimental install kdebase-workspace kdm

apt-get install  -t experimental kdelibs5 kdepimlibs5 kdebase-runtime kdebase-workspace kdebase

Frank Schoolmeesters

unread,
May 19, 2008, 1:44:32 PM5/19/08
to krusade...@googlegroups.com
Hi,

I will try Debian experimental soon again.

About Krusader-2-svn compilation on "Kubuntu 8.04 (KDE 4 Remix)"
I have fixed the cmake link with
$ sudo mkdir /usr/share/cmake/
$ sudo ln -s /usr/share/cmake-2.4/Templates /usr/share/cmake/Templates
To fix the next cmake error:
-------------


CMake Error: CPack welcome resource file:
"/usr/share/cmake/Templates/CPack.GenericWelcome.txt" could not be
found.

----------------


But now i have a problem wit CXX.
Somebody, any idea what is wrong?

cmake says:
--------------------------
loading initial cache file MAKE_CXX_COMPILER=gcc
Error processing file:MAKE_CXX_COMPILER=gcc
--------------------------

And make says:
--------------------------
Linking CXX executable krusader
....
/usr/bin/ld: cannot find -lphonon
collect2: ld returned 1 exit status
....
--------------------------

I'm using:


Kubuntu 8.04 (KDE 4 Remix)

gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Qt: 4.3.4
KDE: 4.0.3

See below for more output details.

Thanks and bye,

Frank


--------------------------------------------
frank@frank-kubuntu:~/krusader_kde4$ cmake
-DCMAKE_INSTALL_PREFIX=/usr/ -DQT_INCLUDES=/usr/share/qt4/include

-CMAKE_CXX_COMPILER=gcc
loading initial cache file MAKE_CXX_COMPILER=gcc
Error processing file:MAKE_CXX_COMPILER=gcc


-- Found Qt-Version 4.3.4 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- 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
-- /home/frank/krusader_kde4/krusader: skipped subdir $(KRJSDIR)

-- /home/frank/krusader_kde4: skipped subdir $(TARDIR)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/frank/krusader_kde4
frank@frank-kubuntu:~/krusader_kde4$
-------------------------------------------------------

-----------------------------
make
...
[ 82%] Building CXX object krusader/CMakeFiles/krusader.dir/instanceadaptor.o
/usr/bin/c++ -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef
-Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
-Wformat-security -fno-exceptions -fno-check-new -fno-common
-Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-hidden
-O2 -g -I/home/frank/krusader_kde4/krusader -I/usr/lib/kde4/include
-I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtTest
-I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtScript
-I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtXml
-I/usr/include/qt4/QtSql -I/usr/include/qt4/QtOpenGL
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDesigner
-I/usr/include/qt4/QtAssistant -I/usr/include/qt4/Qt3Support
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore
-I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default
-I/usr/include/qt4 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-D_GNU_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT
-DKDE_DEPRECATED_WARNINGS -DVERSION='"2.0.0-beta1"'
-DRELEASE_NAME='"Phoenix` Egg"' -o
krusader/CMakeFiles/krusader.dir/instanceadaptor.o -c
/home/frank/krusader_kde4/krusader/instanceadaptor.cpp
Linking CXX executable krusader
cd /home/frank/krusader_kde4/krusader && /usr/bin/cmake -P
CMakeFiles/krusader.dir/cmake_clean_target.cmake
cd /home/frank/krusader_kde4/krusader && /usr/bin/c++
-Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align
-Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security
-fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual
-fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -fPIC
-Wl,--enable-new-dtags "CMakeFiles/krusader.dir/krusader_automoc.o"
"CMakeFiles/krusader.dir/paneltabbar.o"
"CMakeFiles/krusader.dir/panelmanager.o"
"CMakeFiles/krusader.dir/krservices.o"
"CMakeFiles/krusader.dir/main.o"
"CMakeFiles/krusader.dir/krusaderview.o"
"CMakeFiles/krusader.dir/krusader.o"
"CMakeFiles/krusader.dir/krslots.o" "CMakeFiles/krusader.dir/kicons.o"
"CMakeFiles/krusader.dir/krusaderapp.o"
"CMakeFiles/krusader.dir/instanceadaptor.o" -o krusader
-rdynamic-L/usr/lib/kde4/lib -L/home/frank/krusader_kde4/lib -lQtCore
-lpthread -lQtNetwork -lQtDBus -lQtXml -lz -lbz2 -lresolv -lkdecore
-Wl,-Bstatic -lBookMan -lDialogs -lDiskUsage -lGUI -lKonfigurator
-lKViewer -lMountMan -lPanel -lQueue -lVFS -lSearch -lSplitter
-lSynchronizer -lUserMenu -lLocate -lUserAction -lActionMan -lKViewer
-lFilter -lDialogs -lGUI -Wl,-Bdynamic -lQtCore -lpthread -lkdecore
-lkdeui -lkio -lkparts -lQtCore -lpthread -lkdecore -lkdeui -lkio
-lkparts-lktexteditor -lkjs -lQtDBus -lQtCore -lpthread -lQtGui
-lphonon -ljpeg -lgif -lpng -lz -lkhtml -lQtSvg -lQtCore -lpthread
-lkdecore -lSM -lICE -lX11 -lXext-lXft -lXau -lXdmcp -lQtGui -lQtXml
-lXtst -lXcursor -lXfixes -lXrender -lkdeui -lQtCore -lpthread
-lkdecore -lkdeui -lkio -lz -lQtCore -lpthread -lkdecore -lsolid
-lkfile -lQt3Support -lQtCore -lpthread -lkdecore -lkdeui -lkio
-lkparts -lQtCore -lpthread -lkdecore -lkpty -lQtXml -lQt3Support
-lQtCore -lpthread -lkdecore -lkdeui -lkio -lkfile -lkde3support -lm
-lpcre -lpcreposix -lutil -lQtCore -lpthread -lkdecore -lkdeui -lkio
-lstreamanalyzer -lstreams -lz -lQtCore -lpthread -lkdecore
-lQtNetwork -lbz2 -lresolv -lsolid -lQtDBus -lQtGui
-Wl,-rpath,/usr/lib:/usr/lib/kde4/lib
/usr/bin/ld: cannot find -lphonon
collect2: ld returned 1 exit status
make[2]: *** [krusader/krusader] Error 1
make[2]: Leaving directory `/home/frank/krusader_kde4'
make[1]: *** [krusader/CMakeFiles/krusader.dir/all] Error 2
make[1]: Leaving directory `/home/frank/krusader_kde4'
make: *** [all] Error 2
frank@frank-kubuntu:~/krusader_kde4$ ld --help
--------------------------------------------------------------

Frank Schoolmeesters

unread,
May 19, 2008, 5:28:51 PM5/19/08
to krusade...@googlegroups.com
On Mon, May 19, 2008 at 3:29 PM, Fathi Boudra <fbo...@gmail.com> wrote:
> this weekend I have uploaded a full KDE4 4.0.74 packages set for amd64/i386.
> You must not have this kind of problem anymore.

Hi Fathi,

I installed Debian SID with kde3.5.9 and tried to install kde4 again.

I used aptitude because
debian:/home/frank# apt-get install -t experimental kdelibs5
kdepimlibs5 kdebase-runtime kdebase-workspace kdebase
refused to work.

I was able to install kdelibs5 kdepimlibs5 kdebase-runtime separately
with aptitude and even succesfully killed my KDE3 desktop ;)

But KDE4, kdebase-workspace kdebase refuses to install, also aptitude
seems not be able to fix the dependency hell ;)

thanks and bye,

Frank

-------------------------------------------------
debian:/home/frank# apt-get install -t experimental kdelibs5
kdepimlibs5 kdebase-runtime kdebase-workspace kdebase


Reading package lists... Done
Building dependency tree
Reading state information... Done

kdelibs5 is already the newest version.
kdelibs5 set to manually installed.
kdebase-runtime is already the newest version.


Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:

kdebase: Depends: kdebase-bin (>= 4:4.0.74-1) but


4:3.5.9.dfsg.1-2+b1 is to be installed

Depends: konqueror (>= 4:4.0.74-1) but it is not going to


be installed
kdebase-workspace: Depends: kdebase-workspace-bin (>= 4:4.0.72-1)
but it is not going to be installed

Depends: ksysguard (>= 4:4.0.72-1) but it is not


going to be installed
E: Broken packages
debian:/home/frank#

----------------------------------------------------------

Fathi Boudra

unread,
May 20, 2008, 2:05:04 AM5/20/08
to krusade...@googlegroups.com
> But KDE4, kdebase-workspace kdebase refuses to install, also aptitude
> seems not be able to fix the dependency hell ;)

rah :) Indeed.

Sorry, kdebase-workspace is in the NEW queue at the moment:
http://ftp-master.debian.org/new.html

It needs to be processed by ftp-master.

You can found the packages:
http://fboudra.free.fr/debian/kde4/kdebase-workspace_4:4.0.74-1/

well, it's not the best situation but works.

cheers,

Fathi

Fathi Boudra

unread,
May 20, 2008, 9:11:19 AM5/20/08
to krusade...@googlegroups.com
if you want to test krusader for KDE 4:
http://fboudra.free.fr/debian/krusader_2.0.0~svn6001-1/

It's isn't co-installable with KDE3 version.
I planned an upload to Debian (experimental) after beta1 release.

Frank Schoolmeesters

unread,
May 20, 2008, 3:51:43 PM5/20/08
to krusade...@googlegroups.com
Hi all,

Compilation still fails.
I have a CXX problem but there is some progress since last time.

System:


Kubuntu 8.04 (KDE 4 Remix)

gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Qt: 4.3.4
KDE: 4.0.3

1)
I have installed some CXX packages, though i'm not sure i need them ;)
Or maybe i have not installed a devel package that is needed for compilation?
- lsb-cxx
- libcxxtools4
- libcxxtools-dev
- python-cxx
- python-cxx-dev

2)
Checked out revision 6003 from wich contains a patch by Fathi.

3)
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/ -DQT_INCLUDES=/usr/share/qt4/include
Seems to run ok now (please check the output at below).

4)
make fails with a CXX linking problem (please check the output at below).

Any thoughts?

thanks a lot and bye,

Frank


------------------------------------------------------------------------------------------------
frank@frank-kubuntu~/krusader_kde4$ cmake -DCMAKE_INSTALL_PREFIX=/usr/
-DQT_INCLUDES=/usr/share/qt4/include
-- 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.4 (using /usr/bin/qmake)

-- 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_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - 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
-- /home/frank/krusader_kde4/krusader: skipped subdir $(KRJSDIR)

-- Looking for include files HAVE_LIBINTL_H
-- Looking for include files HAVE_LIBINTL_H - found
-- Looking for dgettext
-- Looking for dgettext - found
-- Found Gettext: built in libc


-- Found ZLIB: /usr/lib/libz.so
-- /home/frank/krusader_kde4: skipped subdir $(TARDIR)

-- Configuring done
-- Generating done
-- Build files have been written to: /home/frank/krusader_kde4
frank@frank-kubuntu:~/krusader_kde4

------------------------------------------------------------------------------------------------------------------------

----------------------------------------------------------
frank@frank-kubuntu:~/krusader_kde4$ make

----------------------------------------------------------------

Dirk Eschler

unread,
May 20, 2008, 3:57:59 PM5/20/08
to krusade...@googlegroups.com
On Dienstag, 20. Mai 2008, Frank Schoolmeesters wrote:
> Hi all,
>
> Compilation still fails.
> I have a CXX problem but there is some progress since last time.

[...]

> I have installed some CXX packages, though i'm not sure i need them ;)
> Or maybe i have not installed a devel package that is needed for
> compilation?

[...]

> /usr/bin/ld: cannot find -lphonon

The linker can't find phonon, do you have it installed?

bye,
Dirk

--
Dirk Eschler <mailto:dirk.e...@gmx.net>
http://www.krusader.org

Frank Schoolmeesters

unread,
May 21, 2008, 4:49:54 PM5/21/08
to krusade...@googlegroups.com
On Tue, May 20, 2008 at 9:57 PM, Dirk Eschler <dirk.e...@gmx.net> wrote:
>
> On Dienstag, 20. Mai 2008, Frank Schoolmeesters wrote:
>> Hi all,
>>
>> Compilation still fails.
>> I have a CXX problem but there is some progress since last time.
>
> [...]
>
>> I have installed some CXX packages, though i'm not sure i need them ;)
>> Or maybe i have not installed a devel package that is needed for
>> compilation?
>
> [...]
>
>> /usr/bin/ld: cannot find -lphonon
>
> The linker can't find phonon, do you have it installed?
>
> bye,
> Dirk
>

libphonon-dev was the missing package.

Thanks!

Krusader has left the third stone towards the fourth stone ;-)
See attached screen shot.

I'm back in business :-)

bye,

Frank

krusader-2-kde4.png

Dirk Eschler

unread,
May 21, 2008, 5:53:25 PM5/21/08
to krusade...@googlegroups.com
On Mittwoch, 21. Mai 2008, Frank Schoolmeesters wrote:
> libphonon-dev was the missing package.
>
> Thanks!
>
> Krusader has left the third stone towards the fourth stone ;-)
> See attached screen shot.
>
> I'm back in business :-)

Nice. Once your tired of the grey-in-grey of the default style, try Skulpture.
Doesn't look bad at all.

http://www.kde-look.org/content/show.php/Skulpture?content=59031

/me likes edges. ;-)

Frank Schoolmeesters

unread,
May 26, 2008, 4:45:54 PM5/26/08
to krusade...@googlegroups.com
Phoenix has landed on the Fourth Stone :-)
http://www.nasa.gov/mission_pages/phoenix/main/index.html

Krusaders "Phoenix Egg" will follow soon on the Fourth Kde Stone ;-)

bye,

Frank

Reply all
Reply to author
Forward
0 new messages