Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can't translate sub projects

Can't translate sub projects

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 2 Posters 2.0k 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.
  • Roy44R Offline
    Roy44R Offline
    Roy44
    wrote on last edited by
    #1

    Hi,
    I would like to translate my project, so I use Qt linguist.
    After resolving "Project ERROR: Cannot run compiler 'cl'" by adding cl.exe into path,
    I have the follong problem :
    lupdate warning: no TS files specified. Only diagnostics will be produced for 'E:/projets/Mediacad2_ODA4.3.2/Mediacad2.pro'.
    It's logic because Mediacad2.pro has no translation but its subproject does, Mediacad2.pro looks like this:

    TEMPLATE = subdirs
    
    SUBDIRS += \
        MdCore \
        MdWidgets \
        #...
    
    # where to find the sub projects - give the folders
    MdDC3.subdir = MdDC3
    MdBatch.subdir = MdBatch
    MdCore.subdir = MdCore
    #...
    
    # what subproject depends on others
    MdDC3.depends = MdCore
    #...
    
    

    What I missed ?
    I also compile on MACOS and I have no problem.

    thanks.

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

      Hi,

      What version of Qt are you using on Windows ?
      Is it the same that you are using on macOS ?

      Can you reproduce that with a minimal 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 Reply Last reply
      0
      • Roy44R Offline
        Roy44R Offline
        Roy44
        wrote on last edited by
        #3

        I work with Qt 5.10 on both platform.
        I compile with VS2015 on windows

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

          Then, can you reduce the project to a testable size to see what's going wrong ?

          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
          • Roy44R Offline
            Roy44R Offline
            Roy44
            wrote on last edited by
            #5

            It's start after 30 minutes, and process takes lot of resources even with one of my subprojects.

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

              Hence the proposition of creating a minimal sample project that triggers the same error.

              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
              • Roy44R Offline
                Roy44R Offline
                Roy44
                wrote on last edited by
                #7

                on simple project it works.
                It's very strange. Do lupdate search in "include" directories in addition to project files?

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

                  What do you mean by that ?

                  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
                  • Roy44R Offline
                    Roy44R Offline
                    Roy44
                    wrote on last edited by
                    #9

                    because it takes a lot of time (maybe it scan other directories).
                    I think it's a qt configuration problem on window (no problem on mac).
                    Maybe the resolution of "Project ERROR: Cannot run compiler 'cl'" cause another problem...

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

                      The CL problem is usually:

                      • Missing Visual Studio
                      • Wrong installation of Visual Studio i.e. C++ not selected on installation.

                      Is either your case ?

                      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
                      1

                      • Login

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