Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to build from CMakeLists.txt?
Qt 6.11 is out! See what's new in the release blog

How to build from CMakeLists.txt?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 5.4k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I can not to build project from: https://github.com/keepassx/keepassx.git. Qt Creator show:

    bq. CMake Error at /Users/DerKode/Qt/5.2.0/clang_64/lib/cmake/Qt5/Qt5Config.cmake:26 (find_package):
    Could not find a package configuration file provided by "Qt5QtCore" with
    any of the following names:
    Qt5QtCoreConfig.cmake
    qt5qtcore-config.cmake
    Add the installation prefix of "Qt5QtCore" to CMAKE_PREFIX_PATH or set
    "Qt5QtCore_DIR" to a directory containing one of the above files. If
    "Qt5QtCore" provides a separate development package or SDK, be sure it has
    been installed.
    Call Stack (most recent call first):
    CMakeLists.txt:168 (find_package)

    How I can to fix it?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi,

      to use CMake with Qt5.x you shall read "here":http://qt-project.org/doc/qt-5.1/qtdoc/cmake-manual.html

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      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
      • Unsolved