Re: [GNC] compiling 3.2 on linux (ubuntu)

2018-09-30 Thread Stephen M. Butler
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 CMP".
> 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.butle...@gmail.com
kg...@arrl.net
253-350-0166
---
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8

___
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: [GNC] compiling 3.2 on linux (ubuntu)

2018-09-30 Thread John Ralls



> On Sep 29, 2018, at 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 CMP".
>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?

cmake ..
*not* cmake ../gnucash

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.


[GNC] compiling 3.2 on linux (ubuntu)

2018-09-29 Thread Jeff Abrahamson
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 CMP".
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?

-- 

Jeff Abrahamson
+33 6 24 40 01 57
+44 7920 594 255

http://p27.eu/jeff/
http://transport-nantes.com/

___
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.