How to have multiple Qt Kits using pre-built libraries? (and not building them) [SOLVED]



  • Hi
    Maybe the title is a little bit vague but here it goes,
    I want to have Qt 5.3.1 MinGW and MSVC2010 and MSVC2012 altogether.
    What I am doing is that I first install Qt 5.3.1 MinGW into default directory and then install the other two into different folders.
    Then I copy the build folder for the other two into another place so that I can uninstall them.
    After that I add two new kits using the qmake files inside the two MSVC folders.
    But the problem is that when I try to build the project using newly added kits, it looks for the lib files inside the folder that was used to install them and not the new folder that I have copied them there.

    Anyone has any ideas? Does qmake add lib references from a file created during installation or something?!



  • If I understand correctly, you would like to have multiple qt kits in same and use them. If that is the question, you can install many kits in same box and configure them Qt creator kits. I have MING and VC in same box. You need to configure them in QtCreator->Tools->Options->Build and Run



  • [quote author="Dheerendra" date="1403701331"]If I understand correctly, you would like to have multiple qt kits in same and use them. If that is the question, you can install many kits in same box and configure them Qt creator kits. I have MING and VC in same box. You need to configure them in QtCreator->Tools->Options->Build and Run[/quote]

    Yes, thanks but I already know this. What I asked is that if I move the installation (pre-built binaries to be specific) to another folder and configure Qt to use that, it wont work! and Qt still looks for the libs in the folder that I used during the installation



  • If i remember correctly you need to reset QDIR(hope this is correct env variable) to new directory. Then it shuld work fine.


  • Lifetime Qt Champion

    Hi,

    You can't just move a Qt installation to another folder. Search for "windows move qt installation directory" and you should get what you need to do it properly



  • [quote author="SGaist" date="1403733415"]Hi,

    You can't just move a Qt installation to another folder. Search for "windows move qt installation directory" and you should get what you need to do it properly[/quote]

    Thanks SGaist. I found "this very useful link":http://qt-project.org/faq/answer/is_it_possible_to_move_the_qt_directory_to_another_directory_after_installa by searching for "windows move qt installation directory"

    This is solved!


Log in to reply
 

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