[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with cmake / Qt5 migration needed



On Thu, Oct 19, 2017 at 04:11:49PM +0200, Andreas Tille wrote:
> I'd like to package beads[1] which is Qt4 but since Qt4 will be droped
> soon my goal is to port it to Qt5.  With my current packaging attempt[1]
> I get:
> 
> CMake Error at src/CMakeLists.txt:4 (FIND_PACKAGE):
>   Found package configuration file:
> 
>     /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake
> 
>   but it set Qt5_FOUND to FALSE so package "Qt5" is considered to be NOT
>   FOUND.  Reason given by package:
> 
>   The Qt5 package requires at least one component
> 
> 
> The FIND_PACKAGE line was patched by me where I naively did
> 
>    s/Qt4 REQUIRED/Qt5 REQUIRED/
find_package(Qt5 REQUIRED COMPONENTS Core Widgets)
or something.
This doesn't guarantee that the code will compile, of course.

> [1] https://anonscm.debian.org/git/debian-med/beads.git
No repositories found


-- 
WBR, wRAR

Attachment: signature.asc
Description: PGP signature


Reply to: