[GNC] 5.4 build on linux
Stephen M. Butler
kg7je at arrl.net
Mon Sep 25 20:10:49 EDT 2023
Mike,
I'm running Ubuntu 23.04. In my GnuCash folder I have a sub-folder
called gnucash that is a git clone. From that folder I do a git pull
and git describe so I know what the latest is.
Then I run a script in the GnuCash folder called build-gnucash that is
listed below. That generates a folder called Build-gnucash_5.4-8 (so
the 8th patch since 5.4). It built clean. So now I go into the old
Build-gnucash-5.3-12 folder and do a sudo make uninstall. Move to the
Build-gnucash_5.4-8 folder and do a sudo make install. Upgrade completed.
After a few days in 5.4-8 I'll remove the 5.3-12 folder. But it is
there in case I need to fall back
Here is the script that sits in the GnuCash folder.
#!/bin/bash
#
# build-gnucash
#
# NOte: do a git pull followed by git checkout of version desired
before starting script
cd $HOME/Projects/GnuCash/gnucash
GITVER=$(git describe)
MYVER=${GITVER%-*}
MYRPR=Build-gnucash_${MYVER}
echo $MYVER
cd ..
rm -rf $MYRPR > /dev/null
mkdir $MYRPR
cd $MYRPR
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ../gnucash
make
echo ## sudo make install
--Steve
On 9/25/23 15:10, Mike Commissaris wrote:
> Downloaded the file from both Sourceforge and Git and when I tried to build
> I failed with:
> make: *** No targets specified and no makefile found. Stop.
> Thinking the build instructions may have changed I tried to look at the
> Wiki and it appears the
> Wiki is down.
More information about the gnucash-user
mailing list