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

How do i make qt4.6 known to my system?

Tags: None
(comma "," separated)
astroturf
Registered Member
Posts
2
Karma
0
OS
Hello,

i had an idea for an improvement in KPat, so i downloaded the sources and tried to build it. It failed, because it needs Qt4 4.6.0, so a downladed qt4.6 and made ./configure, make and make install. So now i have Qt4.6 installed, but my cmake doesn't know about it...

Simply linking the directory of the old qt includes to the new ones doesn't help, since the moc-files are still created with the old qt version.

I would be really glad for a hint, where i could find a solution to this problem.

Thank you very much!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I have the following script as part of my ~/.bashrc.

Code: Select all
if [ -z "${KDE_ENV_SET}" ]; then                                 
    export KDEDIR="/usr"
    export KDETRUNKDIR="/path/to/where/you/install/kpat" # Change Me!!
    export KDEDIRS="${KDEDIR}:${KDETRUNKDIR}"

    export QTDIR="/path/to/qt/46/install" # Change Me!!
    export QT_PLUGIN_PATH="${KDETRUNKDIR}/lib/kde4/plugins:${KDEDIR}/lib/kde4/plugins"

    export PATH="${KDETRUNKDIR}/bin:${KDEDIR}/bin:${QTDIR}/bin:${PATH}"
    export LD_LIBRARY_PATH="${KDETRUNKDIR}/lib:${KDEDIR}/lib:${QTDIR}/lib"
    export CMAKE_PREFIX_PATH="${KDETRUNKDIR}:${KDEDIR}:${QTDIR}"
    export PKG_CONFIG_PATH="${KDETRUNKDIR}/share/pkgconfig:${KDETRUNKDIR}/lib/pkgconfig:${KDEDIR}/lib/pkgconfig:${KDEDIR}/share/pkgconfig:${QTDIR}/lib/pkgconfig"

    # Set the XDG data path, helps finding plugins, etc
    export XDG_DATA_DIRS="${KDETRUNKDIR}/share:${KDEDIR}/share:${XDG_DATA_DIRS}"

    # Don't accidentally get sourced again.
    export KDE_ENV_SET=1
fi


You need to change the items marked with "# Change Me!!" appropriately, then add it to ~/.bashrc and log out and in again. Note that this will switch you to using Qt 4.6 for all desktop applications which may cause some bugs.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
astroturf
Registered Member
Posts
2
Karma
0
OS
Thank you very much! It works now :)


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]