This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Can not run akregator built from source

Tags: None
(comma "," separated)
herophuong
Registered Member
Posts
25
Karma
0
OS
I want to fix some bugs for akregator so I decided to get all akonadi, kdepimlibs, kdepim and kdepim-runtime from git and then build all of them. On start up, akregator complains that it can not find akregatorpart, though all the libs are in their correct position because ldd command doesn't complain about anything:
Code: Select all
        linux-vdso.so.1 =>  (0x00007ffff8328000)
        libkparts.so.4 => /usr/lib/libkparts.so.4 (0x00007f2bed73a000)
        libkontactinterface.so.4 => /home/herop-kde/devel/install/master/lib/libkontactinterface.so.4 (0x00007f2bed51c000)
        libkdepim.so.4 => /home/herop-kde/devel/install/master/lib64/libkdepim.so.4 (0x00007f2bed23b000)
        libakregatorprivate.so.4 => /home/herop-kde/devel/install/master/lib64/libakregatorprivate.so.4 (0x00007f2becfaf000)
        libakregatorinterfaces.so.4 => /home/herop-kde/devel/install/master/lib64/libakregatorinterfaces.so.4 (0x00007f2becd9f000)
        libkdeui.so.5 => /usr/lib/libkdeui.so.5 (0x00007f2bec735000)
        libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (0x00007f2beba67000)
        libkdecore.so.5 => /usr/lib/libkdecore.so.5 (0x00007f2beb594000)
        libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (0x00007f2beb0c1000)
        libQtDBus.so.4 => /usr/lib/x86_64-linux-gnu/libQtDBus.so.4 (0x00007f2beae44000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f2beab44000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2bea92d000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2bea570000)
        libkio.so.5 => /usr/lib/libkio.so.5 (0x00007f2bea0ba000)
        libnepomuk.so.4 => /usr/lib/libnepomuk.so.4 (0x00007f2be9ddf000)
        libnepomukutils.so.4 => /usr/lib/libnepomukutils.so.4 (0x00007f2be9ba4000)
        libQtXml.so.4 => /usr/lib/x86_64-linux-gnu/libQtXml.so.4 (0x00007f2be9961000)
        libkabc.so.4 => /home/herop-kde/devel/install/master/lib/libkabc.so.4 (0x00007f2be96a8000)
        libkpimutils.so.4 => /home/herop-kde/devel/install/master/lib/libkpimutils.so.4 (0x00007f2be948c000)
        libkldap.so.4 => /home/herop-kde/devel/install/master/lib/libkldap.so.4 (0x00007f2be9247000)
        libkcmutils.so.4 => /usr/lib/libkcmutils.so.4 (0x00007f2be9006000)
        libsolid.so.4 => /usr/lib/libsolid.so.4 (0x00007f2be8d0f000)
        libkmime.so.4 => /home/herop-kde/devel/install/master/lib/libkmime.so.4 (0x00007f2be8a80000)
        libakonadi-kde.so.4 => /home/herop-kde/devel/install/master/lib/libakonadi-kde.so.4 (0x00007f2be85b1000)
        libakonadi-contact.so.4 => /home/herop-kde/devel/install/master/lib/libakonadi-contact.so.4 (0x00007f2be829a000)
        libnepomukquery.so.4 => /usr/lib/libnepomukquery.so.4 (0x00007f2be8051000)
        libsoprano.so.4 => /usr/lib/libsoprano.so.4 (0x00007f2be7d5c000)
        libkhtml.so.5 => /usr/lib/libkhtml.so.5 (0x00007f2be73db000)
        libsyndication.so.4 => /home/herop-kde/devel/install/master/lib/libsyndication.so.4 (0x00007f2be711f000)
        libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f2be6f17000)
        libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f2be6cfc000)
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f2be69c8000)
        libattica.so.0.3 => /usr/lib/libattica.so.0.3 (0x00007f2be66da000)
        libQtNetwork.so.4 => /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4 (0x00007f2be638d000)
        libQtSvg.so.4 => /usr/lib/x86_64-linux-gnu/libQtSvg.so.4 (0x00007f2be6135000)
        libdbusmenu-qt.so.2 => /usr/lib/x86_64-linux-gnu/libdbusmenu-qt.so.2 (0x00007f2be5f01000)
        libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f2be5cf6000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2be59fc000)
        libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f2be57c6000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2be55a8000)
        libaudio.so.2 => /usr/lib/x86_64-linux-gnu/libaudio.so.2 (0x00007f2be5390000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f2be509b000)
        libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f2be4e72000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2be4c5b000)
        libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f2be49bf000)
        libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f2be476f000)
        libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f2be4560000)
        libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f2be434f000)
        libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f2be413e000)
        liblzma.so.5 => /usr/lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f2be3f1c000)
        libdlrestrictions.so.1 => /usr/lib/libdlrestrictions.so.1 (0x00007f2be3d18000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2be3b13000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2be390b000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f2bed9bb000)
        libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f2be36c7000)
        libstreamanalyzer.so.0 => /usr/lib/libstreamanalyzer.so.0 (0x00007f2be3448000)
        libacl.so.1 => /lib/x86_64-linux-gnu/libacl.so.1 (0x00007f2be3240000)
        libattr.so.1 => /lib/x86_64-linux-gnu/libattr.so.1 (0x00007f2be303b000)
        libsopranoclient.so.1 => /usr/lib/libsopranoclient.so.1 (0x00007f2be2de9000)
        libkresources.so.4 => /home/herop-kde/devel/install/master/lib/libkresources.so.4 (0x00007f2be2bb9000)
        libkemoticons.so.4 => /usr/lib/libkemoticons.so.4 (0x00007f2be29a8000)
        libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f2be2759000)
        liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f2be254b000)
        libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f2be232f000)
        libudev.so.0 => /lib/x86_64-linux-gnu/libudev.so.0 (0x00007f2be2122000)
        libQtSql.so.4 => /usr/lib/x86_64-linux-gnu/libQtSql.so.4 (0x00007f2be1ee2000)
        libakonadiprotocolinternals.so.1 => /home/herop-kde/devel/install/master/lib/libakonadiprotocolinternals.so.1 (0x00007f2be1cb4000)
        libkcalcore.so.4 => /home/herop-kde/devel/install/master/lib/libkcalcore.so.4 (0x00007f2be19c8000)
        libprison.so.0 => /usr/lib/x86_64-linux-gnu/libprison.so.0 (0x00007f2be17bf000)
        libphonon.so.4 => /usr/lib/x86_64-linux-gnu/libphonon.so.4 (0x00007f2be154f000)
        libktexteditor.so.4 => /usr/lib/libktexteditor.so.4 (0x00007f2be130e000)
        libkjs.so.4 => /usr/lib/libkjs.so.4 (0x00007f2be103f000)
        libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f2be0df0000)
        libgif.so.4 => /usr/lib/x86_64-linux-gnu/libgif.so.4 (0x00007f2be0be6000)
        libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f2be09e1000)
        libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f2be07c2000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f2be0598000)
        libXt.so.6 => /usr/lib/x86_64-linux-gnu/libXt.so.6 (0x00007f2be0331000)
        libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f2be012e000)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f2bdfef1000)
        libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f2bdfce8000)
        libstreams.so.0 => /usr/lib/libstreams.so.0 (0x00007f2bdfab1000)
        libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f2bdf755000)
        libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f2bdf539000)
        libgssapi.so.3 => /usr/lib/x86_64-linux-gnu/libgssapi.so.3 (0x00007f2bdf2fa000)
        libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 (0x00007f2bdf03e000)
        libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007f2bdedc0000)
        libical.so.0 => /usr/lib/libical.so.0 (0x00007f2bdeb65000)
        libicalss.so.0 => /usr/lib/libicalss.so.0 (0x00007f2bde94d000)
        libdmtx.so.0 => /usr/lib/libdmtx.so.0 (0x00007f2bde73a000)
        libqrencode.so.3 => /usr/lib/libqrencode.so.3 (0x00007f2bde52f000)
        libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f2bde2e7000)
        libpulse-mainloop-glib.so.0 => /usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0 (0x00007f2bde0e2000)
        libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f2bddedb000)
        libheimntlm.so.0 => /usr/lib/x86_64-linux-gnu/libheimntlm.so.0 (0x00007f2bddcd4000)
        libkrb5.so.26 => /usr/lib/x86_64-linux-gnu/libkrb5.so.26 (0x00007f2bdda4d000)
        libasn1.so.8 => /usr/lib/x86_64-linux-gnu/libasn1.so.8 (0x00007f2bdd7ad000)
        libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f2bdd5a9000)
        libhcrypto.so.4 => /usr/lib/x86_64-linux-gnu/libhcrypto.so.4 (0x00007f2bdd374000)
        libroken.so.18 => /usr/lib/x86_64-linux-gnu/libroken.so.18 (0x00007f2bdd15f000)
        libtasn1.so.3 => /usr/lib/x86_64-linux-gnu/libtasn1.so.3 (0x00007f2bdcf4e000)
        libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f2bdcd3b000)
        libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f2bdcb37000)
        libjson.so.0 => /usr/lib/x86_64-linux-gnu/libjson.so.0 (0x00007f2bdc92e000)
        libpulsecommon-1.1.so => /usr/lib/x86_64-linux-gnu/libpulsecommon-1.1.so (0x00007f2bdc6d0000)
        libwind.so.0 => /usr/lib/x86_64-linux-gnu/libwind.so.0 (0x00007f2bdc4a6000)
        libheimbase.so.1 => /usr/lib/x86_64-linux-gnu/libheimbase.so.1 (0x00007f2bdc297000)
        libhx509.so.5 => /usr/lib/x86_64-linux-gnu/libhx509.so.5 (0x00007f2bdc04d000)
        libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f2bdbdaa000)
        libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f2bdbb70000)
        libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f2bdb967000)
        libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f2bdb6ff000)
        libasyncns.so.0 => /usr/lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f2bdb4f9000)
        libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f2bdb2de000)
        libFLAC.so.8 => /usr/lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f2bdb094000)
        libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f2bdabc5000)
        libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f2bda998000)
        libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007f2bda791000)

I'm really need help from the dev here. This is the first time I get in this situation so I have no idea what to do.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
First, Welcome to KDE development.
In order to allow Akregator to work in this case, you need to change a few KDE environment variables.
The environment variables to change are: PATH, LD_LIBRARY_PATH and KDEDIRS.

If you source the below commands before attempting to build and run Akregator, you should be fine.
Code: Select all
export PATH=/path/to/where/you/install/kdepim-akregator-etc/bin:$PATH
export LD_LIBRARY_PATH=/path/to/where/you/install/kdepim-akregator-etc/lib/:$LD_LIBRARY_PATH
export KDEDIRS=/path/to/where/you/install/kdepim-akregator-etc/:$(kde4-config --prefix)


If it still cannot find the akregatorpart, try running "kbuildsycoca4" after changing KDEDIRS. You may wish to place these environment variables in a script in ~/.kde4/env (or ~/.kde/env/ depending on your distribution). This script must have a *.sh ending, and be executable for that to work however.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
herophuong
Registered Member
Posts
25
Karma
0
OS
Thanks for replying me.
I already have a file kde-devel-env:
Code: Select all
KDE_DEVELOPMENT_PATH=~/devel/install
export PATH=$KDE_DEVELOPMENT_PATH/bin:$PATH
export LD_LIBRARY_PATH=$KDE_DEVELOPMENT_PATH/lib/kde4:$LD_LIBRARY_PATH
export KDEDIR=$KDE_DEVELOPMENT_PATH
export KDEDIRS=$KDE_DEVELOPMENT_PATH:$(kde4-config --prefix)
export KDEHOME=~/devel/kdehome # Configuration settings end up here
export KDETMP=/tmp/kde-git-$USER
export KDEVARTMP=/var/tmp/kde-git-$USER
export CMAKE_PREFIX_PATH=$KDEDIR:$CMAKE_PREFIX_PATH
export CMAKE_LIBRARY_PATH=$KDEDIR/lib:$CMAKE_LIBRARY_PATH
export CMAKE_INCLUDE_PATH=$KDEDIR/include:$CMAKE_INCLUDE_PATH
mkdir -p $KDETMP
mkdir -p $KDEVARTMP
kbuildsycoca4

Before building kdepim, I've already excuted this command:
Code: Select all
source kde-devel-env

Is there anything else can cause the problem I'm facing?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Are you launching Akregator from the same terminal used to build kdepim?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
herophuong
Registered Member
Posts
25
Karma
0
OS
bcooksley wrote:Are you launching Akregator from the same terminal used to build kdepim?

Yes. Also running it by clicking on it in the /bin directory doesn't make any different.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Hmm.... It could be a kdeinit4 based application.
Try running "kdeinit4" after kbuildsycoca4, and see if that works.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
herophuong
Registered Member
Posts
25
Karma
0
OS
bcooksley wrote:Hmm.... It could be a kdeinit4 based application.
Try running "kdeinit4" after kbuildsycoca4, and see if that works.

There are errors when running kdeinit4:
Code: Select all
klauncher(28586) kdemain: Waiting for already running klauncher to exit.
klauncher(28586) kdemain: Waiting for already running klauncher to exit.
klauncher(28586) kdemain: Another instance of klauncher is already running!
kdeinit4: Communication error with launcher. Exiting!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Not sure why those error messages would occur. Messages of that kind likely cause problems for kbuildsycoca4 too as well.
Can you try disabling the KDETMP line in your development environment script?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
herophuong
Registered Member
Posts
25
Karma
0
OS
Forgot to thank you. Really nice of you taking your time to help me.

bcooksley wrote:Not sure why those error messages would occur. Messages of that kind likely cause problems for kbuildsycoca4 too as well.

kbuildsycoca4 runs fine without any problem. :-?

Can you try disabling the KDETMP line in your development environment script?

Do I need to rebuild after that?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
No rebuild is required, it is just an environment option change.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
herophuong
Registered Member
Posts
25
Karma
0
OS
bcooksley wrote:No rebuild is required, it is just an environment option change.


Still no different after re-source the file.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Hmm... weird.

Can you try unsetting both the KDEVARTMP and KDETMP variables please?
Note you will need to start a new shell - sourcing the script again won't fix it.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
herophuong
Registered Member
Posts
25
Karma
0
OS
I've comment out those TMP line, logged out then logged in, re-sourced it but the problem still persists. :'(
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Ok, the failure of the kdeinit4 command indicates something unusual is happening. This is probably linked to the failure of Akregator.

Do you have KDE PIM applications installed from distribution packages?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
herophuong
Registered Member
Posts
25
Karma
0
OS
I have uninstalled akregator (ubuntu version) before built it from source to avoid it linking to the old version. Strange thing is: If I keep the ubuntu-distributed version, akregator will use that akregatorpart instead of the part built from source, although ldd command has shown the right linking (seen the first post).


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]