User talk:Tverrbjelke

From GnuCash
Jump to: navigation, search

Building On Linux

I've rolled back your edits to Building On Linux because we're two weeks away from releasing GnuCash 4.0, at which point there is little use for building GnuCash 3, and your recipe is version 3 specific (GMOCK_ROOT is no longer required and GTEST_ROOT should point at the parent directory of both googletest and googlemock. More important, though, is that they're wrong: Google Test and Google Mock should not be built as shared libraries and installed. Just install the sources and point GTEST_ROOT and the main directory... but that's not necessary on Linux, all Linux distros provide a googletest package and the GnuCash build system can find it without setting GTEST_ROOT. Finally, gnc_gtest_configure does check for shared libraries as some distros used to package GoogleTest that way, but it doesn't use GTEST_ROOT to do so. If the install location is outside the usual paths you should add the path to CMAKE_LIBRARY_PATH; CMAKE_PREFIX_PATH might work too as long as you need only one path in it as we abuse it in a way that would break if it had more than one path. John Ralls (talk) 03:51, 19 June 2020 (UTC)

Another weakness
Copying major blocks will often result in update anomalies: Something changes, an editor updates the first occurrence, but does not see the secound. Later users are confused. Better insert a branch in the example like
# Install FlatPak (on debian based distributions, others have to replace 'apt-get install'):
sudo apt-get install flatpak

# Register FlatHub repository for a system app (available to all users):
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# or only you:
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

# Install GnuCash ...
# for all users:
#  sudo is only needed for a --system install, if the user is not in the 'sudo' group
#  --system is the default if --user is not specified
sudo flatpak install --system flathub org.gnucash.GnuCash
# or only you:
flatpak install --user flathub org.gnucash.GnuCash

# Run GnuCash:
flatpak run org.gnucash.GnuCash
--Fell (talk) 06:05, 19 June 2020 (UTC)