Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. How to add submodule after configuring and building?
Forum Updated to NodeBB v4.3 + New Features

How to add submodule after configuring and building?

Scheduled Pinned Locked Moved Solved Qt 6
4 Posts 3 Posters 1.2k 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.
  • C Offline
    C Offline
    CuriousPan
    wrote on 20 Jun 2021, 17:04 last edited by
    #1

    I have built Qt6 using source code according to manual from official web-site. Anyway, I would like to add a submodule (qtcharts).
    Official manual advices following thing: You can always add or remove individual submodules later with git submodule init/deinit.
    Unfortunately, I don't really understand how I can do it. Can somebody give an advice? Thank you in advance.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 20 Jun 2021, 18:08 last edited by
      #2

      Hi,

      You have to go into your Qt clone, and there use git submodule init qtcharts.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      E 1 Reply Last reply 16 Jan 2024, 15:20
      1
      • S SGaist
        20 Jun 2021, 18:08

        Hi,

        You have to go into your Qt clone, and there use git submodule init qtcharts.

        E Offline
        E Offline
        elahav
        wrote on 16 Jan 2024, 15:20 last edited by
        #3

        @SGaist Apologies for reviving an old thread, but I wanted to expand on this response, as it comes up when searching for similar questions. The answer you gave is exactly what is given in the instructions for building Qt from git and is correct, but incomplete.

        After running git submodule init qtcharts (as in this example), you also need to run git submodule update . inside the qtcharts directory, and then reconfigure the build. This may be obvious to people used to working with git submodules, but took me a few minutes to figure out.

        S 1 Reply Last reply 16 Jan 2024, 20:17
        0
        • E elahav
          16 Jan 2024, 15:20

          @SGaist Apologies for reviving an old thread, but I wanted to expand on this response, as it comes up when searching for similar questions. The answer you gave is exactly what is given in the instructions for building Qt from git and is correct, but incomplete.

          After running git submodule init qtcharts (as in this example), you also need to run git submodule update . inside the qtcharts directory, and then reconfigure the build. This may be obvious to people used to working with git submodules, but took me a few minutes to figure out.

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 16 Jan 2024, 20:17 last edited by SGaist
          #4

          @elahav good point. We can even improve your suggestion: git submodule update --init qtcharts.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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