Building with cmake and Qt5

Kleag's Avatar

Kleag

19 Dec, 2015 02:16 PM

Hello,

My app (https://github.com/aymara/lima) is built with cmake. It uses Qt5 and Boost libraries. I was able to setup a build but the configure fails with:

  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  System name is Windows
  Windows flags
  CMake Error at C:/projects/lima/manageQt5.cmake:40 (find_package):
    By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "Qt5", but
    CMake did not find one.
  
    Could not find a package configuration file provided by "Qt5" with any of
    the following names:
  
      Qt5Config.cmake
      qt5-config.cmake
  
    Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
    to a directory containing one of the above files.  If "Qt5" provides a
    separate development package or SDK, be sure it has been installed.
  Call Stack (most recent call first):
    CMakeLists.txt:100 (addQt5Modules)
  ```

What should I do to let cmake  find the installed Qt5 ?
  1. 1 Posted by Kleag on 21 Dec, 2015 02:15 PM

    Kleag's Avatar

    I was able to make cmake find Qt5. But now it fails on boost. It finds the header but not the libs.

     -- Check for working CXX compiler using: Visual Studio 12 2013 Win64
      -- Check for working CXX compiler using: Visual Studio 12 2013 Win64 -- works
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      System name is Windows
      Windows flags
      Adding module Core
      Adding module Xml
      Adding module Test
      
      
      
      {Qt5_LIBRARIES}=Qt5::Core;Qt5::Xml;Qt5::Test 
      CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.4/Modules/FindBoost.cmake:1247 (message):
        Unable to find the requested Boost libraries.
      
        Boost version: 1.59.0
      
        Boost include path: C:/Libraries/boost_1_59_0
      
        Could not find the following Boost libraries:
      
                boost_unit_test_framework
                boost_system
      
        No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
        directory containing Boost libraries or BOOST_ROOT to the location of
        Boost.
      Call Stack (most recent call first):
        CMakeLists.txt:112 (find_package)
    
  2. Support Staff 2 Posted by Feodor Fitsner on 21 Dec, 2015 07:09 PM

    Feodor Fitsner's Avatar

    Have you tried RDP to build worker for troubleshooting the issue: http://www.appveyor.com/docs/how-to/rdp-to-build-worker ?

  3. 3 Posted by kleag on 26 Dec, 2015 06:16 PM

    kleag's Avatar

    No content.

  4. 4 Posted by Kleag on 29 Dec, 2015 09:18 PM

    Kleag's Avatar

    Using RDP helped to track down the problem.

    Current appveyor.yml file (https://github.com/aymara/lima/blob/master/appveyor.yml) allows to build both C++ subprojects.

    This can be marked as solved.

    Thank you

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:03 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac