Results 1 to 3 of 3

Thread: Install 2 versions of QT in Ubuntu

  1. #1
    Join Date
    Jun 2010
    Posts
    100
    Thanks
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Install 2 versions of QT in Ubuntu

    Hi all!

    Currently I have qt4.6 on my ubuntu 10.4 64bits but I also need to install the 4.5.2. I copied the include folder from another laptop but I don't know what to do to the qmake and so. How can I install 2 version of the qmake and switch installations?

    thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Install 2 versions of QT in Ubuntu

    Download the sources of 4.5.2, call configure --help and have a look at the option prefix. Build and install and then either call qmake form 4.6 or 4.5.2. If you need to run the app alter QT variable and make sure ld can find both libraries.

  3. #3
    Join Date
    Jun 2010
    Posts
    100
    Thanks
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Install 2 versions of QT in Ubuntu

    Quote Originally Posted by Lykurg View Post
    Download the sources of 4.5.2, call configure --help and have a look at the option prefix. Build and install and then either call qmake form 4.6 or 4.5.2. If you need to run the app alter QT variable and make sure ld can find both libraries.
    I created a folder /qt/qt4.5 and copied the qt-x11-opensource-src-4.5.2 folder there.

    the I successfully ran the ./configure -prefix-install but when I ran the make I got this:

    itadmin@espLPT09:/qt/qt4.5$ make
    cd src/tools/bootstrap/ && make -f Makefile
    make[1]: Entering directory `/qt/qt4.5/src/tools/bootstrap'
    g++ -c -m64 -pipe -g -O2 -fPIC -Wall -W -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/linux-g++-64 -I. -I../../../include -I../../../include/QtCore -I../../../include/QtXml -I../../3rdparty/zlib -o .obj/release-static/qisciicodec.o ../../corelib/codecs/qisciicodec.cpp
    In file included from ../../../include/QtCore/qglobal.h:1,
    from ../../../include/QtCore/../../src/corelib/tools/qchar.h:45,
    from ../../../include/QtCore/qchar.h:1,
    from ../../../include/QtCore/../../src/corelib/tools/qstring.h:45,
    from ../../../include/QtCore/qstring.h:1,
    from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:45,
    from ../../../include/QtCore/qtextcodec.h:1,
    from ../../corelib/codecs/qisciicodec_p.h:56,
    from ../../corelib/codecs/qisciicodec.cpp:42:
    ../../../include/QtCore/../../src/corelib/global/qglobal.h:62:28: error: QtCore/qconfig.h: No such file or directory
    ../../../include/QtCore/../../src/corelib/global/qglobal.h:1296:4: error: #error "Qt not configured correctly, please run configure"
    ../../../include/QtCore/../../src/corelib/global/qglobal.h:2281:6: error: #error "Qt not configured correctly, please run configure"
    In file included from ../../../include/QtCore/qchar.h:1,
    from ../../../include/QtCore/../../src/corelib/tools/qstring.h:45,
    from ../../../include/QtCore/qstring.h:1,
    from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:45,
    from ../../../include/QtCore/qtextcodec.h:1,
    from ../../corelib/codecs/qisciicodec_p.h:56,
    from ../../corelib/codecs/qisciicodec.cpp:42:
    ../../../include/QtCore/../../src/corelib/tools/qchar.h:51: error: ‘QtValidLicenseForCoreModule’ does not name a type
    In file included from ../../../include/QtCore/qbasicatomic.h:1,
    from ../../../include/QtCore/../../src/corelib/thread/qatomic.h:46,
    from ../../../include/QtCore/qatomic.h:1,
    from ../../../include/QtCore/../../src/corelib/tools/qbytearray.h:46,
    from ../../../include/QtCore/qbytearray.h:1,
    from ../../../include/QtCore/../../src/corelib/tools/qstring.h:46,
    from ../../../include/QtCore/qstring.h:1,
    from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:45,
    from ../../../include/QtCore/qtextcodec.h:1,
    from ../../corelib/codecs/qisciicodec_p.h:56,
    from ../../corelib/codecs/qisciicodec.cpp:42:
    ../../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:51: error: ‘QtValidLicenseForCoreModule’ does not name a type
    In file included from ../../../include/QtCore/qatomic.h:1,
    from ../../../include/QtCore/../../src/corelib/tools/qbytearray.h:46,
    from ../../../include/QtCore/qbytearray.h:1,
    from ../../../include/QtCore/../../src/corelib/tools/qstring.h:46,
    from ../../../include/QtCore/qstring.h:1,
    from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:45,
    from ../../../include/QtCore/qtextcodec.h:1,
    from ../../corelib/codecs/qisciicodec_p.h:56,
    from ../../corelib/codecs/qisciicodec.cpp:42:
    ../../../include/QtCore/../../src/corelib/thread/qatomic.h:52: error: ‘QtValidLicenseForCoreModule’ does not name a type
    In file included from ../../../include/QtCore/qbytearray.h:1,
    from ../../../include/QtCore/../../src/corelib/tools/qstring.h:46,
    from ../../../include/QtCore/qstring.h:1,
    from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:45,
    from ../../../include/QtCore/qtextcodec.h:1,
    from ../../corelib/codecs/qisciicodec_p.h:56,
    from ../../corelib/codecs/qisciicodec.cpp:42:
    ../../../include/QtCore/../../src/corelib/tools/qbytearray.h:59: error: ‘QtValidLicenseForCoreModule’ does not name a type
    In file included from ../../../include/QtCore/qnamespace.h:1,
    from ../../../include/QtCore/../../src/corelib/tools/qstring.h:48,
    from ../../../include/QtCore/qstring.h:1,
    from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:45,
    from ../../../include/QtCore/qtextcodec.h:1,
    from ../../corelib/codecs/qisciicodec_p.h:56,
    from ../../corelib/codecs/qisciicodec.cpp:42:
    ../../../include/QtCore/../../src/corelib/global/qnamespace.h:51: error: ‘QtValidLicenseForCoreModule’ does not name a type
    In file included from ../../../include/QtCore/qstring.h:1,
    from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:45,
    from ../../../include/QtCore/qtextcodec.h:1,
    from ../../corelib/codecs/qisciicodec_p.h:56,
    from ../../corelib/codecs/qisciicodec.cpp:42:
    ../../../include/QtCore/../../src/corelib/tools/qstring.h:80: error: ‘QtValidLicenseForCoreModule’ does not name a type
    In file included from ../../../include/QtCore/qiterator.h:1,
    from ../../../include/QtCore/../../src/corelib/tools/qlist.h:45,
    from ../../../include/QtCore/qlist.h:1,
    from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:46,
    from ../../../include/QtCore/qtextcodec.h:1,
    from ../../corelib/codecs/qisciicodec_p.h:56,
    from ../../corelib/codecs/qisciicodec.cpp:42:
    ../../../include/QtCore/../../src/corelib/tools/qiterator.h:56: error: ‘QtValidLicenseForCoreModule’ does not name a type
    In file included from ../../../include/QtCore/qalgorithms.h:1,
    from ../../../include/QtCore/../../src/corelib/tools/qlist.h:47,
    from ../../../include/QtCore/qlist.h:1,
    from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:46,
    from ../../../include/QtCore/qtextcodec.h:1,
    from ../../corelib/codecs/qisciicodec_p.h:56,
    from ../../corelib/codecs/qisciicodec.cpp:42:
    ../../../include/QtCore/../../src/corelib/tools/qalgorithms.h:51: error: ‘QtValidLicenseForCoreModule’ does not name a type
    In file included from ../../../include/QtCore/qlist.h:1,
    from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:46,
    from ../../../include/QtCore/qtextcodec.h:1,
    from ../../corelib/codecs/qisciicodec_p.h:56,
    from ../../corelib/codecs/qisciicodec.cpp:42:
    ../../../include/QtCore/../../src/corelib/tools/qlist.h:60: error: ‘QtValidLicenseForCoreModule’ does not name a type
    In file included from ../../../include/QtCore/qtextcodec.h:1,
    from ../../corelib/codecs/qisciicodec_p.h:56,
    from ../../corelib/codecs/qisciicodec.cpp:42:
    ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:52: error: ‘QtValidLicenseForCoreModule’ does not name a type
    make[1]: *** [.obj/release-static/qisciicodec.o] Error 1
    make[1]: Leaving directory `/qt/qt4.5/src/tools/bootstrap'
    make: *** [sub-tools-bootstrap-make_default-ordered] Error 2
    do I have to use another folder structure?

    thanks!

Similar Threads

  1. How to install Qt 4.7 from binary on Ubuntu 11.04
    By ibn-tashfin in forum Installation and Deployment
    Replies: 12
    Last Post: 31st March 2011, 14:55
  2. Replies: 5
    Last Post: 6th February 2011, 13:51
  3. Install opencv on ubuntu error, please help
    By cooper in forum General Programming
    Replies: 2
    Last Post: 16th July 2009, 13:46
  4. how to install QT on Ubuntu?
    By waxwings in forum Installation and Deployment
    Replies: 2
    Last Post: 3rd July 2009, 11:34
  5. Replies: 0
    Last Post: 14th May 2009, 12:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.