Last active
April 11, 2020 21:34
-
-
Save lduboeuf/dcf22607207d5b7abc8ac966d20942ce to your computer and use it in GitHub Desktop.
Import Ubuntu.Component to workspace ( code completion in qtcreator ) - cross platform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/lduboeuf/ut-qtcreator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#run container clickable | |
docker run -i -t --entrypoint /bin/bash clickable/ubuntu-sdk:16.04-amd64 | |
#in an another terminal, get the container id | |
docker ps | |
#copy ubuntu components to local folder | |
docker cp [container id]:/usr/lib/x86_64-linux-gnu/qt5/qml/ [path to somewhere] | |
#set the environnement variable to profile | |
echo "export QML_IMPORT_PATH=[path to somewhere]" >> ~/.profile | |
#reload env or you might need to logout/login | |
source ~/.profile | |
##stop container | |
docker stop [container id] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#only work for Ubuntu 16.04 and 18.04: | |
#add ubports repository | |
sudo add-apt-repository "deb https://repo.ubports.com/ [bionic|xenial] main" | |
#install Ubuntu.components | |
sudo apt install qml-module-ubuntu-components | |
#qml components should be installed in "/usr/lib/x86_64-linux-gnu/qt5/qml" | |
#set the environnement variable to profile | |
echo "export QML_IMPORT_PATH=/usr/lib/x86_64-linux-gnu/qt5/qml" >> ~/.profile | |
#reload env or you might need to logout/login | |
source ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://forums.ubports.com/topic/3635/guide-code-completion-on-qt-creator-for-ubuntu-components/6