[GNC] compiling 3.2 on linux (ubuntu)

Stephen M. Butler kg7je at arrl.net
Sun Sep 30 12:58:59 EDT 2018


On 09/29/2018 10:52 PM, Jeff Abrahamson wrote:
> I downloaded 3.2.tar.bz.  After unbzipping, I do this (ubuntu 18.04.1):
>
>     $ mkdir -p gnucash-3.2/build-3.2
>     $ cd gnucash-3.2/build-3.2
>     $ cmake ../gnucash/
>     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".
>
>
>     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
>     "/home/jeff/.../gnucash/gnucash-3.2/build-3.2/CMakeFiles/CMakeOutput.log".
>     See also
>     "/home/jeff/.../gnucash/gnucash-3.2/build-3.2/CMakeFiles/CMakeError.log".
>     $
>
> CMakeError.log suggests the real problem is not finding gdk/gdk.h.  This
> is provided from two packages, libgtk-3-dev and libgtk2.0-dev.  But
> installing those doesn't change the error.  (I manually confirm gdk.h is
> present: /usr/include/gtk-2.0/gdk/gdk.h.)
>
> Thinking this was a caching problem, I removed and recreated
> ./build-3.2/.  Same problem.
>
> Any pointers?
>
I also compile on Ubuntu 18.04.  However, I make my build folder at the
same level as the gnucash source.  I think your cmake is setup assuming
you would go up a level and over and back down to gnucash.  However, you
are not setup that way.

Either do cmake ..

or move your build folder up to the same level as the source.  On my
system I have a main Projects folder (several different projects of
which GnuCash is just one more):


$HOME/Projects/GnuCash/gnucash-3.2

$HOME/Projects/GnuCash/GNC-Build-3.2

cd $HOME/Projects/GnuCash/GNC-Build-3.2

cmake ../gnucash-3.2


Best

--Steve

-- 
Stephen M Butler, PMP, PSM
Stephen.M.Butler51 at gmail.com
kg7je at arrl.net
253-350-0166
-------------------------------------------
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8



More information about the gnucash-user mailing list