Updating Qt 5.2 to 5.3 in ubuntu



  • This is a newbie question but I don't really understand how to update my current qt 5.2 to a newer version. If I download the Ubuntu installer from qt website, the new qt will be just installed to a local folder and qt creator will keep on using the old 5.2 version. I cannot for example use the QSurfaceFormat swapInterval functionality that was introduced in 5.3. So how do I replace my qt 5.2 with 5.3?



  • I updated 5.2 to 5.3 this way:

    download latest qt version from: http://qt-project.org/downloads

    next click on show downloads, choose particular version say linux 64bit then click on info, choose build from mirrors. change permission then run the build. Very fast.

    As per my experience, you can see both 5.2 and 5.3 on "Dash Home". Choose qt creator 5.3.
    for ex: /home/username/Qt5.3.1 installed here/Tools/QtCreator/bin/qtcreator. Launch qtcreator from here.



  • [quote author="av2306" date="1404733973"]I updated 5.2 to 5.3 this way:

    download latest qt version from: http://qt-project.org/downloads

    next click on show downloads, choose particular version say linux 64bit then click on info, choose build from mirrors. change permission then run the build. Very fast.

    As per my experience, you can see both 5.2 and 5.3 on "Dash Home". Choose qt creator 5.3.
    for ex: /home/username/Qt5.3.1 installed here/Tools/QtCreator/bin/qtcreator. Launch qtcreator from here.[/quote]

    That's basically what I did but it is not working. Now I have Qt 5.3 in my home folders but Qt 5.2 is still in my /usr/ folder. Even if I use the new Qt creator it won't recognize the swapInterval functions because I guess it is still using the Qt 5.2 header files from /usr/ folder. Is it possible to only have Qt 5.3 in my system?



  • did you verify tools -> options -> Build & Run -> Qt Versions?



  • Ok I figrued it out. I had to change the project I started to use with Qt 5.2 to use Qt 5.3 in build settings. Well, I guess I cannot replace the 5.2 version in /usr/ folders but have to keep both versions.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.