sdktool writing to 2 locations
-
Hi all -
I'm trying to use sdktool for configuring a cross-development kit. When I invoke it from the command line, it (sometimes) writes .xml files to 2 locations:
- ~/.config/QtProject/qtcreator
- ~/Qt/Tools/sdktool/share/qtcreator/QtProject/qtcreator
Is this expected behavior? It doesn't seem right to me, and I think it has something to do with my other problems using sdktool.
Thanks...
-
@mzimmers , The second path looks correct ... it is where the Qt Creator in the SDK will pick up the sdk configuration, which sdktool is writing.
{{{/.config/QtProject/qtcreator}}} looks more dubious. What kind of files is it writing here?
A concrete example of what you're trying to achieve with the sdktool would help ...
-
~/.config/QtProject/qtcreator
is the path where Qt Creator stores its settings (on Linux and macOS). As documented by https://doc.qt.io/qtcreator/creator-how-to-find-settings-files.htmlQt Creator reads the files from
~/Qt/Tools/sdktool/share/qtcreator/QtProject/qtcreator
and writes them into~/.config/QtProject/qtcreator
.sdktool
doesn't know about~/.config/QtProject/qtcreator
. -
If you are using an Qt Creator offline installer, see also https://bugreports.qt.io/browse/QTCREATORBUG-29264 . Unfortunately the sdktool that is shipped with the offline installers currently write to the wrong location for that install. I.e.
Online installer: Using sdktool from it writes to the correct location for that installation: <Qt>/Tools/sdktool/share/qtcreator/
Offline installer: Using sdktool from it writes to the wrong location for that installation. It should write to <qtc>/share/qtcreator/ . Pass "--sdkpath=<qtc>/share/qtcreator" to sdktool to work around that.
The path ~/.config/QtProject/... is written to by Qt Creator itself. It copies (parts of the) settings written with sdktool there.