What package do I need to build a Qt 5 & CMake application?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







34















I'm trying to build sdrangelove, which wants Qt 5 and uses CMake for its build system, on Ubuntu 13.10. What package do I need to install to give it the file it's asking for here?



There are a lot of *qt5* packages, and I've tried installing the promising looking ones to no effect. All the discussions I've found either have things working fine or are talking about writing CMake build rules rather than executing them. I don't have a lot of experience with the organization of Debian/Ubuntu packaging.



CMake Error at CMakeLists.txt:14 (find_package):
By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Core", but
CMake did not find one.

Could not find a package configuration file provided by "Qt5Core"
(requested version 5.0) with any of the following names:

Qt5CoreConfig.cmake
qt5core-config.cmake

Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
"Qt5Core_DIR" to a directory containing one of the above files. If
"Qt5Core" provides a separate development package or SDK, be sure it has
been installed.









share|improve this question































    34















    I'm trying to build sdrangelove, which wants Qt 5 and uses CMake for its build system, on Ubuntu 13.10. What package do I need to install to give it the file it's asking for here?



    There are a lot of *qt5* packages, and I've tried installing the promising looking ones to no effect. All the discussions I've found either have things working fine or are talking about writing CMake build rules rather than executing them. I don't have a lot of experience with the organization of Debian/Ubuntu packaging.



    CMake Error at CMakeLists.txt:14 (find_package):
    By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "Qt5Core", but
    CMake did not find one.

    Could not find a package configuration file provided by "Qt5Core"
    (requested version 5.0) with any of the following names:

    Qt5CoreConfig.cmake
    qt5core-config.cmake

    Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
    "Qt5Core_DIR" to a directory containing one of the above files. If
    "Qt5Core" provides a separate development package or SDK, be sure it has
    been installed.









    share|improve this question



























      34












      34








      34


      13






      I'm trying to build sdrangelove, which wants Qt 5 and uses CMake for its build system, on Ubuntu 13.10. What package do I need to install to give it the file it's asking for here?



      There are a lot of *qt5* packages, and I've tried installing the promising looking ones to no effect. All the discussions I've found either have things working fine or are talking about writing CMake build rules rather than executing them. I don't have a lot of experience with the organization of Debian/Ubuntu packaging.



      CMake Error at CMakeLists.txt:14 (find_package):
      By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "Qt5Core", but
      CMake did not find one.

      Could not find a package configuration file provided by "Qt5Core"
      (requested version 5.0) with any of the following names:

      Qt5CoreConfig.cmake
      qt5core-config.cmake

      Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
      "Qt5Core_DIR" to a directory containing one of the above files. If
      "Qt5Core" provides a separate development package or SDK, be sure it has
      been installed.









      share|improve this question
















      I'm trying to build sdrangelove, which wants Qt 5 and uses CMake for its build system, on Ubuntu 13.10. What package do I need to install to give it the file it's asking for here?



      There are a lot of *qt5* packages, and I've tried installing the promising looking ones to no effect. All the discussions I've found either have things working fine or are talking about writing CMake build rules rather than executing them. I don't have a lot of experience with the organization of Debian/Ubuntu packaging.



      CMake Error at CMakeLists.txt:14 (find_package):
      By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "Qt5Core", but
      CMake did not find one.

      Could not find a package configuration file provided by "Qt5Core"
      (requested version 5.0) with any of the following names:

      Qt5CoreConfig.cmake
      qt5core-config.cmake

      Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
      "Qt5Core_DIR" to a directory containing one of the above files. If
      "Qt5Core" provides a separate development package or SDK, be sure it has
      been installed.






      package-management qt qt5 cmake






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 10 '13 at 3:59







      Kevin Reid

















      asked Nov 10 '13 at 2:22









      Kevin ReidKevin Reid

      5952515




      5952515






















          4 Answers
          4






          active

          oldest

          votes


















          47














          I just stumbled upon this question while trying to compile KeePassX 2.0.



          What helped me was to use apt-file to search for the missing packages:



          For example running this:




          apt-file search Qt5CoreConfig.cmake




          Returned the following packages:




          qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake



          qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake




          These packages can then be installed with apt or apt-get, e.g.:




          sudo apt install qtbase5-dev







          share|improve this answer


























          • quick ref for apt-file (wiki.ubuntu.com/AptFile). works.

            – parasrish
            Jul 24 '18 at 4:59



















          21














          Two things I was missing:




          • After an unsuccessful build, I must remove CMakeCache.txt (or simply clear the build directory); otherwise cmake will report the same error even if the needed package has been installed.


          • The packages which provide the *.cmake configuration files have names of the form qt*5-dev, e.g. for the error in my question, qtcore5-dev.







          share|improve this answer





















          • 3





            Another option is to use apt-file to search the missing package: apt-file search Qt5CoreConfig.cmake qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake

            – Francisco V.
            Jan 22 '16 at 15:29













          • @FranciscoV. What you have written deserves to be in an answer. It'll be easier to read the example that way, too.

            – Kevin Reid
            Jan 22 '16 at 15:30



















          0














          If you tried the above solutions and it didn't work, also try apt-get install libqt5opengl5-dev, that worked for me.






          share|improve this answer































            -1














            Also, possible to fix the installation issue, by direct package install through rpm (See the content https://centos.pkgs.org/7/epel-x86_64/phonon-qt5-devel-4.8.3-2.el7.x86_64.rpm.html).



            And another possibility is through "source build and install" : http://www.linuxfromscratch.org/blfs/view/7.9/kde/phonon.html



            This is typically due to improper installation of the phonon4qt5 (version 4.8.3) through "apt-get". At times, this is resolvable by "synaptic" installs for the missing libs/parts of the package.






            share|improve this answer
























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f374755%2fwhat-package-do-i-need-to-build-a-qt-5-cmake-application%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              47














              I just stumbled upon this question while trying to compile KeePassX 2.0.



              What helped me was to use apt-file to search for the missing packages:



              For example running this:




              apt-file search Qt5CoreConfig.cmake




              Returned the following packages:




              qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake



              qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake




              These packages can then be installed with apt or apt-get, e.g.:




              sudo apt install qtbase5-dev







              share|improve this answer


























              • quick ref for apt-file (wiki.ubuntu.com/AptFile). works.

                – parasrish
                Jul 24 '18 at 4:59
















              47














              I just stumbled upon this question while trying to compile KeePassX 2.0.



              What helped me was to use apt-file to search for the missing packages:



              For example running this:




              apt-file search Qt5CoreConfig.cmake




              Returned the following packages:




              qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake



              qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake




              These packages can then be installed with apt or apt-get, e.g.:




              sudo apt install qtbase5-dev







              share|improve this answer


























              • quick ref for apt-file (wiki.ubuntu.com/AptFile). works.

                – parasrish
                Jul 24 '18 at 4:59














              47












              47








              47







              I just stumbled upon this question while trying to compile KeePassX 2.0.



              What helped me was to use apt-file to search for the missing packages:



              For example running this:




              apt-file search Qt5CoreConfig.cmake




              Returned the following packages:




              qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake



              qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake




              These packages can then be installed with apt or apt-get, e.g.:




              sudo apt install qtbase5-dev







              share|improve this answer















              I just stumbled upon this question while trying to compile KeePassX 2.0.



              What helped me was to use apt-file to search for the missing packages:



              For example running this:




              apt-file search Qt5CoreConfig.cmake




              Returned the following packages:




              qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake



              qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake




              These packages can then be installed with apt or apt-get, e.g.:




              sudo apt install qtbase5-dev








              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Jun 7 '17 at 16:02

























              answered Jan 22 '16 at 15:35









              Francisco V.Francisco V.

              631159




              631159













              • quick ref for apt-file (wiki.ubuntu.com/AptFile). works.

                – parasrish
                Jul 24 '18 at 4:59



















              • quick ref for apt-file (wiki.ubuntu.com/AptFile). works.

                – parasrish
                Jul 24 '18 at 4:59

















              quick ref for apt-file (wiki.ubuntu.com/AptFile). works.

              – parasrish
              Jul 24 '18 at 4:59





              quick ref for apt-file (wiki.ubuntu.com/AptFile). works.

              – parasrish
              Jul 24 '18 at 4:59













              21














              Two things I was missing:




              • After an unsuccessful build, I must remove CMakeCache.txt (or simply clear the build directory); otherwise cmake will report the same error even if the needed package has been installed.


              • The packages which provide the *.cmake configuration files have names of the form qt*5-dev, e.g. for the error in my question, qtcore5-dev.







              share|improve this answer





















              • 3





                Another option is to use apt-file to search the missing package: apt-file search Qt5CoreConfig.cmake qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake

                – Francisco V.
                Jan 22 '16 at 15:29













              • @FranciscoV. What you have written deserves to be in an answer. It'll be easier to read the example that way, too.

                – Kevin Reid
                Jan 22 '16 at 15:30
















              21














              Two things I was missing:




              • After an unsuccessful build, I must remove CMakeCache.txt (or simply clear the build directory); otherwise cmake will report the same error even if the needed package has been installed.


              • The packages which provide the *.cmake configuration files have names of the form qt*5-dev, e.g. for the error in my question, qtcore5-dev.







              share|improve this answer





















              • 3





                Another option is to use apt-file to search the missing package: apt-file search Qt5CoreConfig.cmake qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake

                – Francisco V.
                Jan 22 '16 at 15:29













              • @FranciscoV. What you have written deserves to be in an answer. It'll be easier to read the example that way, too.

                – Kevin Reid
                Jan 22 '16 at 15:30














              21












              21








              21







              Two things I was missing:




              • After an unsuccessful build, I must remove CMakeCache.txt (or simply clear the build directory); otherwise cmake will report the same error even if the needed package has been installed.


              • The packages which provide the *.cmake configuration files have names of the form qt*5-dev, e.g. for the error in my question, qtcore5-dev.







              share|improve this answer















              Two things I was missing:




              • After an unsuccessful build, I must remove CMakeCache.txt (or simply clear the build directory); otherwise cmake will report the same error even if the needed package has been installed.


              • The packages which provide the *.cmake configuration files have names of the form qt*5-dev, e.g. for the error in my question, qtcore5-dev.








              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Nov 10 '13 at 3:59

























              answered Nov 10 '13 at 3:48









              Kevin ReidKevin Reid

              5952515




              5952515








              • 3





                Another option is to use apt-file to search the missing package: apt-file search Qt5CoreConfig.cmake qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake

                – Francisco V.
                Jan 22 '16 at 15:29













              • @FranciscoV. What you have written deserves to be in an answer. It'll be easier to read the example that way, too.

                – Kevin Reid
                Jan 22 '16 at 15:30














              • 3





                Another option is to use apt-file to search the missing package: apt-file search Qt5CoreConfig.cmake qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake

                – Francisco V.
                Jan 22 '16 at 15:29













              • @FranciscoV. What you have written deserves to be in an answer. It'll be easier to read the example that way, too.

                – Kevin Reid
                Jan 22 '16 at 15:30








              3




              3





              Another option is to use apt-file to search the missing package: apt-file search Qt5CoreConfig.cmake qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake

              – Francisco V.
              Jan 22 '16 at 15:29







              Another option is to use apt-file to search the missing package: apt-file search Qt5CoreConfig.cmake qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake

              – Francisco V.
              Jan 22 '16 at 15:29















              @FranciscoV. What you have written deserves to be in an answer. It'll be easier to read the example that way, too.

              – Kevin Reid
              Jan 22 '16 at 15:30





              @FranciscoV. What you have written deserves to be in an answer. It'll be easier to read the example that way, too.

              – Kevin Reid
              Jan 22 '16 at 15:30











              0














              If you tried the above solutions and it didn't work, also try apt-get install libqt5opengl5-dev, that worked for me.






              share|improve this answer




























                0














                If you tried the above solutions and it didn't work, also try apt-get install libqt5opengl5-dev, that worked for me.






                share|improve this answer


























                  0












                  0








                  0







                  If you tried the above solutions and it didn't work, also try apt-get install libqt5opengl5-dev, that worked for me.






                  share|improve this answer













                  If you tried the above solutions and it didn't work, also try apt-get install libqt5opengl5-dev, that worked for me.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 11 at 15:32









                  Nikos ManiathsNikos Maniaths

                  112




                  112























                      -1














                      Also, possible to fix the installation issue, by direct package install through rpm (See the content https://centos.pkgs.org/7/epel-x86_64/phonon-qt5-devel-4.8.3-2.el7.x86_64.rpm.html).



                      And another possibility is through "source build and install" : http://www.linuxfromscratch.org/blfs/view/7.9/kde/phonon.html



                      This is typically due to improper installation of the phonon4qt5 (version 4.8.3) through "apt-get". At times, this is resolvable by "synaptic" installs for the missing libs/parts of the package.






                      share|improve this answer




























                        -1














                        Also, possible to fix the installation issue, by direct package install through rpm (See the content https://centos.pkgs.org/7/epel-x86_64/phonon-qt5-devel-4.8.3-2.el7.x86_64.rpm.html).



                        And another possibility is through "source build and install" : http://www.linuxfromscratch.org/blfs/view/7.9/kde/phonon.html



                        This is typically due to improper installation of the phonon4qt5 (version 4.8.3) through "apt-get". At times, this is resolvable by "synaptic" installs for the missing libs/parts of the package.






                        share|improve this answer


























                          -1












                          -1








                          -1







                          Also, possible to fix the installation issue, by direct package install through rpm (See the content https://centos.pkgs.org/7/epel-x86_64/phonon-qt5-devel-4.8.3-2.el7.x86_64.rpm.html).



                          And another possibility is through "source build and install" : http://www.linuxfromscratch.org/blfs/view/7.9/kde/phonon.html



                          This is typically due to improper installation of the phonon4qt5 (version 4.8.3) through "apt-get". At times, this is resolvable by "synaptic" installs for the missing libs/parts of the package.






                          share|improve this answer













                          Also, possible to fix the installation issue, by direct package install through rpm (See the content https://centos.pkgs.org/7/epel-x86_64/phonon-qt5-devel-4.8.3-2.el7.x86_64.rpm.html).



                          And another possibility is through "source build and install" : http://www.linuxfromscratch.org/blfs/view/7.9/kde/phonon.html



                          This is typically due to improper installation of the phonon4qt5 (version 4.8.3) through "apt-get". At times, this is resolvable by "synaptic" installs for the missing libs/parts of the package.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jul 24 '18 at 5:07









                          parasrishparasrish

                          1194




                          1194






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f374755%2fwhat-package-do-i-need-to-build-a-qt-5-cmake-application%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                              ComboBox Display Member on multiple fields

                              Is it possible to collect Nectar points via Trainline?