GNOME Bugzilla – Bug 794617
Can't compile with -DWITH_GNUCASH=NO due to scm-gnome-utils
Last modified: 2018-06-30 00:05:50 UTC
Created attachment 370048 [details] [review] Patch to compile without gtk+ nor webkit I am reporting here a bug requeste for an enhancement that I opened in Gentoo's bugzilla https://bugs.gentoo.org/651200 Trying to compile libgnucash without gnucash in a system without gtk+ (in particular no gnome and no webkit-gtk) I ran into errors like so: > make[2]: *** No rule to make target > '/var/tmp/portage/app-office/gnucash-2.7.5-r1/work/ > gnucash-2.7.5/libgnucash/scm/scm-gnome-utils', needed by > 'lib64/gnucash/scm/ccache/2.2/ gnucash/price-quotes.go'. Stop. > But scm-gnome-utils is defined in gnucash/gnome-utils hence it will not be pulled by the build system with -DWITH_GNUCASH=NO. I simply removed the target in libgnucash/scm/CMAkeLists.txt and I managed to get past these errors. After that I managed to compile libgnucash but only after removing the /doc directory because of a missing gnucash.1 file that CMake would complain about. Attached are the changes that I needed in order to compile.
Comment on attachment 370048 [details] [review] Patch to compile without gtk+ nor webkit Committed with a couple of modifications. Thanks!
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=794617. Please update any external references or bookmarks.