Gnucash 2.7.5 Installation
Roger Miskowicz
rmisko11 at gmail.com
Sat Mar 3 04:51:37 EST 2018
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
<command-line>: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,
^
<command-line>: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 <jralls at ceridwen.us> wrote:
>
>
> > On Mar 2, 2018, at 2:48 PM, Roger Miskowicz <rmisko11 at gmail.com> 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 <gdk/gdk.h>
> > to:
> > #include <gdk-3.0/gdk/gdk.h>
>
> >
> > 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
>
>
More information about the gnucash-user
mailing list