LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-11-2018, 09:52 PM   #1
ljb643
Member
 
Registered: Nov 2003
Posts: 402

Rep: Reputation: Disabled
Building and using GnuCash-3.0 with Slackware


I started trying out the recently released gnucash-3.0, building from source and testing it out. Is anyone else doing this with Slackware 14.2? Maybe comparing notes would be helpful. Here's some of what I have so far.

1. Dropped dependencies: Does not need goffice or libgnomecanvas anymore.

2. Changed dependency: Now needs Webkitgtk2 for the Webkit2 API.
I'm using webkitgtk-2.20.0 from https://webkitgtk.org/

3. Webkitgtk needs webp.
I'm using webp-0.6.1 from https://developers.google.com/speed/webp/download

4. New dependency: Googletest (gtest/gmock)
I'm using googletest-1.8.0 from https://github.com/google/googletest

5. New dependency: Boost libraries.
Slackware 14.2 has boost-1.59.9 which works.

6. Changed dependency: Now uses Gtk+3 not Gtk+2.
Slackware 14.2 has Gtk+3-18.9 which works.

7. Gnucash and webkitgtk now use cmake to configure, not Gnu autoconf.
Cmake-3.5.2 in Slackware 14.2 works.

More to come, including specific fixes to get the parts to build, if there is interest.
 
Old 04-11-2018, 10:02 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 14,261
Blog Entries: 24

Rep: Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891
Tom Lawrence of the Sunday Morning Linux Review sings the praises of KMyMoney. He uses it for his business. (Me, I use paper. I understand it and know how it works.)

As it is a KDE application, it might work and play better with Slackware. You might want to take a look at it.
 
Old 04-12-2018, 03:24 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,303

Rep: Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461Reputation: 5461
Quote:
Originally Posted by frankbell View Post
Tom Lawrence of the Sunday Morning Linux Review sings the praises of KMyMoney. He uses it for his business. (Me, I use paper. I understand it and know how it works.)

As it is a KDE application, it might work and play better with Slackware. You might want to take a look at it.
KMymoney is already part of my Plasma 5 package set for Slackware-current. You would have to be running -current if you want to replace its KDE4 with Plasma 5 and see how KMymoney works and performs.
 
Old 04-12-2018, 05:28 AM   #4
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 879

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I tried GnuCash a while back with Slackware. I switched to KMyMoney several years ago. I've been using it since. Both are not exactly what I was looking for but, KMyMoney was the closest. Plus it works well with Slackware. That said I may give GnuCash another look.

Last edited by chrisretusn; 04-12-2018 at 05:41 AM.
 
Old 04-12-2018, 07:38 AM   #5
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
FWIW there's a gnucash3 SlackBuild in the SBo pending queue, and it'll very probably be in the next public release.
 
1 members found this post helpful.
Old 04-12-2018, 12:25 PM   #6
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 FVWM
Posts: 560

Rep: Reputation: 152Reputation: 152
I'm looking forward to reading this thread. I have used GNUCash for five years with my small business, now running 2.6.21. Very interested in how this will turn-out.
 
Old 04-13-2018, 08:59 PM   #7
ljb643
Member
 
Registered: Nov 2003
Posts: 402

Original Poster
Rep: Reputation: Disabled
(This is a thread about building and using GnuCash-3.0 on Slackware 14.2.
Let's keep posts about other topics in other threads, OK?)

Building and installing GnuCash 3.0 dependencies

Do these in the following order:
1. Make sure the required Slackware packages are installed, including Boost, CMake, and Gtk+3.

2. Build and install webp. I put it in /usr/local.
The default configure for webp does not include all the parts that webkitgtk needs, and 'cmake' for webkitgtk will tell you webp isn't installed even though it is. You need to include the 2 "mux" components. I used this for webp:

Code:
$ ./configure --prefix=/usr/local \
      --mandir=/usr/local/man --disable-static \
      --enable-libwebpmux --enable-libwebpdemux
$ make
$ su
# make install-strip
# ldconfig
3. Build and install webkitgtk. I put it in /usr/local.
My method for getting a workable Webkitgtk configuration goes like this. Run cmake. It fails, saying something is missing. Add the option to disable whatever it failed on. Repeat until done.

I ended up with this for webkitgtk:

Code:
$ mkdir build; cd build
$ cmake -D CMAKE_BUILD_TYPE=Release \
  -D CMAKE_INSTALL_PREFIX=/usr/local \
  -D ENABLE_GEOLOCATION=OFF \
  -D ENABLE_INTROSPECTION=OFF \
  -D ENABLE_SPELLCHECK=OFF \
  -D USE_LIBHYPHEN=OFF \
  -D USE_WOFF2=OFF \
  -D ENABLE_MEDIA_SOURCE=OFF \
  -D USE_GSTREAMER_GL=OFF \
  -D PORT=GTK \
    ..
$ make
$ su
# make install/strip
# ldconfig
Note it took many hours for Webkitgtk to build on my PC.

4. Build and install googletest. This also went into /usr/local.
The default setup for googletest does not install all the files needed by gnucash, and 'cmake' for gnucash will tell you googletest isn't installed even though it is. I couldn't figure out how to get googletest cmake to include them, so I did it manually. I ended up with this for googletest:

Code:
$ mkdir build; cd build
$ cmake -D CMAKE_INSTALL_PREFIX=/usr/local ..
$ make
$ su
# make install/strip
# mkdir -p /usr/local/src/gmock
# cp -r ../src /usr/local/src/gmock

Next part: configure and build gnucash.
 
Old 04-15-2018, 11:37 PM   #8
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 FVWM
Posts: 560

Rep: Reputation: 152Reputation: 152
So far have rebuilt GNUCash 2.6.21 from the slackbuilds by simply modifying the slackbuild and info files to the correct file. But that doesn't work for the GNUCash 3.0 version. For 3.0 installed all the dependencies simply using slackbuilds. I've used the available 14.2 slackbuilds for googletest (on slackware is gtest) and webkit2gtk-3.0 (webkitgtk-2.4.11 built with gtk+3 installed on the system). However, when I pull down the gnucash.SlackBuild for 2.6.21 and change all the appropriate 2.6.21 to 3.0 it fails because the gnucash-3.0.tar.bz2 doesn't have a configure like gnucash-2.6-20.tar.bz2. I'm not really sure how to proceed at this point? Suggestions?

@55020 - any chance you might post the slackbuild script for 3.0 that is in the pending slackbuilds for Slackware next?

Last edited by bamunds; 04-15-2018 at 11:38 PM.
 
Old 04-16-2018, 01:26 AM   #9
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,873

Rep: Reputation: 1132Reputation: 1132Reputation: 1132Reputation: 1132Reputation: 1132Reputation: 1132Reputation: 1132Reputation: 1132Reputation: 1132
it has been postponed since there are some works needs to be done before gnucash3 can be submitted to SBo
 
Old 04-16-2018, 07:26 PM   #10
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 FVWM
Posts: 560

Rep: Reputation: 152Reputation: 152
Thanks willysr. So I guess the next step would be to build manually with a manual configure?
 
Old 04-16-2018, 08:49 PM   #11
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,873

Rep: Reputation: 1132Reputation: 1132Reputation: 1132Reputation: 1132Reputation: 1132Reputation: 1132Reputation: 1132Reputation: 1132Reputation: 1132
if you can wait, please wait for the SBo version
 
Old 04-16-2018, 10:50 PM   #12
Ne01eX
Member
 
Registered: Mar 2018
Location: Ekaterinburg region, Ural, Russian Federation
Distribution: Slackware, RTK GNU/Linux
Posts: 173

Rep: Reputation: 22
GnuCash-3.0 maybe built with gtkwebkit-4.0 (webkitgtk-2.20.1.tar.xz)?
 
Old 04-17-2018, 06:23 PM   #13
ljb643
Member
 
Registered: Nov 2003
Posts: 402

Original Poster
Rep: Reputation: Disabled
If you want to use Gnucash to manage your finances, I recommend staying with 2.6.x for now. I'm seeing enough minor but annoying problems in 3.0 (details to come) that I'm not ready to upgrade. Some bugs have been fixed and the fixes will apparently be in the next release 3.1. If you want to build it yourself, test it, play with it, keep reading.


Building and installing GnuCash 3.0

Although I put its dependencies into /usr/local, I built and installed gnucash for /opt/gnucash. Note that I left off some optional parts that you might want, and those parts might need additional dependencies. In particular, I left off SQL backends and OFX support.

I used the following command to configure gnucash. The GMOCK_ROOT value is not really where GMOCK is installed, but it lets gnucash find the extra files installed above. If anyone has a cleaner way to do this, please post it.

Code:
$ mkdir build; cd build
$ cmake -D CMAKE_INSTALL_PREFIX=/opt/gnucash \
  -D WITH_SQL=OFF \
  -D WITH_OFX=OFF \
  -D WITH_AQBANKING=OFF \
  -D DISABLE_NLS=ON \
  -D GMOCK_ROOT=/usr/local/src/gmock \
  ..
$ make
$ su
# make install/strip
I needed to make one fix after installing, or Gnucash would crash on startup because it installed a file in one place and looks for it somewhere else. I think this will be fixed in gnucash-3.1, and is caused by Cmake deciding to redirect a file because of the /opt installation path. No such fix, or a different fix, may be needed if you use a different installation prefix.
Code:
# mkdir -p /opt/gnucash/etc/gnucash
# mv /etc/opt/gnucash/gnucash/environment /opt/gnucash/etc/gnucash/
# rm -r /etc/opt/gnucash
Note that if Gnucash has startup problems, it may seem to exit without any messages (even if you run it from a terminal). Gnucash writes error messages to /tmp/gnucash.trace instead of to error output.

That gets me to a working gnucash-3.0, run with: /opt/gnucash/bin/gnucash

Next part: Experiences
 
Old 04-18-2018, 02:15 AM   #14
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 536

Rep: Reputation: 56
Be warned that there is an error in the gnucash.SlackBuild script in SlackBuilds.org, it includes the flag --enable-register2 when it shouldn't.

Inclusion of this flag can have bizarre consequences in gnucash 2.6.20 and any subsequent version.

The gnucash developers have warned that the flag isn't ready for gnucash 3.0 either.
 
Old 04-18-2018, 05:06 AM   #15
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by aikempshall View Post
Be warned that there is an error in the gnucash.SlackBuild script in SlackBuilds.org, it includes the flag --enable-register2 when it shouldn't.

Inclusion of this flag can have bizarre consequences in gnucash 2.6.20 and any subsequent version.

The gnucash developers have warned that the flag isn't ready for gnucash 3.0 either.
Len (the maintainer) sent us an update for that two days ago, and it's queued for the next public update.

https://git.slackbuilds.org/slackbui...a23d8a94f88b07
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED]Building gnucash via sbopkg on Slackware 64 14.2 multios Slackware 12 01-28-2017 05:49 PM
gnucash on Slackware 14.1 aikempshall Slackware 6 02-13-2014 10:56 PM
guile version check failed while building gnucash zlya Linux - Software 3 02-22-2009 11:48 PM
gnucash 2 and slackware 11 pete_bogg Slackware 1 04-10-2006 06:03 PM
gnucash for Slackware rharvey@cox Slackware 2 01-31-2004 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration