Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. lconvert/lrelease as qmake custom targets
Forum Updated to NodeBB v4.3 + New Features

lconvert/lrelease as qmake custom targets

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 2 Posters 822 Views 2 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
    Max13
    wrote on last edited by
    #1

    I have some translations to handle, lconvert to "export" qtbase_fr.qm to a Qt resource, and lrelease for the app's.

    I successfully had them as build steps in Qt Creator, but I'd like to have them in the .pro file to avoid having to manually add build steps in Qt Creator.

    The thing is, I'm having a hard time making qmake execute the target's commands. I'm getting make errors like: « No rule to make target 'i18n_app' ». The dependencies seem to be there, but not the commands to build them. I also tried with and without $$PWD for the 2 targets, just in case this was the reason why make doesn't find the rule...

    Any idea, please?

    • Here is the latest .pro file
    • And here is the Makefile inside build/Desktop_Qt_5_15_2_clang_64bit-Debug/src

    We all have started by asking questions. Then after some time, we can begin answering them.

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

      Hi,

      For lrelease, you can use the CONFIG variable for that.

      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
      0
      • SGaistS SGaist

        Hi,

        For lrelease, you can use the CONFIG variable for that.

        M Offline
        M Offline
        Max13
        wrote on last edited by
        #3

        @SGaist Thanks for lrelease, but what am I missing about writing custom targets, as their commands don't appear as rules in Makefile (but appear as dependencies)?

        We all have started by asking questions. Then after some time, we can begin answering them.

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

          They seem to look good.

          Which version of Qt are you using ?

          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
          0
          • SGaistS SGaist

            They seem to look good.

            Which version of Qt are you using ?

            M Offline
            M Offline
            Max13
            wrote on last edited by
            #5

            @SGaist Qt 5.15.2 x64, Qt Creator 4.15.2, MacOS Catalina (10.15.7)

            We all have started by asking questions. Then after some time, we can begin answering them.

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

              Would it be possible to have a minimal project to try that on my end so that we can work on the same base ?

              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