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. Successfully build from source, but installation "Error copying" ...

Successfully build from source, but installation "Error copying" ...

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 1.1k Views
  • 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.
  • jiapei100J Offline
    jiapei100J Offline
    jiapei100
    wrote on last edited by jiapei100
    #1

    I successfully built qt source qt-everywhere-src-5.11.1, following the instructions at http://doc.qt.io/qt-5/linux-building.html.

    However, when I tried to install Qt by sudo checkinstall, I got the following error messages:

    Error copying ....../qt-everywhere-src-5.11.1/qtbase/src/platformheaders/xcbfunctions/qxcbwindowfunctions.h to /usr/local/Qt-5.11.1/include/QtPlatformHeaders/qxcbwindowfunctions.h: Cannot create /usr/local/Qt-5.11.1/include/QtPlatformHeaders/qxcbwindowfunctions.h for output
    Makefile:1230: recipe for target 'install_targ_headers' failed

    How to install Qt from source?

    Cheers
    Pei

    Welcome to Longer Vision
    https://www.longervision.com

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

      Hi,

      Since you used /usr/local as prefix you need root privilege to create files there.

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

      jiapei100J 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Since you used /usr/local as prefix you need root privilege to create files there.

        jiapei100J Offline
        jiapei100J Offline
        jiapei100
        wrote on last edited by
        #3

        @SGaist Hi, I actually was using
        sudo checkinstall

        Welcome to Longer Vision
        https://www.longervision.com

        SGaistS Pablo J. RoginaP 2 Replies Last reply
        0
        • jiapei100J jiapei100

          @SGaist Hi, I actually was using
          sudo checkinstall

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @jiapei100 said in Successfully build from source, but installation "Error copying" ...:

          sudo checkinstall

          What is checkinstall ?

          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
          • jiapei100J jiapei100

            @SGaist Hi, I actually was using
            sudo checkinstall

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @jiapei100 said in Successfully build from source, but installation "Error copying" ...:

            checkinstall

            that "command" doesn't show up in any location in the documentation you pointed to. Are you meaning:

            make install
            

            (or using sudo make install if the install prefix needs root privileges)

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            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