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

Using two versions of Qt?

Tags: None
(comma "," separated)
warnec
Registered Member
Posts
96
Karma
0

Re: Using two versions of Qt?

Sat Dec 05, 2009 7:30 pm
It's /usr/bin/qmake, and after setting QTDIR, PATH, PKG_CONFIG_PATH and CMAKE_PREFIX_PATH it's /opt/qt46/usr/bin/qmake

NOTE: I made a slight mistake in that Arch Forum thread, since my qt 4.6 root directory is at /opt/qt46/usr (That's a result of a small error I made while installing, and in order to obtain the info you requested I exported QTDIR as it should be, so /opt/qt46/usr) Of course, the compiling process fail to find qt 4.6 even though I set QTDIR as /opt/qt46/usr.
Code: Select all
[warnec@chakra-desktop ~]$ ls /opt/qt46/usr
bin/  include/  lib/  share/               
[warnec@chakra-desktop ~]$ ls /opt/qt46/usr/bin
assistant*      moc*                   qhelpconverter*  uic*
assistant_adp*  pixeltool*             qhelpgenerator*  uic3*
designer*       qcollectiongenerator*  qmake*           xmlpatterns*
lconvert*       qdbus*                 qt3to4*          xmlpatternsvalidator*
linguist*       qdbuscpp2xml*          qtconfig*                             
lrelease*       qdbusviewer*           qttracereplay*                       
lupdate*        qdbusxml2cpp*          rcc*                                 
[warnec@chakra-desktop ~]$ ls /opt/qt46/usr/include
Qt/           QtDBus/      QtMultimedia/  QtScriptTools/  QtUiTools/
Qt3Support/   QtDesigner/  QtNetwork/     QtSql/          QtWebKit/
QtAssistant/  QtGui/       QtOpenGL/      QtSvg/          QtXml/   
QtCore/       QtHelp/      QtScript/      QtTest/         QtXmlPatterns/
[warnec@chakra-desktop ~]$ ls /opt/qt46/usr/lib
pkgconfig/                         libQtNetwork.prl*
qt/                                libQtNetwork.so@
libQt3Support.prl*                 libQtNetwork.so.4@
libQt3Support.so@                  libQtNetwork.so.4.6@
libQt3Support.so.4@                libQtNetwork.so.4.6.0*
libQt3Support.so.4.6@              libQtOpenGL.prl*     
libQt3Support.so.4.6.0*            libQtOpenGL.so@       
libQtAssistantClient.prl*          libQtOpenGL.so.4@     
libQtAssistantClient.so@           libQtOpenGL.so.4.6@   
libQtAssistantClient.so.4@         libQtOpenGL.so.4.6.0*
libQtAssistantClient.so.4.6@       libQtScript.prl*     
libQtAssistantClient.so.4.6.0*     libQtScript.so@       
libQtCLucene.prl*                  libQtScript.so.4@     
libQtCLucene.so@                   libQtScript.so.4.6@   
libQtCLucene.so.4@                 libQtScript.so.4.6.0*
libQtCLucene.so.4.6@               libQtScriptTools.prl*
libQtCLucene.so.4.6.0*             libQtScriptTools.so@ 
libQtCore.prl*                     libQtScriptTools.so.4@
libQtCore.so@                      libQtScriptTools.so.4.6@
libQtCore.so.4@                    libQtScriptTools.so.4.6.0*
libQtCore.so.4.6@                  libQtSql.prl*             
libQtCore.so.4.6.0*                libQtSql.so@             
libQtDBus.prl*                     libQtSql.so.4@           
libQtDBus.so@                      libQtSql.so.4.6@         
libQtDBus.so.4@                    libQtSql.so.4.6.0*       
libQtDBus.so.4.6@                  libQtSvg.prl*             
libQtDBus.so.4.6.0*                libQtSvg.so@             
libQtDesigner.prl*                 libQtSvg.so.4@           
libQtDesigner.so@                  libQtSvg.so.4.6@         
libQtDesigner.so.4@                libQtSvg.so.4.6.0*       
libQtDesigner.so.4.6@              libQtTest.prl*           
libQtDesigner.so.4.6.0*            libQtTest.so@
libQtDesignerComponents.prl*       libQtTest.so.4@
libQtDesignerComponents.so@        libQtTest.so.4.6@
libQtDesignerComponents.so.4@      libQtTest.so.4.6.0*
libQtDesignerComponents.so.4.6@    libQtUiTools.a*
libQtDesignerComponents.so.4.6.0*  libQtUiTools.prl*
libQtGui.prl*                      libQtWebKit.prl*
libQtGui.so@                       libQtWebKit.so@
libQtGui.so.4@                     libQtWebKit.so.4@
libQtGui.so.4.6@                   libQtWebKit.so.4.6@
libQtGui.so.4.6.0*                 libQtWebKit.so.4.6.0*
libQtHelp.prl*                     libQtXml.prl*
libQtHelp.so@                      libQtXml.so@
libQtHelp.so.4@                    libQtXml.so.4@
libQtHelp.so.4.6@                  libQtXml.so.4.6@
libQtHelp.so.4.6.0*                libQtXml.so.4.6.0*
libQtMultimedia.prl*               libQtXmlPatterns.prl*
libQtMultimedia.so@                libQtXmlPatterns.so@
libQtMultimedia.so.4@              libQtXmlPatterns.so.4@
libQtMultimedia.so.4.6@            libQtXmlPatterns.so.4.6@
libQtMultimedia.so.4.6.0*          libQtXmlPatterns.so.4.6.0*
[warnec@chakra-desktop ~]$ ls /opt/qt46/usr/share
applications/  icons/  licenses/  qt/
[warnec@chakra-desktop ~]$
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Using two versions of Qt?

Sat Dec 05, 2009 9:27 pm
Have you set LD_LIBRARY_PATH? It needs to be set to $QTDIR/lib:$LD_LIBRARY_PATH.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
warnec
Registered Member
Posts
96
Karma
0

Re: Using two versions of Qt?

Sat Dec 05, 2009 9:41 pm
I think I did, but I was not sure, so I redid this:
Code: Select all
[warnec@chakra-desktop ~]$ cd arora             
[warnec@chakra-desktop arora]$ export QTDIR=/opt/qt46/usr
[warnec@chakra-desktop arora]$ export PATH=${QTDIR}/bin:${PATH}
[warnec@chakra-desktop arora]$ export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
(I also tried export LD_LIBRARY_PATH=$QTDIR/lib:${LD_LIBRARY_PATH} and export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH} ,the same result.)
[warnec@chakra-desktop arora]$ export CMAKE_PREFIX_PATH=${QTDIR}
[warnec@chakra-desktop arora]$ export PKG_CONFIG_PATH=${QTDIR}/lib/pkgconfig
[warnec@chakra-desktop arora]$ which qmake                                 
/opt/qt46/usr/bin/qmake                                                     
[warnec@chakra-desktop arora]$ qmake "CONFIG-=debug" -r                     
Reading /home/warnec/arora/src/src.pro                                     
Reading /home/warnec/arora/tools/tools.pro                                 
 Reading /home/warnec/arora/tools/cacheinfo/cacheinfo.pro                   
 Reading /home/warnec/arora/tools/htmlToXBel/htmlToXBel.pro                 
 Reading /home/warnec/arora/tools/placesimport/placesimport.pro             
[warnec@chakra-desktop arora]$ make                                         
cd src/ && make -f Makefile                                                 
make[1]: Wejście do katalogu `/home/warnec/arora/src'                       
/usr/bin/lrelease -silent locale/ast.ts -qm .qm/locale/ast.qm               
/usr/bin/lrelease -silent locale/ca.ts -qm .qm/locale/ca.qm                 
/usr/bin/lrelease -silent locale/cs_CZ.ts -qm .qm/locale/cs_CZ.qm           
/usr/bin/lrelease -silent locale/da_DK.ts -qm .qm/locale/da_DK.qm           
/usr/bin/lrelease -silent locale/de_DE.ts -qm .qm/locale/de_DE.qm           
/usr/bin/lrelease -silent locale/el_GR.ts -qm .qm/locale/el_GR.qm           
/usr/bin/lrelease -silent locale/es.ts -qm .qm/locale/es.qm                 
/usr/bin/lrelease -silent locale/es_CR.ts -qm .qm/locale/es_CR.qm           
/usr/bin/lrelease -silent locale/et_EE.ts -qm .qm/locale/et_EE.qm           
/usr/bin/lrelease -silent locale/fi_FI.ts -qm .qm/locale/fi_FI.qm           
/usr/bin/lrelease -silent locale/fr_CA.ts -qm .qm/locale/fr_CA.qm           
/usr/bin/lrelease -silent locale/fr_FR.ts -qm .qm/locale/fr_FR.qm           
/usr/bin/lrelease -silent locale/gl.ts -qm .qm/locale/gl.qm                 
/usr/bin/lrelease -silent locale/he_IL.ts -qm .qm/locale/he_IL.qm           
/usr/bin/lrelease -silent locale/hu_HU.ts -qm .qm/locale/hu_HU.qm           
/usr/bin/lrelease -silent locale/it_IT.ts -qm .qm/locale/it_IT.qm           
/usr/bin/lrelease -silent locale/ja_JP.ts -qm .qm/locale/ja_JP.qm           
/usr/bin/lrelease -silent locale/ms.ts -qm .qm/locale/ms.qm                 
/usr/bin/lrelease -silent locale/nb_NO.ts -qm .qm/locale/nb_NO.qm           
/usr/bin/lrelease -silent locale/nl_NL.ts -qm .qm/locale/nl_NL.qm           
/usr/bin/lrelease -silent locale/pl_PL.ts -qm .qm/locale/pl_PL.qm           
/usr/bin/lrelease -silent locale/pt_PT.ts -qm .qm/locale/pt_PT.qm           
/usr/bin/lrelease -silent locale/pt_BR.ts -qm .qm/locale/pt_BR.qm           
/usr/bin/lrelease -silent locale/ru_RU.ts -qm .qm/locale/ru_RU.qm           
/usr/bin/lrelease -silent locale/sk_SK.ts -qm .qm/locale/sk_SK.qm           
/usr/bin/lrelease -silent locale/sr_RS.ts -qm .qm/locale/sr_RS.qm           
/usr/bin/lrelease -silent locale/sr_RS@latin.ts -qm .qm/locale/sr_RS@latin.qm
/usr/bin/lrelease -silent locale/tr_TR.ts -qm .qm/locale/tr_TR.qm           
/usr/bin/lrelease -silent locale/uk.ts -qm .qm/locale/uk.qm                 
/usr/bin/lrelease -silent locale/zh_CN.ts -qm .qm/locale/zh_CN.qm           
/usr/bin/lrelease -silent locale/zh_TW.ts -qm .qm/locale/zh_TW.qm           
/usr/bin/uic aboutdialog.ui -o .ui/ui_aboutdialog.h                         
/usr/bin/uic autofilldialog.ui -o .ui/ui_autofilldialog.h                   
/usr/bin/uic acceptlanguagedialog.ui -o .ui/ui_acceptlanguagedialog.h       
/usr/bin/uic downloaditem.ui -o .ui/ui_downloaditem.h                       
/usr/bin/uic downloads.ui -o .ui/ui_downloads.h                             
/usr/bin/uic searchbanner.ui -o .ui/ui_searchbanner.h                       
/usr/bin/uic settings.ui -o .ui/ui_settings.h                               
/usr/bin/uic adblock/adblockdialog.ui -o .ui/ui_adblockdialog.h             
/usr/bin/uic bookmarks/addbookmarkdialog.ui -o .ui/ui_addbookmarkdialog.h   
/usr/bin/uic bookmarks/bookmarksdialog.ui -o .ui/ui_bookmarksdialog.h       
/usr/bin/uic history/history.ui -o .ui/ui_history.h                         
/usr/bin/uic network/passworddialog.ui -o .ui/ui_passworddialog.h
/usr/bin/uic network/proxy.ui -o .ui/ui_proxy.h
/usr/bin/uic network/cookiejar/cookies.ui -o .ui/ui_cookies.h
/usr/bin/uic network/cookiejar/cookiesexceptions.ui -o .ui/ui_cookiesexceptions.h
/usr/bin/uic opensearch/opensearchdialog.ui -o .ui/ui_opensearchdialog.h
/usr/bin/uic qwebplugins/clicktoflash/clicktoflash.ui -o .ui/ui_clicktoflash.h
/usr/bin/uic qwebplugins/clicktoflash/clicktoflashsettings.ui -o .ui/ui_clicktoflashsettings.h
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_STRICT_ITERATORS -DQT_NO_UITOOLS -DGITVERSION="\"f67f163\"" -DGITCHANGENUMBER="\"1359\"" -DDATADIR=\"[b]/usr/local/share\[/b]" -DPKGDATADIR=\"/usr/local/share/arora\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I[b]/usr/share/qt/mkspecs/linux-g++-64[/b] -I. -I[b]/usr/include/QtCore[/b] -I/usr/include/QtNetwork -I[b]/usr/include/QtGui[/b] -I[b]/usr/include/QtScript[/b] -I[b]/usr/include/QtWebKit[/b] -I/usr/include -I. -Iadblock -Ibookmarks -Ibookmarks/xbel -Ihistory -Ilocationbar -Inetwork -Inetwork/cookiejar -Inetwork/cookiejar/networkcookiejar -Iopensearch -Iqwebplugins -Iqwebplugins/clicktoflash -Iutils -Ilocale -I.moc -I.ui -o .obj/aboutdialog.o aboutdialog.cpp
--------------------I made a Ctrl+C interrruption---------------------
^Cmake[1]: *** Kasuję plik `.obj/aboutdialog.o'
make[1]: *** [.obj/aboutdialog.o] Przerwanie
make: *** [sub-src-make_default-ordered] Przerwanie

[warnec@chakra-desktop arora]$

As you can see, still fails.
warnec
Registered Member
Posts
96
Karma
0

Re: Using two versions of Qt?

Sat Dec 05, 2009 9:51 pm
Just so You make sure everything is allright:
Code: Select all
[warnec@chakra-desktop arora-bak]$ export QTDIR=/opt/qt46/usr
[warnec@chakra-desktop arora-bak]$ export PATH=${QTDIR}/bin:${PATH}
[warnec@chakra-desktop arora-bak]$ export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}
[warnec@chakra-desktop arora-bak]$ export CMAKE_PREFIX_PATH=${QTDIR}
[warnec@chakra-desktop arora-bak]$ export PKG_CONFIG_PATH=${QTDIR}/lib/pkgconfig
[warnec@chakra-desktop arora-bak]$ echo $QTDIR
/opt/qt46/usr
[warnec@chakra-desktop arora-bak]$ echo $PATH
/opt/qt46/usr/bin:/opt/qt46/usr/bin:/opt/qt46/usr/bin:/opt/qt46/usr/bin:/opt/qt46/usr/bin:/opt/wine/bin:/bin:/usr/bin:/sbin:/usr/sbin:/opt/java/jre/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core
[warnec@chakra-desktop arora-bak]$ echo $LD_LIBRARY_PATH
/opt/qt46/usr/lib:/opt/qt46/usr/lib:/opt/qt46/usr/lib:/opt/qt46/usr/lib:/opt/qt46/usr/lib
[warnec@chakra-desktop arora-bak]$ echo $CMAKE_PREFIX_PATH
/opt/qt46/usr
[warnec@chakra-desktop arora-bak]$ echo $PKG_CONFIG_PATH
/opt/qt46/usr/lib/pkgconfig
[warnec@chakra-desktop arora-bak]$

I believe that's how it should work, but it apparently doesn't.

PS.: I also tried that this qt I have might be some sort of 'non-working', but I tried launching a few execs from /opt/qt46/usr/bin, and linguist and qtconfig work just fine. Of course qtconfig says "This program is using qt version 4.6.0".
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Using two versions of Qt?

Sun Dec 06, 2009 8:30 am
That is very weird. Is there any change if you call QMake by its fully qualified path? ie. /opt/qt46/usr/bin/qmake


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
warnec
Registered Member
Posts
96
Karma
0

Re: Using two versions of Qt?

Sun Dec 06, 2009 9:52 am
Still doesn't work.
Code: Select all
[warnec@chakra-desktop arora-bak]$ export QTDIR=/opt/qt46/usr
[warnec@chakra-desktop arora-bak]$ export PATH=${QTDIR}/bin:${PATH}
[warnec@chakra-desktop arora-bak]$ export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}                                                                         
[warnec@chakra-desktop arora-bak]$ export CMAKE_PREFIX_PATH=${QTDIR}             
[warnec@chakra-desktop arora-bak]$ export PKG_CONFIG_PATH=${QTDIR}/lib/pkgconfig
[warnec@chakra-desktop arora-bak]$ /opt/qt46/usr/bin/qmake "CONFIG-=debug" -r   
Reading /home/warnec/arora-bak/src/src.pro                                       
Reading /home/warnec/arora-bak/tools/tools.pro                                   
 Reading /home/warnec/arora-bak/tools/cacheinfo/cacheinfo.pro                   
 Reading /home/warnec/arora-bak/tools/htmlToXBel/htmlToXBel.pro                 
 Reading /home/warnec/arora-bak/tools/placesimport/placesimport.pro             
[warnec@chakra-desktop arora-bak]$ make                                         
cd src/ && make -f Makefile                                                     
make[1]: Wejście do katalogu `/home/warnec/arora-bak/src'                       
(...)
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_STRICT_ITERATORS -DQT_NO_UITOOLS -DGITVERSION="\"f67f163\"" -DGITCHANGENUMBER="\"1359\"" -DDATADIR=\"/usr/local/share\" -DPKGDATADIR=\"/usr/local/share/arora\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtScript -I/usr/include/QtWebKit -I/usr/include -I. -Iadblock -Ibookmarks -Ibookmarks/xbel -Ihistory -Ilocationbar -Inetwork -Inetwork/cookiejar -Inetwork/cookiejar/networkcookiejar -Iopensearch -Iqwebplugins -Iqwebplugins/clicktoflash -Iutils -Ilocale -I.moc -I.ui -o .obj/aboutdialog.o aboutdialog.cpp
^Cmake[1]: *** Kasuję plik `.obj/aboutdialog.o'
make[1]: *** [.obj/aboutdialog.o] Przerwanie
make: *** [sub-src-make_default-ordered] Przerwanie

[warnec@chakra-desktop arora-bak]$
warnec
Registered Member
Posts
96
Karma
0

Re: Using two versions of Qt?

Sun Dec 06, 2009 10:07 am
PS.: I don't see any need to set LD_LIBRARY_PATH like this:
Code: Select all
export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}

because in normal state, when a normal Konsole is called, LD_LIBARY_PATH is just blank.
Code: Select all
[warnec@chakra-desktop ~]$ echo $LD_LIBRARY_PATH


I reckon using the colon while setting the environment variable is only needed when you want to append the new value to the previous ones, no? (And not overwrite them)

PPS.: How about completely replacing the $PATH (instead of adding it to current /usr/bin and so) and simply symlinking the required binaries (like make, sh) from /usr/bin to /opt/qt46/usr/bin ?
warnec
Registered Member
Posts
96
Karma
0

Re: Using two versions of Qt?

Sun Dec 06, 2009 10:14 am
I also tried like this, still fail.
Code: Select all
[warnec@chakra-desktop arora-bak]$ PATH=/opt/qt46/usr/bin:${PATH} LD_LIBRARY_PATH=/opt/qt46/usr CMAKE_PREFIX_PATH=/opt/qt46/usr PKG_CONFIG_PATH=/opt/qt46/usr/lib/pkgconfig /opt/qt46/usr/bin/qmake -r                                         
Reading /home/warnec/arora-bak/src/src.pro                                     
Reading /home/warnec/arora-bak/tools/tools.pro                                 
 Reading /home/warnec/arora-bak/tools/cacheinfo/cacheinfo.pro                   
 Reading /home/warnec/arora-bak/tools/htmlToXBel/htmlToXBel.pro                 
 Reading /home/warnec/arora-bak/tools/placesimport/placesimport.pro             
[warnec@chakra-desktop arora-bak]$ PATH=/opt/qt46/usr/bin:${PATH} LD_LIBRARY_PATH=/opt/qt46/usr CMAKE_PREFIX_PATH=/opt/qt46/usr PKG_CONFIG_PATH=/opt/qt46/usr/lib/pkgconfig make
cd src/ && make -f Makefile
make[1]: Wejście do katalogu `/home/warnec/arora-bak/src'     
(...)
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_STRICT_ITERATORS -DQT_NO_UITOOLS -DGITVERSION="\"f67f163\"" -DGITCHANGENUMBER="\"1359\"" -DDATADIR=\"/usr/local/share\" -DPKGDATADIR=\"/usr/local/share/arora\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtScript -I/usr/include/QtWebKit -I/usr/include -I. -Iadblock -Ibookmarks -Ibookmarks/xbel -Ihistory -Ilocationbar -Inetwork -Inetwork/cookiejar -Inetwork/cookiejar/networkcookiejar -Iopensearch -Iqwebplugins -Iqwebplugins/clicktoflash -Iutils -Ilocale -I.moc -I.ui -o .obj/aboutdialog.o aboutdialog.cpp
^Cmake[1]: *** wait: Brak procesów potomnych. Stop.
make[1]: *** Oczekiwanie na niezakończone zadania....
make[1]: *** wait: Brak procesów potomnych. Stop.
make: *** [sub-src-make_default-ordered] Błąd 2

[warnec@chakra-desktop arora-bak]$
warnec
Registered Member
Posts
96
Karma
0

Re: Using two versions of Qt?

Sun Dec 06, 2009 12:50 pm
WOW! IT WORKED! It looks like all the previous times when it failed it was simply because of:

1) Typos

2) Repeating the compile process over and over again in the same Terminal session, which caused things like:
Code: Select all
echo $LD_LIBRARY_PATH
/opt/qt46/usr/lib:/opt/qt46/usr/lib:/opt/qt46/usr/lib:/opt/qt46/usr/lib:/opt/qt46/usr/lib


Ok, so step by step what I did:
Code: Select all
Start new Konsole
export QTDIR=/opt/qt46/usr
export PATH=${QTDIR}/bin:${PATH}
export LD_LIBRARY_PATH=${QTDIR}/lib
export CMAKE_PREFIX_PATH=${QTDIR}
export PKG_CONFIG_PATH=${QTDIR}/lib/pkgconfig
-------------Just to check if everything is alright---------
[warnec@chakra-desktop ~]$ echo $QTDIR                                         
/opt/qt46/usr   
------
[warnec@chakra-desktop ~]$ echo $PATH                                           
/opt/qt46/usr/bin:/opt/wine/bin:/bin:/usr/bin:/sbin:/usr/sbin:/opt/java/jre/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core     
------
[warnec@chakra-desktop ~]$ echo $LD_LIBRARY_PATH                               
/opt/qt46/usr/lib                           
------ 
[warnec@chakra-desktop ~]$ echo $CMAKE_PREFIX_PATH                             
/opt/qt46/usr             
------
[warnec@chakra-desktop ~]$ echo $PKG_CONFIG_PATH                               
/opt/qt46/usr/lib/pkgconfig
---------------End of checking-------------------
git clone git://github.com/Arora/arora.git
cd arora
/opt/qt46/usr/bin/qmake -r
make
sudo make install
./arora

I did have parts like "/usr/include/QtNetwork -I/usr/include/QtGui" in the compiling output, and I just thought it failed once again, but I decided to let it compile anyway to see the "About Qt" dialog in Arora after it compiled.
To my astonishment, after I ran it with "./arora" and clicked the "About Qt" dialog, it said "This program uses Qt version 4.6.0"

Success!

UPDATE
I've no idea what's going on, I must be delusional...
I rebooted my PC, did
Code: Select all
cd arora
./arora

UPDATE 2
Looks like the reporting of Arora whether it uses 4.6.0 or 4.5.3 depends on the environment variables. The second I set all the variables to /opt/qt46/usr in Konsole and launched Arora, it told me it's 4.6.0. Now I don't understand any of this. So is it 4.5.3 ot 4.6.0?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Using two versions of Qt?

Sun Dec 06, 2009 11:24 pm
Qt has something called binary compatibility, which means that Qt 4.2 applications will still run with Qt 4.6 libraries. By exporting LD_LIBRARY_PATH you are telling the application loader ( ld.so ) to look there first then in the paths specified to find the needed libraries for Arora to function.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
warnec
Registered Member
Posts
96
Karma
0

Re: Using two versions of Qt?

Mon Dec 07, 2009 5:42 pm
So, you mean it is only using qt 4.6, and wasn't compiled with 4.6? I didn't know it made a difference.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Using two versions of Qt?

Tue Dec 08, 2009 5:09 am
That is certainly what it seems is happening. Although without seeing the output of the compiler it isn't possible to tell.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
warnec
Registered Member
Posts
96
Karma
0

Re: Using two versions of Qt?

Tue Dec 08, 2009 1:51 pm
As you can see, in my previous post I said:
Code: Select all
I did have parts like "/usr/include/QtNetwork -I/usr/include/QtGui" in the compiling output, and I just thought it failed once again, but I decided to let it compile anyway to see the "About Qt" dialog in Arora after it compiled.
To my astonishment, after I ran it with "./arora" and clicked the "About Qt" dialog, it said "This program uses Qt version 4.6.0"


So looks like still wasn't compiled using 4.6.0

I honestly have no idea what is happening. If You don't have any as well, I think I'll simply wait for Februrary (until KDE 4.4 w/qt 4.6 comes)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Using two versions of Qt?

Wed Dec 09, 2009 3:06 am
It doesn't make much of a difference if a different version was used for compiling anyway, the important part is the version it is currently running with.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
warnec
Registered Member
Posts
96
Karma
0


Bookmarks



Who is online

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