From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: packaging qt applications Date: Tue, 26 Jul 2016 15:30:48 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS2Rz-0004qP-26 for guix-devel@gnu.org; Tue, 26 Jul 2016 09:31:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bS2Ru-0002r8-SH for guix-devel@gnu.org; Tue, 26 Jul 2016 09:31:09 -0400 Received: from mail-yw0-x22f.google.com ([2607:f8b0:4002:c05::22f]:35618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS2Rt-0002r0-LJ for guix-devel@gnu.org; Tue, 26 Jul 2016 09:31:06 -0400 Received: by mail-yw0-x22f.google.com with SMTP id j12so12246387ywb.2 for ; Tue, 26 Jul 2016 06:31:04 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel Hi, A package I'm working on depends on both qtbase and qtdeclarative. In the configure phase I get an error that Qt5Config.cmake doesn't find Qt5QmlConfig.cmake. When I use a snippet to remove this check I get: ```scheme (snippet '(substitute* "CMakeLists.txt" (("find_package.*Qt5.*Qml Quick.*\n") "find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core DBus Gui)\n"))))) ``` ```sh CMake Error at /gnu/store/ngnz5l2v22a6wnr7lshlm02jykmhzl3z-qtdeclarative-5.6.1-1/lib/cmake/Qt5Qml/Qt5QmlConfig.cmake:87 (find_package): Could not find a package configuration file provided by "Qt5Network" (requested version 5.6.1) with any of the following names: Qt5NetworkConfig.cmake qt5network-config.cmake Add the installation prefix of "Qt5Network" to CMAKE_PREFIX_PATH or set "Qt5Network_DIR" to a directory containing one of the above files. If "Qt5Network" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): declarative/compositor/CMakeLists.txt:2 (find_package) ``` The CMAKE_PREFIX_PATH seems to be set correctly and no matter what CMAKE_PREFIX_PATH or other env variables I set I keep getting one or the other error. Has some else run into this issue and managed to fix it? David