Proper way to install source components



  • Hello all,

    while installing Qt 5.3.1, one have the possibility to choose additional source components. After the installation ends I'm able to find a 'Src' directory with the related content.

    But how do I install the source components ? Especially when I have different targets (android, ios clang, ...).

    Regards,

    DaBoba


  • Lifetime Qt Champion

    Hi,

    What do you mean by "install the sources components" ?



  • Hello SGaist,

    I assume I have to do more steps than just checking the source component in the install process in order to use it in my code. When I try to import a module, e.g. QtLocation in QML it says "Module not installed!"

    Regards,

    DaBoba


  • Lifetime Qt Champion

    You have to build and install the module before you can use it. The sources are just the code.


  • Moderators

    Hi,

    Take note:

    • "source components" in the Qt installer give you the source code of the libraries that are already compiled and installed. You should never need to build "source components" yourself.
    • Qt Location is not part of Qt 5.3, because it is not ready for release yet. Therefore, even if you select "source components", you will not get Qt Location source code.

    What do you wish to do with the Qt Location module?



  • Hello,

    thank you for all your answers!

    @SGaist: I did assume to do more steps. But I still do not know how to build the module for each of my targets.

    @JKSH: After checking qtlocation I can find a 'Src'-directory in my installation. This directory even has an example folder included. I' m interested in using the Map component for a location based app.

    Regards

    DaBoba


  • Moderators

    Huh, looks like they included unreleased source code too.

    I haven't tried this before, but I think you load qtlocation/src/location/location.pro in Qt Creator and compile the project.

    Be warned: This feature is unreleased. It might not be stable.


Log in to reply
 

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