GnuCash 2.7.4 Released

John Ralls jralls at ceridwen.us
Tue Feb 6 18:41:11 EST 2018



> On Feb 6, 2018, at 2:37 PM, Klaus Dahlke <kdahlke at gmx.de> wrote:
> 
> Hi John,
> I tied to complie gnucash 2.7.4 on Arch Linux with cmake without success. For comparison I cloned the git repository, installed and could compile successfully via autogen.sh, configure and make
> 
> The error when using cmake is:
> [mb40 gnucash_build]# cmake ../gnucash
> -- The C compiler identification is GNU 7.3.0
> -- The CXX compiler identification is GNU 7.3.0
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Performing Test have_mod_mask
> -- Performing Test have_mod_mask - Failed
> CMake Error at gnome/gschemas/CMakeLists.txt:16 (add_gschema_targets):
>  Unknown CMake command "add_gschema_targets".
> 
> 
> CMake Warning (dev) in CMakeLists.txt:
>  No cmake_minimum_required command is present.  A line of code such as
> 
>    cmake_minimum_required(VERSION 3.10)
> 
>  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 "/mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeOutput.log".
> See also "/mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeError.log".
> 
> 
> 
> CMakeError.log:
> Performing C SOURCE FILE Test have_mod_mask failed with the following output:
> Change Dir: /mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeTmp
> 
> Run Build Command:"/usr/bin/make" "cmTC_29946/fast"
> /usr/bin/make -f CMakeFiles/cmTC_29946.dir/build.make CMakeFiles/cmTC_29946.dir/build
> make[1]: Entering directory '/mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeTmp'
> Building C object CMakeFiles/cmTC_29946.dir/src.c.o
> /usr/bin/cc   -Dhave_mod_mask   -o CMakeFiles/cmTC_29946.dir/src.c.o   -c /mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeTmp/src.c
> /mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeTmp/src.c:2:10: fatal error: gdk/gdk.h: No such file or directory
> #include <gdk/gdk.h>
>          ^~~~~~~~~~~
> compilation terminated.
> make[1]: *** [CMakeFiles/cmTC_29946.dir/build.make:66: CMakeFiles/cmTC_29946.dir/src.c.o] Error 1
> make[1]: Leaving directory '/mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeTmp'
> make: *** [Makefile:126: cmTC_29946/fast] Error 2
> 
> Source file was:
> 
> #include <gdk/gdk.h>
> 
> int main (int argc, char** argv) {
>  GdkModifierIntent foo = GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK;
>  return 0;
> }
> ----
> 
> Also setting defininf CMAKE_PREFIX_PATH doesn't help:
> echo $CMAKE_PREFIX_PATH
> /usr/include/gtk-3.0
> 
> 
> Any ideas?


Please remember to copy the list on all replies. "Reply All" works well.

You're not starting at the top level CMakeFile. Tell it "cmake .." instead of "cmake ../gnucash".

Regards,
John Ralls



More information about the gnucash-devel mailing list