Re: Gnucash 2.7.5 Installation
Solved. I needed to make sure old versions were properly deleted. On Sat, Mar 3, 2018 at 1:59 PM, Roger Miskowicz wrote: > Not sure if I should have started another thread? > > Anyway, I am trying to install git clone on a second computer with the > same operating system (Ubuntu 16.04.4 LTS) as one where the installation > worked. > > I checked the dependencies: > > sudo apt-get install intltool > sudo apt-get install autoconf automake autotools-dev libsigsegv2 m4 > sudo apt-get install libtool libltdl-dev > sudo apt-get install libglib2.0-dev > sudo apt-get install icu-devtools libicu-dev > sudo apt-get install libboost-all-dev > sudo apt-get install guile-2.0 guile-2.0-dev > sudo apt-get install swig2.0 > sudo apt-get install libxml++2.6-dev > sudo apt-get install libxslt1-dev > sudo apt-get install xsltproc > sudo apt-get install libgtest-dev > sudo apt-get install google-mock > sudo apt-get install gtk+3.0 > sudo apt-get install libgtk-3-dev > sudo apt-get install libwebkit2gtk-4.0-37 > sudo apt-get install libwebkit2gtk-4.0-dev > > cmake -D WITH_AQBANKING=OFF -D WITH_OFX=OFF ../gnucash finished with no > errors > > However, during *make* I can't get it past: > > [ 28%] Generating ../../lib/gnucash/scm/ccache/2.0/gnucash/core-utils.go > Backtrace: > In srfi/srfi-1.scm: > 619: 19 [for-each # (file)> #] > In scripts/compile.scm: > 182: 18 [# > "/media/Projects/Gnucash/master/gnucash/libgnucash/ > core-utils/core-utils.scm"] > In system/base/target.scm: > 59: 17 [with-target "x86_64-pc-linux-gnu" ...] > In system/base/compile.scm: > 150: 16 [compile-file > "/media/Projects/Gnucash/master/gnucash/libgnucash/core-utils/core-utils.scm" > ...] > 43: 15 [call-once # ()>] > In ice-9/boot-9.scm: > 171: 14 [with-throw-handler #t ...] > In system/base/compile.scm: > 59: 13 [#] > 153: 12 [# > #] > 216: 11 [read-and-compile # #:from ...] > 232: 10 [lp (# # # # ...) # #] > 180: 9 [lp # # # ...] > In ice-9/boot-9.scm: > 2401: 8 [save-module-excursion # language/scheme/compile-tree-il.scm:29:3 ()>] > In language/scheme/compile-tree-il.scm: > 31: 7 [# ()>] > In ice-9/psyntax.scm: > 1106: 6 [expand-top-sequence ((re-export gnc-build-userdata-path)) () ...] > 989: 5 [scan ((re-export gnc-build-userdata-path)) () ...] > 279: 4 [scan ((# #)) () (()) ...] > In ice-9/boot-9.scm: > 2094: 3 [call-with-deferred-observers # ice-9/eval.scm:416:20 ()>] > 768: 2 [for-each # > #] > In unknown file: >?: 1 [scm-error misc-error #f ...] > In ice-9/boot-9.scm: > 106: 0 [# > misc-error ...] > > ice-9/boot-9.scm:106:20: In procedure # ice-9/boot-9.scm:97:6 (thrown-k . args)>: > ice-9/boot-9.scm:106:20: *Undefined variable: gnc-build-userdata-path > May this is the main symptom ... How can I fix it?* > libgnucash/core-utils/CMakeFiles/scm-core-utils.dir/build.make:61: recipe > for target 'lib/gnucash/scm/ccache/2.0/gnucash/core-utils.go' failed > make[2]: *** [lib/gnucash/scm/ccache/2.0/gnucash/core-utils.go] Error 1 > CMakeFiles/Makefile2:3937: recipe for target 'libgnucash/core-utils/ > CMakeFiles/scm-core-utils.dir/all' failed > make[1]: *** [libgnucash/core-utils/CMakeFiles/scm-core-utils.dir/all] > Error 2 > Makefile:160: recipe for target 'all' failed > make: *** [all] Error 2 > > Regards, > Roger > > > On Sat, Mar 3, 2018 at 10:04 AM, Roger Miskowicz > wrote: > >> Thanks John, I thought I had. Sorry for the inconvenience. >> >> Working great now, >> Roger >> >> On Sat, Mar 3, 2018 at 9:35 AM, John Ralls wrote: >> >>> >>> >>> > On Mar 3, 2018, at 2:51 AM, Roger Miskowicz >>> wrote: >>> > >>> > Thanks John, I looked at that line several times and didn't notice the >>> '/'. >>> > >>> > Now using: >>> > >>> > cmake .. >>> > >>> > the output seems fine except for: >>> > >>> > -- Performing Test have_mod_mask - Failed >>> > >>> > Even so, I tried 'make' with the following failure: >>> > >>> > [ 48%] Building C object gnucash/gnome-utils/CMakeFiles >>> /gncmod-gnome-utils.dir/account-quickfill.c.o >>> > :0:38: error: redeclaration of enumerator >>> ‘GDK_SHIFT_MASK’ >>> > /usr/include/gtk-3.0/gdk/gdktypes.h:318:3: note: in expansion of >>> macro ‘GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK’ >>> >GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK, >>> >^ >>> > In file included from /usr/include/gtk-3.0/gdk/gdkap >>> plaunchcontext.h:30:0, >>> > from /usr/include/gtk-3.0/gdk/gdk.h:32, >>> > from /usr/include/gtk-3.0/gtk/gtk.h:30, >>> > from /home/roger/Projects/Gnucash/g >>> nucash-2.7.5/gnucash/gnucash/gnome-utils/account-quickfill.h:43, >>> > from /home/roger/Projects/Gnucash/g >>> nucash-2.7.5/gnucash/gnucash/gnome-utils/account-quickfill.c:25: >>> > /usr/include/gtk-3.0/gdk/gdktypes.h:233:3: note: previous definition >>> of ‘GDK_SHIFT_MASK’ was here >>> >GDK_SHIFT_MASK= 1 << 0, >>> >^ >>> > :0:52: error: expected ‘,’ or ‘}’ before ‘|’ token >>> > /usr/include/gtk-3.0/gdk/gdktypes.h:318:3: note: in expansion of >>> macro
Re: Gnucash 2.7.5 Installation
Do you have an older version of gnucash installed on this system ? It seems your build is picking up the wrong (gnucash) core-utils library. Geert Op zaterdag 3 maart 2018 19:59:11 CET schreef Roger Miskowicz: > Not sure if I should have started another thread? > > Anyway, I am trying to install git clone on a second computer with the same > operating system (Ubuntu 16.04.4 LTS) as one where the installation worked. > > I checked the dependencies: > > sudo apt-get install intltool > sudo apt-get install autoconf automake autotools-dev libsigsegv2 m4 > sudo apt-get install libtool libltdl-dev > sudo apt-get install libglib2.0-dev > sudo apt-get install icu-devtools libicu-dev > sudo apt-get install libboost-all-dev > sudo apt-get install guile-2.0 guile-2.0-dev > sudo apt-get install swig2.0 > sudo apt-get install libxml++2.6-dev > sudo apt-get install libxslt1-dev > sudo apt-get install xsltproc > sudo apt-get install libgtest-dev > sudo apt-get install google-mock > sudo apt-get install gtk+3.0 > sudo apt-get install libgtk-3-dev > sudo apt-get install libwebkit2gtk-4.0-37 > sudo apt-get install libwebkit2gtk-4.0-dev > > cmake -D WITH_AQBANKING=OFF -D WITH_OFX=OFF ../gnucash finished with no > errors > > However, during *make* I can't get it past: > > [ 28%] Generating ../../lib/gnucash/scm/ccache/2.0/gnucash/core-utils.go > Backtrace: > In srfi/srfi-1.scm: > 619: 19 [for-each # (file)> #] > In scripts/compile.scm: > 182: 18 [# > "/media/Projects/Gnucash/master/gnucash/libgnucash/core-utils/core-utils.scm > "] In system/base/target.scm: > 59: 17 [with-target "x86_64-pc-linux-gnu" ...] > In system/base/compile.scm: > 150: 16 [compile-file > "/media/Projects/Gnucash/master/gnucash/libgnucash/core-utils/core-utils.scm > " ...] > 43: 15 [call-once #] > In ice-9/boot-9.scm: > 171: 14 [with-throw-handler #t ...] > In system/base/compile.scm: > 59: 13 [#] > 153: 12 [# > #] > 216: 11 [read-and-compile # #:from ...] > 232: 10 [lp (# # # # ...) # #] > 180: 9 [lp # # # ...] > In ice-9/boot-9.scm: > 2401: 8 [save-module-excursion # language/scheme/compile-tree-il.scm:29:3 ()>] > In language/scheme/compile-tree-il.scm: > 31: 7 [# ()>] > In ice-9/psyntax.scm: > 1106: 6 [expand-top-sequence ((re-export gnc-build-userdata-path)) () ...] > 989: 5 [scan ((re-export gnc-build-userdata-path)) () ...] > 279: 4 [scan ((# #)) () (()) ...] > In ice-9/boot-9.scm: > 2094: 3 [call-with-deferred-observers # ice-9/eval.scm:416:20 ()>] > 768: 2 [for-each # #] > In unknown file: >?: 1 [scm-error misc-error #f ...] > In ice-9/boot-9.scm: > 106: 0 [# > misc-error ...] > > ice-9/boot-9.scm:106:20: In procedure # ice-9/boot-9.scm:97:6 (thrown-k . args)>: > ice-9/boot-9.scm:106:20: *Undefined variable: gnc-build-userdata-path > May this is the main symptom ... How can I fix it?* > libgnucash/core-utils/CMakeFiles/scm-core-utils.dir/build.make:61: recipe > for target 'lib/gnucash/scm/ccache/2.0/gnucash/core-utils.go' failed > make[2]: *** [lib/gnucash/scm/ccache/2.0/gnucash/core-utils.go] Error 1 > CMakeFiles/Makefile2:3937: recipe for target > 'libgnucash/core-utils/CMakeFiles/scm-core-utils.dir/all' failed > make[1]: *** [libgnucash/core-utils/CMakeFiles/scm-core-utils.dir/all] > Error 2 > Makefile:160: recipe for target 'all' failed > make: *** [all] Error 2 > > Regards, > Roger > > On Sat, Mar 3, 2018 at 10:04 AM, Roger Miskowicz wrote: > > Thanks John, I thought I had. Sorry for the inconvenience. > > > > Working great now, > > > > Roger > > > > On Sat, Mar 3, 2018 at 9:35 AM, John Ralls wrote: > >> > On Mar 3, 2018, at 2:51 AM, Roger Miskowicz wrote: > >> > > >> > Thanks John, I looked at that line several times and didn't notice the > >> > >> '/'. > >> > >> > Now using: > >> > > >> > cmake .. > >> > > >> > the output seems fine except for: > >> > > >> > -- Performing Test have_mod_mask - Failed > >> > > >> > Even so, I tried 'make' with the following failure: > >> > > >> > [ 48%] Building C object gnucash/gnome-utils/CMakeFiles > >> > >> /gncmod-gnome-utils.dir/account-quickfill.c.o > >> > >> > :0:38: error: redeclaration of enumerator > >> > ‘GDK_SHIFT_MASK’ > >> > /usr/include/gtk-3.0/gdk/gdktypes.h:318:3: note: in expansion of macro > >> > >> ‘GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK’ > >> > >> >GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK, > >> >^ > >> > > >> > In file included from /usr/include/gtk-3.0/gdk/gdkap > >> > >> plaunchcontext.h:30:0, > >> > >> > from /usr/include/gtk-3.0/gdk/gdk.h:32, > >> > from /usr/include/gtk-3.0/gtk/gtk.h:30, > >> > from /home/roger/Projects/Gnucash/g > >> > >> nucash-2.7.5/gnucash/gnucash/gnome-utils/account-quickfill.h:43, > >> > >> > from /home/roger/Projects/Gnucash/g > >> > >> nucash-2.7.5/gnucash/gnucash/gnome-utils/account-quickfill.c:25: > >> > /usr/include/gtk-3.0/gdk/gdktypes.h:233:3: note: previous definition > >> > >> of ‘GDK_SHIFT_MASK’ was
Re: Gnucash 2.7.5 Installation
Not sure if I should have started another thread? Anyway, I am trying to install git clone on a second computer with the same operating system (Ubuntu 16.04.4 LTS) as one where the installation worked. I checked the dependencies: sudo apt-get install intltool sudo apt-get install autoconf automake autotools-dev libsigsegv2 m4 sudo apt-get install libtool libltdl-dev sudo apt-get install libglib2.0-dev sudo apt-get install icu-devtools libicu-dev sudo apt-get install libboost-all-dev sudo apt-get install guile-2.0 guile-2.0-dev sudo apt-get install swig2.0 sudo apt-get install libxml++2.6-dev sudo apt-get install libxslt1-dev sudo apt-get install xsltproc sudo apt-get install libgtest-dev sudo apt-get install google-mock sudo apt-get install gtk+3.0 sudo apt-get install libgtk-3-dev sudo apt-get install libwebkit2gtk-4.0-37 sudo apt-get install libwebkit2gtk-4.0-dev cmake -D WITH_AQBANKING=OFF -D WITH_OFX=OFF ../gnucash finished with no errors However, during *make* I can't get it past: [ 28%] Generating ../../lib/gnucash/scm/ccache/2.0/gnucash/core-utils.go Backtrace: In srfi/srfi-1.scm: 619: 19 [for-each # #] In scripts/compile.scm: 182: 18 [# "/media/Projects/Gnucash/master/gnucash/libgnucash/core-utils/core-utils.scm"] In system/base/target.scm: 59: 17 [with-target "x86_64-pc-linux-gnu" ...] In system/base/compile.scm: 150: 16 [compile-file "/media/Projects/Gnucash/master/gnucash/libgnucash/core-utils/core-utils.scm" ...] 43: 15 [call-once #] In ice-9/boot-9.scm: 171: 14 [with-throw-handler #t ...] In system/base/compile.scm: 59: 13 [#] 153: 12 [# #] 216: 11 [read-and-compile # #:from ...] 232: 10 [lp (# # # # ...) # #] 180: 9 [lp # # # ...] In ice-9/boot-9.scm: 2401: 8 [save-module-excursion #] In language/scheme/compile-tree-il.scm: 31: 7 [#] In ice-9/psyntax.scm: 1106: 6 [expand-top-sequence ((re-export gnc-build-userdata-path)) () ...] 989: 5 [scan ((re-export gnc-build-userdata-path)) () ...] 279: 4 [scan ((# #)) () (()) ...] In ice-9/boot-9.scm: 2094: 3 [call-with-deferred-observers #] 768: 2 [for-each # #] In unknown file: ?: 1 [scm-error misc-error #f ...] In ice-9/boot-9.scm: 106: 0 [# misc-error ...] ice-9/boot-9.scm:106:20: In procedure #: ice-9/boot-9.scm:106:20: *Undefined variable: gnc-build-userdata-path May this is the main symptom ... How can I fix it?* libgnucash/core-utils/CMakeFiles/scm-core-utils.dir/build.make:61: recipe for target 'lib/gnucash/scm/ccache/2.0/gnucash/core-utils.go' failed make[2]: *** [lib/gnucash/scm/ccache/2.0/gnucash/core-utils.go] Error 1 CMakeFiles/Makefile2:3937: recipe for target 'libgnucash/core-utils/CMakeFiles/scm-core-utils.dir/all' failed make[1]: *** [libgnucash/core-utils/CMakeFiles/scm-core-utils.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 Regards, Roger On Sat, Mar 3, 2018 at 10:04 AM, Roger Miskowicz wrote: > Thanks John, I thought I had. Sorry for the inconvenience. > > Working great now, > Roger > > On Sat, Mar 3, 2018 at 9:35 AM, John Ralls wrote: > >> >> >> > On Mar 3, 2018, at 2:51 AM, Roger Miskowicz wrote: >> > >> > Thanks John, I looked at that line several times and didn't notice the >> '/'. >> > >> > Now using: >> > >> > cmake .. >> > >> > the output seems fine except for: >> > >> > -- Performing Test have_mod_mask - Failed >> > >> > Even so, I tried 'make' with the following failure: >> > >> > [ 48%] Building C object gnucash/gnome-utils/CMakeFiles >> /gncmod-gnome-utils.dir/account-quickfill.c.o >> > :0:38: error: redeclaration of enumerator ‘GDK_SHIFT_MASK’ >> > /usr/include/gtk-3.0/gdk/gdktypes.h:318:3: note: in expansion of macro >> ‘GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK’ >> >GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK, >> >^ >> > In file included from /usr/include/gtk-3.0/gdk/gdkap >> plaunchcontext.h:30:0, >> > from /usr/include/gtk-3.0/gdk/gdk.h:32, >> > from /usr/include/gtk-3.0/gtk/gtk.h:30, >> > from /home/roger/Projects/Gnucash/g >> nucash-2.7.5/gnucash/gnucash/gnome-utils/account-quickfill.h:43, >> > from /home/roger/Projects/Gnucash/g >> nucash-2.7.5/gnucash/gnucash/gnome-utils/account-quickfill.c:25: >> > /usr/include/gtk-3.0/gdk/gdktypes.h:233:3: note: previous definition >> of ‘GDK_SHIFT_MASK’ was here >> >GDK_SHIFT_MASK= 1 << 0, >> >^ >> > :0:52: error: expected ‘,’ or ‘}’ before ‘|’ token >> > /usr/include/gtk-3.0/gdk/gdktypes.h:318:3: note: in expansion of macro >> ‘GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK’ >> >GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK, >> >^ >> > gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/build.make:77: >> recipe for target >> 'gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/account-quickfill.c.o' >> failed >> > make[2]: *** >> > [gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/account-quickfill.c.o] >> Error 1 >> > CMakeFiles/Makefile2:8265: recipe for target >> 'gnucash/gnome-utils/CMakeFiles/gncmo
Re: Gnucash 2.7.5 Installation
Thanks John, I thought I had. Sorry for the inconvenience. Working great now, Roger On Sat, Mar 3, 2018 at 9:35 AM, John Ralls wrote: > > > > On Mar 3, 2018, at 2:51 AM, Roger Miskowicz wrote: > > > > Thanks John, I looked at that line several times and didn't notice the > '/'. > > > > Now using: > > > > cmake .. > > > > the output seems fine except for: > > > > -- Performing Test have_mod_mask - Failed > > > > Even so, I tried 'make' with the following failure: > > > > [ 48%] Building C object gnucash/gnome-utils/ > CMakeFiles/gncmod-gnome-utils.dir/account-quickfill.c.o > > :0:38: error: redeclaration of enumerator ‘GDK_SHIFT_MASK’ > > /usr/include/gtk-3.0/gdk/gdktypes.h:318:3: note: in expansion of macro > ‘GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK’ > >GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK, > >^ > > In file included from /usr/include/gtk-3.0/gdk/ > gdkapplaunchcontext.h:30:0, > > from /usr/include/gtk-3.0/gdk/gdk.h:32, > > from /usr/include/gtk-3.0/gtk/gtk.h:30, > > from /home/roger/Projects/Gnucash/ > gnucash-2.7.5/gnucash/gnucash/gnome-utils/account-quickfill.h:43, > > from /home/roger/Projects/Gnucash/ > gnucash-2.7.5/gnucash/gnucash/gnome-utils/account-quickfill.c:25: > > /usr/include/gtk-3.0/gdk/gdktypes.h:233:3: note: previous definition of > ‘GDK_SHIFT_MASK’ was here > >GDK_SHIFT_MASK= 1 << 0, > >^ > > :0:52: error: expected ‘,’ or ‘}’ before ‘|’ token > > /usr/include/gtk-3.0/gdk/gdktypes.h:318:3: note: in expansion of macro > ‘GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK’ > >GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK, > >^ > > gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/build.make:77: > recipe for target > 'gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/account-quickfill.c.o' > failed > > make[2]: *** > > [gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/account-quickfill.c.o] > Error 1 > > CMakeFiles/Makefile2:8265: recipe for target 'gnucash/gnome-utils/ > CMakeFiles/gncmod-gnome-utils.dir/all' failed > > make[1]: *** [gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/all] > Error 2 > > Makefile:160: recipe for target 'all' failed > > make: *** [all] Error 2 > > > > I am guessing I need to fix: > > > > -- Performing Test have_mod_mask - Failed > > > > but have no idea how. > > > > I have checked that all the following are installed, note I am not sure > it is important but I have swig3.0: > > > > sudo apt-get install intltool > > sudo apt-get install autoconf automake autotools-dev libsigsegv2 m4 > > sudo apt-get install libtool libltdl-dev > > sudo apt-get install libglib2.0-dev > > sudo apt-get install icu-devtools libicu-dev > > sudo apt-get install libboost-all-dev > > sudo apt-get install guile-2.0 guile-2.0-dev > > sudo apt-get install swig2.0 *** here I have swig3.0 > *** > > sudo apt-get install libxml++2.6-dev > > sudo apt-get install libxslt1-dev > > sudo apt-get install xsltproc > > sudo apt-get install libgtest-dev > > sudo apt-get install google-mock > > sudo apt-get install gtk+3.0 > > sudo apt-get install libgtk-3-dev > > sudo apt-get install libwebkit2gtk-4.0-37 > > sudo apt-get install libwebkit2gtk-4.0-dev > > > > Again, I would appreciate your support, > > Yes, you’re right about the have_mod_mask test. You reported in your first > email that you’d changed the include line in the code for that test--it’s > at the top of /gnucash/CMakeLists.txt. I told you to put it back, > but if you didn’t that’s likely the problem. > > If you did then the build of that snippet is failing for some other > reason. The output from all of the tests is in > /CMakeFiles/CMakeOutput.log. > Look there for the compile error that caused the test to fail. > > Regards, > John Ralls > > ___ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information. - Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.
Re: Gnucash 2.7.5 Installation
> On Mar 3, 2018, at 2:51 AM, Roger Miskowicz wrote: > > Thanks John, I looked at that line several times and didn't notice the '/'. > > Now using: > > cmake .. > > the output seems fine except for: > > -- Performing Test have_mod_mask - Failed > > Even so, I tried 'make' with the following failure: > > [ 48%] Building C object > gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/account-quickfill.c.o > :0:38: error: redeclaration of enumerator ‘GDK_SHIFT_MASK’ > /usr/include/gtk-3.0/gdk/gdktypes.h:318:3: note: in expansion of macro > ‘GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK’ >GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK, >^ > In file included from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:30:0, > from /usr/include/gtk-3.0/gdk/gdk.h:32, > from /usr/include/gtk-3.0/gtk/gtk.h:30, > from > /home/roger/Projects/Gnucash/gnucash-2.7.5/gnucash/gnucash/gnome-utils/account-quickfill.h:43, > from > /home/roger/Projects/Gnucash/gnucash-2.7.5/gnucash/gnucash/gnome-utils/account-quickfill.c:25: > /usr/include/gtk-3.0/gdk/gdktypes.h:233:3: note: previous definition of > ‘GDK_SHIFT_MASK’ was here >GDK_SHIFT_MASK= 1 << 0, >^ > :0:52: error: expected ‘,’ or ‘}’ before ‘|’ token > /usr/include/gtk-3.0/gdk/gdktypes.h:318:3: note: in expansion of macro > ‘GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK’ >GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK, >^ > gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/build.make:77: recipe > for target > 'gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/account-quickfill.c.o' > failed > make[2]: *** > [gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/account-quickfill.c.o] > Error 1 > CMakeFiles/Makefile2:8265: recipe for target > 'gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/all' failed > make[1]: *** [gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/all] > Error 2 > Makefile:160: recipe for target 'all' failed > make: *** [all] Error 2 > > I am guessing I need to fix: > > -- Performing Test have_mod_mask - Failed > > but have no idea how. > > I have checked that all the following are installed, note I am not sure it is > important but I have swig3.0: > > sudo apt-get install intltool > sudo apt-get install autoconf automake autotools-dev libsigsegv2 m4 > sudo apt-get install libtool libltdl-dev > sudo apt-get install libglib2.0-dev > sudo apt-get install icu-devtools libicu-dev > sudo apt-get install libboost-all-dev > sudo apt-get install guile-2.0 guile-2.0-dev > sudo apt-get install swig2.0 *** here I have swig3.0 *** > sudo apt-get install libxml++2.6-dev > sudo apt-get install libxslt1-dev > sudo apt-get install xsltproc > sudo apt-get install libgtest-dev > sudo apt-get install google-mock > sudo apt-get install gtk+3.0 > sudo apt-get install libgtk-3-dev > sudo apt-get install libwebkit2gtk-4.0-37 > sudo apt-get install libwebkit2gtk-4.0-dev > > Again, I would appreciate your support, Yes, you’re right about the have_mod_mask test. You reported in your first email that you’d changed the include line in the code for that test--it’s at the top of /gnucash/CMakeLists.txt. I told you to put it back, but if you didn’t that’s likely the problem. If you did then the build of that snippet is failing for some other reason. The output from all of the tests is in /CMakeFiles/CMakeOutput.log. Look there for the compile error that caused the test to fail. Regards, John Ralls ___ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information. - Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.
Re: Gnucash 2.7.5 Installation
Thanks John, I looked at that line several times and didn't notice the '/'. Now using: cmake .. the output seems fine except for: -- Performing Test have_mod_mask - Failed Even so, I tried 'make' with the following failure: [ 48%] Building C object gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/account-quickfill.c.o :0:38: error: redeclaration of enumerator ‘GDK_SHIFT_MASK’ /usr/include/gtk-3.0/gdk/gdktypes.h:318:3: note: in expansion of macro ‘GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK’ GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK, ^ In file included from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:30:0, from /usr/include/gtk-3.0/gdk/gdk.h:32, from /usr/include/gtk-3.0/gtk/gtk.h:30, from /home/roger/Projects/Gnucash/gnucash-2.7.5/gnucash/gnucash/gnome-utils/account-quickfill.h:43, from /home/roger/Projects/Gnucash/gnucash-2.7.5/gnucash/gnucash/gnome-utils/account-quickfill.c:25: /usr/include/gtk-3.0/gdk/gdktypes.h:233:3: note: previous definition of ‘GDK_SHIFT_MASK’ was here GDK_SHIFT_MASK= 1 << 0, ^ :0:52: error: expected ‘,’ or ‘}’ before ‘|’ token /usr/include/gtk-3.0/gdk/gdktypes.h:318:3: note: in expansion of macro ‘GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK’ GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK, ^ gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/build.make:77: recipe for target 'gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/account-quickfill.c.o' failed make[2]: *** [gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/account-quickfill.c.o] Error 1 CMakeFiles/Makefile2:8265: recipe for target 'gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/all' failed make[1]: *** [gnucash/gnome-utils/CMakeFiles/gncmod-gnome-utils.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 I am guessing I need to fix: -- Performing Test have_mod_mask - Failed but have no idea how. I have checked that all the following are installed, note I am not sure it is important but I have swig3.0: sudo apt-get install intltool sudo apt-get install autoconf automake autotools-dev libsigsegv2 m4 sudo apt-get install libtool libltdl-dev sudo apt-get install libglib2.0-dev sudo apt-get install icu-devtools libicu-dev sudo apt-get install libboost-all-dev sudo apt-get install guile-2.0 guile-2.0-dev sudo apt-get install swig2.0 *** here I have swig3.0 *** sudo apt-get install libxml++2.6-dev sudo apt-get install libxslt1-dev sudo apt-get install xsltproc sudo apt-get install libgtest-dev sudo apt-get install google-mock sudo apt-get install gtk+3.0 sudo apt-get install libgtk-3-dev sudo apt-get install libwebkit2gtk-4.0-37 sudo apt-get install libwebkit2gtk-4.0-dev Again, I would appreciate your support, Regards, Roger On Sat, Mar 3, 2018 at 12:22 AM, John Ralls wrote: > > > > On Mar 2, 2018, at 2:48 PM, Roger Miskowicz wrote: > > > > I am having difficulty building gnucash 2.7.5 from the latest git clone. > > > > I have modified by: > > > > adding: > > cmake_minimum_required(VERSION 3.5) > > > > changed: > > #include > > to: > > #include > > > > > I am using: > > > > cmake -D CMAKE_INSTALL_PREFIX=/~/gnucash/gnucash-devel -D > > CMAKE_PREFIX_PATH=~/gnucash ../gnucash > > > > > which gives me the following errors: > > > > 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”. > > > > My OS is: Ubuntu 16.04.4 LTS > > > > I would appreciate any help in addressing these errors as well as any > > related guidance for building 2.7.5. > > First, remove your customizations. They’re wrong. > > Second, use $HOME instead of ~. The shell understands ~ but cmake does > not. BTW, even the shell doesn’t understand /~/. That’s why you got the > “file problem creating directory” error. > > Third, don’t use CMAKE_PREFIX_PATH unless you have custom-built > dependencies that you want to build against instead of the system-provided > ones. Even if you do, build, test, and run GnuCash with the system-provided > ones first so that you have a good baseline to build on. > > Finally, you don’t say what is the path to your build directory, but the > “unknown cmake command” error suggests that it’s a subdirectory of the > source directory. If that’s the case the last argument to cmake should be > “..” rather than “../gnucash”. There is a CMakeLists.txt in gnucash, but > that bypasses all of the configuration done by the root CMakeLists.txt. > > Regards, > John Ralls > > ___ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user If you are using Nabble or Gmane, please see https:/
Re: Gnucash 2.7.5 Installation
> On Mar 2, 2018, at 2:48 PM, Roger Miskowicz wrote: > > I am having difficulty building gnucash 2.7.5 from the latest git clone. > > I have modified by: > > adding: > cmake_minimum_required(VERSION 3.5) > > changed: > #include > to: > #include > > I am using: > > cmake -D CMAKE_INSTALL_PREFIX=/~/gnucash/gnucash-devel -D > CMAKE_PREFIX_PATH=~/gnucash ../gnucash > > which gives me the following errors: > > 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”. > > My OS is: Ubuntu 16.04.4 LTS > > I would appreciate any help in addressing these errors as well as any > related guidance for building 2.7.5. First, remove your customizations. They’re wrong. Second, use $HOME instead of ~. The shell understands ~ but cmake does not. BTW, even the shell doesn’t understand /~/. That’s why you got the “file problem creating directory” error. Third, don’t use CMAKE_PREFIX_PATH unless you have custom-built dependencies that you want to build against instead of the system-provided ones. Even if you do, build, test, and run GnuCash with the system-provided ones first so that you have a good baseline to build on. Finally, you don’t say what is the path to your build directory, but the “unknown cmake command” error suggests that it’s a subdirectory of the source directory. If that’s the case the last argument to cmake should be “..” rather than “../gnucash”. There is a CMakeLists.txt in gnucash, but that bypasses all of the configuration done by the root CMakeLists.txt. Regards, John Ralls ___ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information. - Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.