KcmPureFTPd KcmPureFTPd KDE Project


Home
Contact
Documentation
Change Log
Screenshots
Download
Resources
   KcmPureftpdScript Architecture | Compile KcmPureftpd 0.6 for KDE 3 | Install KcmPureftpd 0.6 | Anonymous CVS | Credits 

Compiling KcmPureftpd 0.6 for KDE 3.x

Contents:
    Introduction
    Fixing and Compiling
    SuSE 8.0
    SuSE 8.1
    Other distributions
    What fixing script does

Introduction

KcmPureftpd is an KControl module. Version 0.6 is a bit too old, but because of my lack of commitment, yet there's no other stable release. KDE and Qt both changed their version to 3.x series. I programmed KcmPureftpd with great caution to ensure compiling both on very old KDE 2.x series and KDE 3.x series. But the version 0.6 doesn't cleanly compile from sources because of my little ommisions and advances made on GNU based compiling system.

"The good, the bad and the ugly". The "good" bugs are that related to compiling system, KDE development environment changes. The "bad" bugs apperead because of my poor C++. The "ugly" bug emerged when I packaged the source archive without verifying than indeed all is OK.

Fixing and compiling

  1. Get your kcmpureftpd 0.6 source archive. Download this link: kcmpureftpd-0.6.tar.gz
  2. Unpack the archive:
    prompt$ tar xfz kcmpureftpd-0.6.tar.gz
    or, if you don't use a Linux system:
    prompt$ cat kcmpureftpd-0.6.tar.gz | gunzip | tar xf -
    (don't miss the last 'minus' character in command line)
  3. Download the script which fix compiling problems. Here is the link: fix-kcm06.sh
  4. Make it executable:
    prompt$ chmod +x fix-kcm06.sh
  5. Run it:
    prompt$ ./fix-kcm06.sh
  6. Then you may compile as usual:
    prompt$ cd kcmpureftpd-0.6
    prompt$ ./configure
    prompt$ make
    prompt# make install
    Last command must be run as root user.

SuSE 8.0

The script make its job for SuSE 8.0 users, but with some precautions. You may have both QT2 and QT3 installed on the machine. Before starting compiling please ensure that you have installed development packages for KDE and QT

prompt$ rpm -qa | grep devel | egrep '(qt|kde)'
qt3-devel-3.0.3-15
kdebase3-devel-3.0-5
kdelibs3-devel-3.0-1

If this is true, then you must be sure that KcmPureftpd compile with QT3 libraries and C++ header files. A little glitch make configure script to not recognize KDE 3.x as base system and offer to install the application in /usr/local/kde. To overcome the above limitations please run the configure script as:

prompt$ ./configure --prefix=/opt/kde3 --with-qt-dir=/usr/lib/qt3

SuSE 8.1

The script make its job for SuSE 8.1 users, but with some precautions. You may have both QT2 and QT3 installed on the machine. Before starting compiling please ensure that you have installed development packages for KDE and QT

prompt$ rpm -qa | grep devel | egrep '(qt|kde)'
qt3-devel-3.0.5-72
kdelibs3-devel-3.0.3-82
kdebase3-devel-3.0.3-97

If this is true, then you must be sure that KcmPureftpd compile with QT3 libraries and C++ header files. A little glitch make configure script to not recognize KDE 3.x as base system and offer to install the application in /usr/local/kde. To overcome the above limitations please run the configure script as:

prompt$ ./configure --prefix=/opt/kde3 --with-qt-dir=/usr/lib/qt3

Other distributions

Currently I don't know if fix script work for other distributions and I'll be glad to hear from you. On the other side, there should be no problems even if you have KDE and/or QT compiled from sources.

What fixing script does

  1. The "ugly" mistake I have done, was that subdirs file modification time was different from configure.in. This lead to rebuilding Makefile.in files. Such that, if you missed to install autoconf and friends, then compile will fail. In addition, KDevelop used the technique to add two EXTRA_DIST entries in Makefile.am files. With new automake this turned in error.
  2. The KDE 3.x use $KDEDIR/lib/kde3 directory for storing KControl module libraries. The fix script patch the configure script to reflect the change.
  3. Because of my sloppiness, I forgot to add an "include" statement for qregexp.h. For KDE2/QT2 was OK, but on KDE 3.x, the weak showed up.
  4. KDE 3.x changed the libraries for KURL class and friends, so I fixed the Makefile.in to change the reference from libkfile to libkio.


Home | Contact | Documentation | Change Log | Screenshots | Download | Resources 

Copyright 2001-2003, Claudiu Costin claudiuc@kde.org
Released under GNU FDL license.