Christian Stimming schrieb: >> The problem are some section like this: >> #ifndef HAVE_GUILE18 >> --scm_block_gc; >> #endif >> in src/engine/engine-helpers.c >> >> Do you know how to check for the guile version and how to set the >> HAVE_GUILE18 if required in cmake? > > I've added this as well. Thanks for pointing this out.
Does not seem to work :-( The check works. I added MESSAGE ("Found Guile ${GUILE_VERSION_MAJOR}.${GUILE_VERSION_MINOR}") to CMakeLists.txt and it reports 1.8. However, when I do make VERBOSE=1 I get: [ 27%] Building C object src/engine/CMakeFiles/engine.dir/engine-helpers.c.o cd /home/tma/gnucash/gnucash_cvs/cutecash/build-cutecash/src/engine && /usr/bin/gcc -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"gnc.engine\" -Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/home/tma/gnucash/gnucash_cvs/cutecash/build-cutecash/src -I/home/tma/gnucash/gnucash_cvs/cutecash/src -I/home/tma/gnucash/gnucash_cvs/cutecash/src/libqof/qof -I/home/tma/gnucash/gnucash_cvs/cutecash/src/gnc-module -I/home/tma/gnucash/gnucash_cvs/cutecash/src/core-utils -I/home/tma/gnucash/gnucash_cvs/cutecash/src/engine -I/home/tma/gnucash/gnucash_cvs/cutecash/build-cutecash/src/engine -o CMakeFiles/engine.dir/engine-helpers.c.o -c /home/tma/gnucash/gnucash_cvs/cutecash/src/engine/engine-helpers.c /home/tma/gnucash/gnucash_cvs/cutecash/src/engine/engine-helpers.c: In function ‘gnc_query2scm’: /home/tma/gnucash/gnucash_cvs/cutecash/src/engine/engine-helpers.c:1712: error: ‘scm_block_gc’ undeclared (first use in this function) ... There is no -DHAVE_GUILE18 in the gcc command line. Is it possible that ADD_DEFINITIONS (foobar) is not propagated to subdirs? Herbert. -- Herbert Thoma Dipl.-Ing., MBA Head of Video Group Multimedia Realtime Systems Department Fraunhofer IIS Am Wolfsmantel 33, 91058 Erlangen, Germany Phone: +49-9131-776-6130 Fax: +49-9131-776-6099 email: t...@iis.fhg.de www: http://www.iis.fhg.de/ _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel