GnuCash
Contact   Instructions
Bug 797536 - cmake errors out because it cannot find GncPkgConfig (cmake 3.5.2)
Summary: cmake errors out because it cannot find GncPkgConfig (cmake 3.5.2)
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Build system (show other bugs)
Version: unspecified
Hardware: PC Linux
: Normal minor
Target Milestone: ---
Assignee: core
QA Contact: core
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-29 13:59 EST by Lenard Spencer
Modified: 2019-12-29 15:56 EST (History)
5 users (show)

See Also:


Attachments

Description Lenard Spencer 2019-12-29 13:59:36 EST

    
Comment 1 Lenard Spencer 2019-12-29 14:04:37 EST
Trying to build under Slackware64-14.2 with latest updates, but with cmake 3.5.2 it errors out.  Here is the cmake snippet:
----------------------------------------------------------------------------
-- Found UnixCommands: /usr/bin/bash  
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
CMake Error at CMakeLists.txt:201 (include):
  include could not find load file:

    GncPkgConfig


-- Checking for module 'glib-2.0>=2.40'
--   Found glib-2.0, version 2.46.2
-- Checking for module 'gio-2.0'
--   Found gio-2.0, version 2.46.2
-- Checking for module 'gobject-2.0>=2.20'
--   Found gobject-2.0, version 2.46.2
-- Checking for module 'gmodule-2.0>=2.20'
--   Found gmodule-2.0, version 2.46.2
-- Checking for module 'gthread-2.0>=2.20'
--   Found gthread-2.0, version 2.46.2
-- Checking for module 'libxml-2.0>=2.7.0'
--   Found libxml-2.0, version 2.9.5
-- Checking for module 'libxslt'
--   Found libxslt, version 1.1.29
-- Checking for module 'webkit2gtk-4.0'
--   Found webkit2gtk-4.0, version 2.20.5
CMake Error at CMakeLists.txt:241 (_pkg_create_imp_target):
  Unknown CMake command "_pkg_create_imp_target".


-- Configuring incomplete, errors occurred!
-----------------------------------------------------------------
Comment 2 Lenard Spencer 2019-12-29 14:05:28 EST
Forgot to mention this is Gnucash 3.8.
Comment 3 John Ralls 2019-12-29 14:25:47 EST
The file is in common/cmake_modules. If it's missing then check your clone and make sure that you're on the maint branch and that you have no differences to origin.
Comment 4 Lenard Spencer 2019-12-29 15:25:20 EST
common/cmake_modules/GncPkgConfig.cmake is missing from the 3.8 release tarball on sourceforge.  After copying it over from the git pull I was able to build with no problem.
Comment 5 John Ralls 2019-12-29 15:37:12 EST
Aha! I've retagged the release and re-spun the tarball because of https://github.com/Gnucash/gnucash/commit/67b508babecd12b8f16eda5abf8d5d5b16402c21. I'll fix the dist list and do it again.
Comment 6 Lenard Spencer 2019-12-29 15:56:16 EST
Much thanks!

Note You need to log in before you can comment on or make changes to this bug.