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. Qt5LinguistToolsConfig.cmake doesn't exist...
Forum Updated to NodeBB v4.3 + New Features

Qt5LinguistToolsConfig.cmake doesn't exist...

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
7 Posts 2 Posters 5.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.
  • M Offline
    M Offline
    magnanimous
    wrote on last edited by magnanimous
    #1

    Hello,

    I'm trying to compile lxqt on a Debian-based system, and it's looking for a file called Qt5LinguistToolsConfig.cmake, which it believes should reside in the lib/cmake directory. However, I don't see this file there. The closest I've found was: qttools/src/linguist/Qt5LinguistToolsConfig.cmake.in

    I followed the guide for building qt5 from Git, and I'm unsure why this file didn't build. Any help would be appreciated.

    PERSONAL SOLUTION:
    The wiki page on building qt5 from Git recommends appending the configure option, "-nomake examples"; the rationale is to reduce the amount of time it takes to build. However, this option prevents Qt5LinguistToolsConfig.cmake (which can be found in qtbase/lib/cmake/Qt5LinguistTools) from being built at all, and I imagine that some others aren't able to build, either. My solution requires following the README instructions verbatim (obviously changing the opensource license if necessary):

    ./configure -prefix $PWD/qtbase -opensource -nomake tests
    

    and followed by make -j4
    I successfully built it from the source tarball (mentioned below). I assume the results would be the same if one used the Git source.

    CONTINUOUS ISSUE:
    The -nomake examples phrase, supposedly, shouldn't influence whether or not this .cmake tool is built, so I'm wondering why it made the difference on my system.

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

      Hi,

      Since you build Qt yourself, can you share the configure options you used ?

      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
        magnanimous
        wrote on last edited by magnanimous
        #3

        Having followed the Git build instructions, I ran configure with the following options:

        ./configure -developer-build -opensource -nomake examples -nomake tests
        
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What do you have in your lib/cmake folder ?

          Note that you should rather do out of source builds, that will keep it clean and you can easily nuke the folder and start anew in case of a problem.

          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
            magnanimous
            wrote on last edited by magnanimous
            #5
            $ ls qtbase/lib/cmake
            Qt5            Qt5DBus     Qt5Nfc               Qt5Purchasing  Qt5QuickWidgets   Qt5Sensors     Qt5Svg            Qt5Widgets      install
            Qt5Bluetooth   Qt5Gamepad  Qt5OpenGL            Qt5Qml         Qt5RemoteObjects  Qt5SerialBus   Qt5Test           Qt5X11Extras
            Qt5Concurrent  Qt5Gui      Qt5OpenGLExtensions  Qt5Quick       Qt5RepParser      Qt5SerialPort  Qt5WaylandClient  Qt5Xml
            Qt5Core        Qt5Network  Qt5PrintSupport      Qt5QuickTest   Qt5Scxml          Qt5Sql         Qt5WebSockets     Qt5XmlPatterns
            

            By "source builds," do you mean this? https://www1.qt.io/download-open-source/?utm_referrer=https%3A%2F%2Fwww.qt.io%2Fdownload-qt-for-application-development

            EDIT: I compiled it from the 32-bit tarball, and used the configure command noted in the readme, but also adding the -nomake examples line:

            ./configure -prefix $PWD/qtbase -opensource -nomake tests -nomake examples
            

            and ls <qt5-directory>/qtbase/lib/cmake returned the same results as above. I would have run the precompiled binary, but the only available one for 32-bit contained qt5.5, and lxqt requires >=5.6.1.

            I'd really like to know if it is even possible to just compile that one tool independently.

            EDIT 2: With solution
            After I read what I wrote, I removed the -nomake examples phrase so that it would match exactly what the readme said, and when I looked in the directory, I saw the newly-created QT5LinguistTools folder, containing the file I have been searching for. The rationale behind omitting examples, according to whoever authored the Github page, is to speed-up the build process (which is usually a desired behavior). Looks like I'll be sending some information to the Qt Github tutorial's author.

            Thank you for your help.

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

              The -nomake examples option should have no influence in the matter. I'm never building with the examples and the linguist related cmake files are generated properly.

              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

                The -nomake examples option should have no influence in the matter. I'm never building with the examples and the linguist related cmake files are generated properly.

                M Offline
                M Offline
                magnanimous
                wrote on last edited by
                #7

                @SGaist said in Qt5LinguistToolsConfig.cmake doesn't exist...:

                The -nomake examples option should have no influence in the matter. I'm never building with the examples and the linguist related cmake files are generated properly.

                That is the strangest thing, then. I compiled QT5.9.1 and 5.9.2 several times, and that was the ONLY thing that made the difference.

                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