This is an unfinished work, as until now I could have not been able to install (compile) KDE 4 on Centos 5, I will post here the steps I already did, and the error I have found, If someone can continue with the job please post below on this thread, I will also still continue trying.
I will post step by step what I did, first install a basic Centos5, with Gnome, and not KDE (as we are supposed to compile it later)
yum install xorg-x11-proto-devel
To solve error: X11/Xlib.h: No such file or directory
yum install libXext-devel
to solve /usr/bin/ld: cannot find -lXext
yum install openssl-devel
Installing cmake
wget http://www.cmake.org/files/v2.4/cmake-2.4.7.tar.gz
tar xvzf cmake-2.4.7.tar.gz
mkdir cmake-build
cd cmake-build
../cmake-2.4.7/bootstrap
gmake
sudo gmake install
Installing QT 4.3
wget http://ftp.silug.org/mirrors/ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.3.3.tar.gz
tar xvzf qt-x11-opensource-src-4.3.3.tar.gz
cd [qt_directory]
./configure -nomake examples -nomake demos -qt-gif -no-exceptions -debug -qt3support -qdbus
gmake
gmake install
PATH=/usr/local/Trolltech/Qt-4.3.3/bin:$PATH
export PATH
Installing KDE support
As I have not found a .tar.gz for this, I had to use svn and followed the KDE instructions, to build it.
Build Kde Support from SVN
be sure to read this: Environmental variables to build KDE
Installing Clucene
wget http://ufpr.dl.sourceforge.net/sourceforge/clucene/clucene-core-0.9.20.tar.gz
tar xvzf clucene-core-0.9.20.tar.gz
cd clucene-core-0.9.20
./autogen.sh
./configure
make
make install
Installing Strigi
wget http://www.vandenoever.info/software/strigi/strigi-0.5.7.tar.bz2
tar xvjf strigi-0.5.7.tar.bz2
cd strigi-0.5.7
cmake .
make
make install
Installing KDELibs
mkdir /root/kde4/source/
cd /root/kde4/source/
wget http://download.kde.org/stable/4.0.0/src/kdelibs-4.0.0.tar.bz2
tar xvjf kdelibs-4.0.0.tar.bz2
cd ..
mkdir kde4build
cd kde4build
cmake -DCMAKE_INSTALL_PREFIX=/usr/src -DCMAKE_BUILD_TYPE=debugfull -DKDE4_BUILD_TEST=ON /usr/src/kdelibs-4.0.0
make
I am here, and I found this error:
[ 49%] Building CXX object phonon/libkaudiodevicelist/CMakeFiles/kaudiodevicelist.dir/audiodeviceenumerator.o
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp: In member function ‘void Phonon::AudioDeviceEnumeratorPrivate::findDevices()’:
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:67: warning: unused variable ‘cacheVersion’
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp: In member function ‘void Phonon::AudioDeviceEnumeratorPrivate::findVirtualDevices()’:
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:163: error: ‘snd_device_name_hint’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:170: error: ‘snd_device_name_get_hint’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:194: error: ‘snd_device_name_free_hint’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:196: error: ‘snd_config_update_free_global’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:197: error: ‘snd_config_update’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:198: error: ‘snd_config’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:206: error: ‘snd_input_t’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:206: error: ‘sndInput’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:207: error: ‘snd_input_buffer_open’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:209: error: ‘snd_config’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:209: error: ‘snd_config_load’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:210: error: ‘snd_input_close’ was not declared in this scope
make[2]: *** [phonon/libkaudiodevicelist/CMakeFiles/kaudiodevicelist.dir/audiodeviceenumerator.o] Error 1
make[1]: *** [phonon/libkaudiodevicelist/CMakeFiles/kaudiodevicelist.dir/all] Error 2
make: *** [all] Error 2
If someone find this useful, or find any other error please post here with the solution, or with the answer, so we can go all together, to finish this task.