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

[SOLVED] "Cannot mix incompatible Qt libraries" with KDE-svn

Tags: None
(comma "," separated)
bruno
KDE Developer
Posts
40
Karma
0
OS
(k)Ubuntu 8.10 intrepid
KDE 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2))

I successfully build kdesvn with kdesvn-build.

I overwritten ~/.bashrc with the one at http://techbase.kde.org/Getting_Started ... ts/.bashrc

The next time I logged in, I was in trunk, with the new wallpaper.

If I try to run Firefox (which is working fine with beta 2), it say "Cannot mix incompatible Qt libraries". I was told it was because I have more than one Qt and should remove one.

If I remove libqt, apt-get will remove alot of package depending on it. What should I do if I want to run Firefox with kdesvn and still being able to use beta 2 ?

thanks

Last edited by bruno on Mon Jan 12, 2009 3:18 am, edited 1 time in total.


bruno, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You could try setting LD_LIBRARY_PATH to blank like so in a terminal:
Code: Select all
export LD_LIBRARY_PATH=""
firefox &


which should make it so that only your system Qt is found.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
bruno
KDE Developer
Posts
40
Karma
0
OS
Thanks! but it didn't work:

Code: Select all
bruno@bruno-laptop:~$ export LD_LIBRARY_PATH=""
bruno@bruno-laptop:~$ firefox
Cannot mix incompatible Qt libraries
Abandon
bruno@bruno-laptop:~$


bruno, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
lets try this instead:
Code: Select all
export QTDIR=""
export LD_LIBRARY_PATH=""
export QT_PLUGIN_PATH=""
export KDEDIRS=""
export KDEDIR=""
firefox &


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
bruno
KDE Developer
Posts
40
Karma
0
OS
:-(

Code: Select all
bruno@bruno-laptop:~$ export QTDIR=""
bruno@bruno-laptop:~$ export LD_LIBRARY_PATH=""
bruno@bruno-laptop:~$ export QT_PLUGIN_PATH=""
bruno@bruno-laptop:~$ export KDEDIRS=""
bruno@bruno-laptop:~$ export KDEDIR=""
bruno@bruno-laptop:~$ firefox
Cannot mix incompatible Qt libraries
Abandon
bruno@bruno-laptop:~$
[hr]
I found the problem, qtdir was not set properly because it's not the same path in the kdesvn-buildrc-sample and the .bashrc script. I should have seen that.

Now Firefox run fine.

Sorry for the noise, and thanks for the help.

kdesvn-buildrc-sample
Code: Select all
# This is the Qt installation to use to build KDE.  The default is qt-copy
# from Subversion.  The ${build-dir} option uses whatever you set for
# build-dir to automatically fill in the value.
# For qt-copy users, this is also the directory to install qt-copy to.
# KDE 4.0 may require qt-copy at times instead of a released Qt so it is
# better to use qt-copy for /trunk users.
        qtdir ~/qt4  # Default to installing Qt (Qt 4).
#       qtdir ${build-dir}/build/qt-copy # Use built Qt (Qt 3).


http://techbase.kde.org/Getting_Started ... ts/.bashrc
Code: Select all
# Qt
# only set Qt related variables if you compiled Qt on your own
# (which is discouraged). if you use the distro provided Qt, skip
# this section. Comment it if necessary.
export QTDIR=$HOME/qt-copy
prepend PATH $QTDIR/bin
prepend LD_LIBRARY_PATH $QTDIR/lib
prepend PKG_CONFIG_PATH $QTDIR/lib/pkgconfig

Last edited by bruno on Mon Jan 12, 2009 3:17 am, edited 1 time in total.


bruno, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
No problem, and thanks for marking the thread solved.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]