SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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/
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.
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.
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 04:41 AM.
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.
(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.
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
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?
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.