Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. sdktool writing to 2 locations
Forum Updated to NodeBB v4.3 + New Features

sdktool writing to 2 locations

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 4 Posters 494 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    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...

    1 Reply Last reply
    0
    • kkoehneK Offline
      kkoehneK Offline
      kkoehne
      Moderators
      wrote on last edited by
      #2

      @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 ...

      Director R&D, The Qt Company

      1 Reply Last reply
      0
      • cristian-adamC Offline
        cristian-adamC Offline
        cristian-adam
        wrote on last edited by
        #3

        ~/.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.html

        Qt 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.

        1 Reply Last reply
        3
        • Z Offline
          Z Offline
          ziller
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • mzimmersM Offline
            mzimmersM Offline
            mzimmers
            wrote on last edited by
            #5

            I am using an offline installer, but not for Windows - for Linux. I'm not sure that bug report applies.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved