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. Linguist (lupdate Project Error)
Forum Updated to NodeBB v4.3 + New Features

Linguist (lupdate Project Error)

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
12 Posts 6 Posters 12.6k Views 3 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.
  • M Offline
    M Offline
    Manu19
    wrote on last edited by
    #1

    Hi, I have a problem with Qt Creator and Linguist update. When I try to run lupdate then the following message displayed:

    Starting external tool "C:\Qt\5.9.1\mingw53_32\bin\lupdate.exe" C:/Users/devfx/Desktop/Tests/ekkesBTLEexample-master/bt_le_x.pro
    WARNING: Project ERROR: Cannot run compiler 'g++'. Maybe you forgot to setup the environment?

    "C:\Qt\5.9.1\mingw53_32\bin\lupdate.exe" finished

    Can anyone help me please?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welome to devnet,

      From where did you start lupdate ?

      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
      • M Offline
        M Offline
        Manu19
        wrote on last edited by
        #3

        Hello SGaist, I started lupdate from Qt Creator menubar->Tools->External->Linguist->Update Translations (lupdate).
        It seems there is a bug in Qt Creator 4.3.1. With Qt 5.9 and Qt Creator 4.3.0 lupdate works successfully

        1 Reply Last reply
        0
        • ekkescornerE Offline
          ekkescornerE Offline
          ekkescorner
          Qt Champions 2016
          wrote on last edited by
          #4

          tested with 5.9.1 and 4.3.1
          works for me on macOS

          hint: as described here I'm always changing the path to the executable and setting explicitely, because I had some issues with older QtCreator Versions and Android with lupdate / lrelease using the default values from Tools external

          my-path-to/5.9.1/clang_64/bin/lupdate
          

          ekke ... Qt Champion 2016 | 2024 ... mobile business apps
          5.15 --> 6.8 https://t1p.de/ekkeChecklist
          QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Manu19
            wrote on last edited by
            #5

            I set the path explicitely as you describe, but the same error in the general message box is displayed.
            On another maschine with Qt 5.9 an Creator 4.3.0 no problems.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              deleted109
              wrote on last edited by
              #6

              Have you set the enviroment variable for mingw compiler? Try following:

              1. Right click on my computer
              2. Advanced system settings
              3. Environment variables
              4. in system variables, add following to the end of line in Path:
                'YOUR_PATH_TO_QT_DIR\Tools\mingw530_32\bin'

              example: C:\Qt\Tools\mingw530_32\bin

              1 Reply Last reply
              1
              • M Offline
                M Offline
                Manu19
                wrote on last edited by
                #7

                @Simon88 Thank you, this solve the problem. :-)

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Except you should only do that for the command line prompt you are currently using. Otherwise you are going to pollute your system PATH environment variable.

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

                  M 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    Except you should only do that for the command line prompt you are currently using. Otherwise you are going to pollute your system PATH environment variable.

                    M Offline
                    M Offline
                    Manu19
                    wrote on last edited by
                    #9

                    @SGaist Where should I setup this?

                    With Qt Creator 4.3.0 and Qt 5.9.0 , I set nothing and it works. When I set nothing with Qt Creator 4.3.1 and 5.9.1, then displayed the error, why?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      In the command prompt you are using.

                      Because Qt Creator modifies locally the PATH environment variable so you'll be using the version of Qt you choose when selecting the kit to build your application.

                      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
                      • M Offline
                        M Offline
                        Michael Scopchanov
                        wrote on last edited by Michael Scopchanov
                        #11

                        Please, check out the solution I have provided here: https://stackoverflow.com/questions/44852340/how-to-make-qtlinguist-shipped-with-qt-5-9-1-work

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          lqsa
                          wrote on last edited by
                          #12

                          After try these solutions, it doesn't work for me. However I've changed the project from Android to Desktop and it works, so it's something related with the type project.
                          I've opened an error bug: https://bugreports.qt.io/browse/QTCREATORBUG-18726

                          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