Gnucash 3.0 Build error

John Ralls jralls at ceridwen.us
Thu Apr 5 17:04:39 EDT 2018



> On Apr 4, 2018, at 10:34 PM, DaveC49 <davidcousens at bigpond.com> wrote:
> 
> After following the build instructions 
> https://wiki.gnucash.org/wiki/Building#Ubuntu
> <https://wiki.gnucash.org/wiki/Building#Ubuntu>  
> I have checked glib-2.0 and libglib2.0 are installed
> 
> I received the following errors when building using cmake (v 3.5.1) on Linux
> MInt 18.3 :
> 
> /$ cmake -D CMAKE_INSTALL_PREFIX=/usr/local/bin/gnucash-cmake -D
> WITH_AQBANKING=OFF -D WITH_OFX=ON ../gnucash
> CMake Error at CMakeLists.txt:5 (file):
>  file problem creating directory: /glib-2.0/schemas
> 
> 
> -- Performing Test have_mod_mask
> -- Performing Test have_mod_mask - Failed
> CMake Error at gnome/CMakeLists.txt:59 (gnc_add_swig_guile_command):
>  Unknown CMake command "gnc_add_swig_guile_command".
> 
> 
> CMake Warning (dev) in CMakeLists.txt:
>  No cmake_minimum_required command is present.  A line of code such as
> 
>    cmake_minimum_required(VERSION 3.5)
> 
>  should be added at the top of the file.  The version specified may be
> lower
>  if you wish to support older CMake versions for this project.  For more
>  information run "cmake --help-policy CMP0000".
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> -- Configuring incomplete, errors occurred!
> See also
> "/home/david/Applications/gnucash-3.0/build-cmake/CMakeFiles/CMakeOutput.log".
> See also
> "/home/david/Applications/gnucash-3.0/build-cmake/CMakeFiles/CMakeError.log"./
> 
> Any ideas?

Rob Gowin saw your mistake and pointed it out in gnucash-devel, a better place to discuss build problems:

The error is "cmake <options> ../gnucash". You want just "cmake <options> .." to get the root CMakeLists.txt instead of the CMakeLists.txt in the "gnucash" subdirectory.

He recommends creating your build directory completely outside of the source tree as a way to avoid making this mistake.

Regards,
John Ralls



More information about the gnucash-user mailing list