跳到內容
  • 版面
  • 最新
  • 標籤
  • 熱門
  • 使用者
  • 群組
  • 搜尋
  • Get Qt Extensions
  • Unsolved
Collapse
品牌標誌
  1. 首頁
  2. Qt Development
  3. Installation and Deployment
  4. Build Project - MinGW
Forum Updated to NodeBB v4.3 + New Features

Build Project - MinGW

已排程 已置頂 已鎖定 已移動 Installation and Deployment
11 貼文 2 Posters 2.7k 瀏覽 1 Watching
  • 從舊到新
  • 從新到舊
  • 最多點贊
回覆
  • 在新貼文中回覆
登入後回覆
此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
  • SGaistS 離線
    SGaistS 離線
    SGaist
    Lifetime Qt Champion
    寫於 最後由 編輯
    #2

    Hi and welcome to devnet,

    Do you want to do it from the command line or are you using QtCreator ?

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

    1 條回覆 最後回覆
    0
    • F 離線
      F 離線
      fk12
      寫於 最後由 編輯
      #3

      Thanks! From the command-line.

      1 條回覆 最後回覆
      0
      • SGaistS 離線
        SGaistS 離線
        SGaist
        Lifetime Qt Champion
        寫於 最後由 編輯
        #4

        Then, call mingw32-make in the folder containing the Makefile

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

        1 條回覆 最後回覆
        0
        • F 離線
          F 離線
          fk12
          寫於 最後由 編輯
          #5

          Thanks. I did that, and I got: 'g++' is not recognized as an internal or external command, operable problem or batch file. Before that, I even put the MinGW bin directory in the PATH environment variable.

          1 條回覆 最後回覆
          0
          • SGaistS 離線
            SGaistS 離線
            SGaist
            Lifetime Qt Champion
            寫於 最後由 編輯
            #6

            Did you generate the Makefiles or where they given to you ?

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

            1 條回覆 最後回覆
            0
            • F 離線
              F 離線
              fk12
              寫於 最後由 編輯
              #7

              I think I did that...I am reinstalling MinGW, including the C++ compiler, not only the C one. I hope this fixes the issue. I'll write here to let you know. Thanks.

              1 條回覆 最後回覆
              0
              • F 離線
                F 離線
                fk12
                寫於 最後由 編輯
                #8

                New error: QApplication not found. The g++ error did not occur.

                1 條回覆 最後回覆
                0
                • F 離線
                  F 離線
                  fk12
                  寫於 最後由 編輯
                  #9

                  I added the whole directory C:\Qt to PATH, and I'm still getting the error of QApplication not being found.

                  1 條回覆 最後回覆
                  0
                  • SGaistS 離線
                    SGaistS 離線
                    SGaist
                    Lifetime Qt Champion
                    寫於 最後由 編輯
                    #10

                    Beware that if you are installing several mingw versions on your computer, you might get into trouble.

                    The standard way is to install the mingw environment that comes with Qt.

                    Also, re-run qmake on your project

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

                    1 條回覆 最後回覆
                    0
                    • F 離線
                      F 離線
                      fk12
                      寫於 最後由 編輯
                      #11

                      Thanks, I guess if that doesn't work I will forget about using the command-line and do everything through the IDE. Anyway, thanks again for your support.

                      1 條回覆 最後回覆
                      0

                      • 登入

                      • Login or register to search.
                      • 第一個貼文
                        最後的貼文
                      0
                      • 版面
                      • 最新
                      • 標籤
                      • 熱門
                      • 使用者
                      • 群組
                      • 搜尋
                      • Get Qt Extensions
                      • Unsolved