-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 10.0.0
-
None
-
Qt 6.4.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 10.3.1 20210422 (Red Hat 10.3.1-1)) on "xcb"
OS: Debian GNU/Linux 12 (bookworm) [linux version 6.1.0-6-amd64]
Hello,
at my company we have used the sdktool with past versions (8.0.2 being the last working version) to add custom toolchains via scripts(Adding qtversion, devices, toolchains, kits etc.)
Using a freshly installed 10.0.0 qtcreator and its sdktool we werent able to use our custom sdk setup script.(I installed the qtcreator from https://download.qt.io/official_releases/qtcreator/10.0/10.0.0/qt-creator-opensource-linux-x86_64-10.0.0.run)
/home/user/qtcreator/qtcreator-10.0.0/Tools/sdktool/libexec/qtcreator/sdktool \
--sdkpath=/home/user/.config/QtProject/qtcreator \
addQt --id om.smartrail-tx6-sdk.6.5.2.qt \
--name 'Qt smartrail-tx6-sdk' \
--type Qt4ProjectManager.QtVersion.Desktop \
--qmake /home/user/smartrail-tx6-sdk/sysroots/x86_64-sdk-linux/usr/bin/qmake
For example the above command will result in following qtversion.xml
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE QtCreatorQtVersions> <!-- Written by sdktool , 2023-06-13T18:43:19. --> <qtcreator> <data> <variable>QtVersion.1</variable> <valuemap type="QVariantMap"> <valuelist type="QVariantList" key="Abis"/> <value type="int" key="Id">-1</value> <value type="QString" key="Name">Qt smartrail-tx6-sdk</value> <value type="QString" key="QMakePath">/home/user/smartrail-tx6-sdk/sysroots/x86_64-sdk-linux/usr/bin/qmake</value> <value type="QString" key="QtVersion.Type">Qt4ProjectManager.QtVersion.Desktop</value> <value type="QString" key="autodetectionSource">SDK.om.smartrail-tx6-sdk.6.5.2.qt</value> <value type="bool" key="isAutodetected">true</value> </valuemap> </data> <data> <variable>Version</variable> <value type="int">1</value> </data> </qtcreator>
But after starting the qtcreator, the qtcreator will overwrite the qtversion.xml file with an empty list of qt versions:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE QtCreatorQtVersions> <!-- Written by QtCreator 10.0.0, 2023-06-13T18:51:50. --> <qtcreator> <data> <variable>Version</variable> <value type="int">1</value> </data> </qtcreator>
I have tried passing different cli options to the sdktool, but in the end i was only able to add a qt installation via the qtcreator GUI.
- duplicates
-
QTCREATORBUG-29264 sdktool vanished from Windows installer
-
- Closed
-