Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Qt 6.2.0 cmake install issue on Linux
Forum Updated to NodeBB v4.3 + New Features

Qt 6.2.0 cmake install issue on Linux

Scheduled Pinned Locked Moved Solved Qt 6
4 Posts 2 Posters 790 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.
  • N Offline
    N Offline
    nitingera
    wrote on 26 Oct 2021, 21:28 last edited by
    #1

    I built Qt 6.2.0 branch on CentOS 7 in release mode with gcc 10 compiler
    Following is the configure command used by me
    ../qt6/configure -release -nomake tests -nomake examples -system-zlib -system-libpng -qt-libjpeg -opengl -bundled-xcb-xinput

    The Qt was able to build succesfully.
    However on running 'cmake --install .' I am getting the following error

    **CMake Error at qtbase/src/tools/moc/cmake_install.cmake:53 (file):
    file INSTALL cannot find
    "/home/qt6/qt6-release-build/qtbase/libexec/moc": No such file or directory.

    Call Stack (most recent call first):
    qtbase/src/cmake_install.cmake:57 (include)
    qtbase/cmake_install.cmake:250 (include)
    cmake_install.cmake:47 (include)**

    I have tried adding -prefix as well to configure but same error persists

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nitingera
      wrote on 27 Oct 2021, 00:18 last edited by
      #4

      Solved.. The build and install directory should be different.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JoeCFD
        wrote on 26 Oct 2021, 21:30 last edited by
        #2

        sudo make install

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nitingera
          wrote on 26 Oct 2021, 22:00 last edited by
          #3

          It gives an error
          make: *** No rule to make target 'install'. Stop.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nitingera
            wrote on 27 Oct 2021, 00:18 last edited by
            #4

            Solved.. The build and install directory should be different.

            1 Reply Last reply
            0

            1/4

            26 Oct 2021, 21:28

            • Login

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