[blfs-support] Some comments compiling kde4

wim meest wim.meest at gmail.com
Fri Feb 17 13:33:35 PST 2012


Good making some progress with 4.6.5 (still millions of warnings)
with kdelibs-4.6.5 I needed this patch:
-----------------------
diff --git a/kio/kio/scheduler.cpp b/kio/kio/scheduler.cpp
index f7a589e..769d08d 100644
--- a/kio/kio/scheduler.cpp
+++ b/kio/kio/scheduler.cpp
@@ -886,6 +886,36 @@void Scheduler::emitReparseSlaveConfiguration()
     emit self()->reparseSlaveConfiguration( QString() );
 }

+void Scheduler::slotSlaveDied(Slave* slave)
+{
+    schedulerPrivate->slotSlaveDied(slave);
+}
+
+void Scheduler::slotSlaveStatus(pid_t pid, const QByteArray&
protocol, const QString& host, bool connected)
+{
+    schedulerPrivate->slotSlaveStatus(pid, protocol, host, connected);
+}
+
+void Scheduler::slotReparseSlaveConfiguration(const QString& prot,
const QDBusMessage& msg)
+{
+    schedulerPrivate->slotReparseSlaveConfiguration(prot, msg);
+}
+
+void Scheduler::slotSlaveConnected()
+{
+    schedulerPrivate->slotSlaveConnected();
+}
+
+void Scheduler::slotSlaveError(int error, const QString& errorMsg)
+{
+    schedulerPrivate->slotSlaveError(error, errorMsg);
+}
+
+void Scheduler::slotUnregisterWindow(QObject* obj)
+{
+    schedulerPrivate->slotUnregisterWindow(obj);
+}+

 void SchedulerPrivate::slotReparseSlaveConfiguration(const QString
&proto, const QDBusMessage&)
 {
diff --git a/kio/kio/scheduler.h b/kio/kio/scheduler.h
index d34c1cb..ac6f86b 100644
--- a/kio/kio/scheduler.h
+++ b/kio/kio/scheduler.h
@@ -29,6 +29,8 @@
 #include <QtGui/QWidgetList>
 #include <sys/types.h> // pid_t

+class QDBusMessage;
+
 namespace KIO {

     class Slave;
@@ -288,17 +290,19 @@ namespace KIO {

         static Scheduler *self();

-        Q_PRIVATE_SLOT(schedulerPrivate, void slotSlaveDied(KIO::Slave *slave))
-        Q_PRIVATE_SLOT(schedulerPrivate, void slotSlaveStatus(pid_t
pid, const QByteArray &protocol,
-                                               const QString &host,
bool connected))
+    private Q_SLOTS:
+        void slotSlaveDied(KIO::Slave *slave);
+        void slotSlaveStatus(pid_t pid, const QByteArray &protocol,
+                             const QString &host, bool connected);

         // connected to D-Bus signal:
-        Q_PRIVATE_SLOT(schedulerPrivate, void
slotReparseSlaveConfiguration(const QString &, const QDBusMessage&))
+        void slotReparseSlaveConfiguration(const QString &, const
QDBusMessage&);
+
+        void slotSlaveConnected();
+        void slotSlaveError(int error, const QString &errorMsg);
+        void slotUnregisterWindow(QObject *);
-        Q_PRIVATE_SLOT(schedulerPrivate, void slotSlaveError(int
error, const QString &errorMsg))
-        Q_PRIVATE_SLOT(schedulerPrivate, void slotUnregisterWindow(QObject *))
     private:
         friend class SchedulerPrivate;
         SchedulerPrivate *const d;

-        Q_PRIVATE_SLOT(schedulerPrivate, void slotSlaveConnected())

--------------------------
kdebase-runtime-4.6.5 needed this patch:
------------------------
diff --git a/kioslave/nfs/CMakeLists.txt b/kioslave/nfs/CMakeLists.txt
index b973a73..6556769 100644
--- a/kioslave/nfs/CMakeLists.txt
+++ b/kioslave/nfs/CMakeLists.txt
@@ -3,8 +3,8 @@ set(kio_nfs_PART_SRCS kio_nfs.cpp mount_xdr.c nfs_prot_xdr.c)

 kde4_add_plugin(kio_nfs ${kio_nfs_PART_SRCS})

-
-target_link_libraries(kio_nfs   ${KDE4_KIO_LIBS})
+include_directories(/usr/include/tirpc)
+target_link_libraries(kio_nfs   ${KDE4_KIO_LIBS} tirpc)

 install(TARGETS kio_nfs  DESTINATION ${PLUGIN_INSTALL_DIR} )
---------------------------

Now kdebase-workspace-4.6.5 doesn't compile because pci-utils needs to
be compiled with -fPIC option.

Tomorrow a new day :-).



2012/2/17, wim meest <wim.meest at gmail.com>:
> Trying to compile kdebindings-4.6.0. Didn't work
> didn't find polkit-qt.
> Seems it needed polkit-qt-0.9.4.
> That needed policykit.
> that needed linux-pam
> that needed cracklib
> that needed schadow passwd.
> along the way I fixed my ruby problem (ruby 1.9.2 from memory that includes
> a ruby-1.9.2.pc pkgconfig file) ruby is found now (but still the ruby
> include's cmake find are strange).
> And still couldn't  compile it. tried  kdebinding-4.6.5. Went pretty well.
> After 98% it needed kate header files from kdebase-4.6.5.
> So i'm starting with kde-4.6.5 :-(.
>
>
> 2012/2/13 wim meest <wim.meest at gmail.com>
>
>> Yeey success I compiled kdelibs-4.6.0
>> ofcourse it didn't work out of the box with with QT4.8
>> I needed a patch:
>> http://cache.gmane.org//gmane/comp/kde/devel/core/70307-001.bin
>> In that patch I removed the part:
>> +void Scheduler::slotSlaveOnHoldListChanged()
>> +{
>> +    schedulerPrivate->slotSlaveOnHoldListChanged();
>> +}
>>
>> and
>> +        void slotSlaveOnHoldListChanged();
>>
>> Applied it by hand.
>> And then after millions of warnings I got:
>> [100%] Built target testkhtml
>> :-).
>>
>>
>>
>>
>> 2012/2/12, wim meest <wim.meest at gmail.com>:
>> > Gave up. to many errors in kde-runtime-latest
>> > fixed some with this patch:
>> > -------------
>> > diff --git a/kioslave/nfs/CMakeLists.txt b/kioslave/nfs/CMakeLists.txt
>> > index b973a73..6556769 100644
>> > --- a/kioslave/nfs/CMakeLists.txt
>> > +++ b/kioslave/nfs/CMakeLists.txt
>> > @@ -3,8 +3,8 @@ set(kio_nfs_PART_SRCS kio_nfs.cpp mount_xdr.c
>> nfs_prot_xdr.c
>> > )
>> >
>> >  kde4_add_plugin(kio_nfs ${kio_nfs_PART_SRCS})
>> >
>> > -
>> > -target_link_libraries(kio_nfs   ${KDE4_KIO_LIBS})
>> > +include_directories(/usr/include/tirpc)
>> > +target_link_libraries(kio_nfs   ${KDE4_KIO_LIBS} tirpc)
>> >
>> >  install(TARGETS kio_nfs  DESTINATION ${PLUGIN_INSTALL_DIR} )
>> > ---------------------------------
>> > but nfs keeps nagging about gethostbyname undefined included lot's of
>> > header files but it won't go away.
>> >
>> > Trying the 4.6 version from the attic next :-).
>> >
>> >
>> > 2012/2/9, wim meest <wim.meest at gmail.com>:
>> >>> Please keep reporting on your progress.
>> >>
>> >> ------------------------
>> >> http://www.linuxfromscratch.org/blfs/view/svn/kde4/kde4pimlibs.html
>> >>
>> http://mirrors.isc.org/pub/kde/stable/4.6.0/src/kdepimlibs-4.6.0.tar.bz2
>> >> not found using:
>> >>
>> http://mirrors.isc.org/pub/kde/stable/4.8.0/src/kdepimlibs-4.8.0.tar.bz2
>> >>
>> >> hmm needs:
>> >>   * gpgme ( or greater or higher)
>> >> <http://www.gnupg.org/related_software/gpgme>
>> >>      GNU Privacy Guard (GPG/PGP) support
>> >>      Necessary to compile many PIM applications, including KMail
>> >>    * Akonadi server libraries (1.5.52 or higher)
>> >> <http://pim.kde.org/akonadi>
>> >>      Access to PIM storage and services
>> >>    * cyrus-sasl  <http://asg.web.cmu.edu/sasl/sasl-library.html>
>> >>      Login authentication for IMAP and Sieve
>> >>
>> >> installed akonadi-1.7.0
>> >> with CMAKE_PREFIX_PATH=$QT4DIR cmake
>> >> -DCMAKE_INSTALL_PREFIX=$KDE4_PREFIX
>> >> \
>> >>               -DBoost_INCLUDE_DIR=/usr/local/boost-1.4.8/include/ ..
>> >> (boost is not found automatically on my system).
>> >>
>> >> -----------------------------------------
>> >> http://www.linuxfromscratch.org/blfs/view/svn/kde4/kde4baseruntime.html
>> >> not found,
>> >> version 4.8.0 not found
>> >> Panic??
>> >>
>> >> -----------------------------------------
>> >> Yep Panic, need some new inspiration :-).
>> >>
>> >
>>
>



More information about the blfs-support mailing list