T
Termux10mo ago
Classic

Having troubles building GnuCash

Hi. First, I have not enough experiences building a C project. I am having troubles building GnuCash. (https://github.com/termux/termux-packages/issues/20259) I followed the building guide(https://github.com/termux/termux-packages/wiki/Building-packages) and written a build.sh file. The docker setup looked good to me. But while executing ./build-package.sh -I gnucash, the next errors occurred.
-- Using guile-3.0.x
CMake Error at common/cmake_modules/GncAddSchemeTargets.cmake:63 (message):
Could not determine Guile prefix:

qemu-aarch64-static: Could not open '/system/bin/linker64': No such file or
directory
Call Stack (most recent call first):
common/cmake_modules/GncAddSchemeTargets.cmake:85 (find_one_guile_dir)
CMakeLists.txt:395 (find_guile_dirs)


CMake Error at common/cmake_modules/GncAddSchemeTargets.cmake:18 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
common/cmake_modules/GncAddSchemeTargets.cmake:68 (make_unix_path)
common/cmake_modules/GncAddSchemeTargets.cmake:85 (find_one_guile_dir)
CMakeLists.txt:395 (find_guile_dirs)
-- Using guile-3.0.x
CMake Error at common/cmake_modules/GncAddSchemeTargets.cmake:63 (message):
Could not determine Guile prefix:

qemu-aarch64-static: Could not open '/system/bin/linker64': No such file or
directory
Call Stack (most recent call first):
common/cmake_modules/GncAddSchemeTargets.cmake:85 (find_one_guile_dir)
CMakeLists.txt:395 (find_guile_dirs)


CMake Error at common/cmake_modules/GncAddSchemeTargets.cmake:18 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
common/cmake_modules/GncAddSchemeTargets.cmake:68 (make_unix_path)
common/cmake_modules/GncAddSchemeTargets.cmake:85 (find_one_guile_dir)
CMakeLists.txt:395 (find_guile_dirs)
The message is from a CMake file. You can see it at GitHub: https://github.com/Gnucash/gnucash/blob/a716cca4/common/cmake_modules/GncAddSchemeTargets.cmake#L63 I have never read a CMake file, so I guess there are function definitions and functions calls on the file, and 85-95 lines are calling find_one_guile_dir several times. But do not understand further. My WIP build.sh file is here: https://github.com/lens0021/termux-packages/commit/dbf90db3c4bf78043c77a1462abf6122f9d24de6 Could anyone help me to solve this problem? Regards.
GitHub
[Package]: gnucash · Issue #20259 · termux/termux-packages
Why is it worth to add this package? GnuCash is an offline tool. A user which use GnuCash in multiple devices should keep their SQL file updated. I am tired to sync the file using GDrive or rclone....
GitHub
Building packages
A package build system for Termux. Contribute to termux/termux-packages development by creating an account on GitHub.
GitHub
gnucash/common/cmake_modules/GncAddSchemeTargets.cmake at a716cca43...
GnuCash Double-Entry Accounting Program. Contribute to Gnucash/gnucash development by creating an account on GitHub.
2 Replies
Classic
ClassicOP4w ago
GitHub
addpkg(x11/gnucash): 5.13 by acozzette · Pull Request #25962 · te...
Credit goes to @robertkirkman for doing most of the hard work of actually getting this to build! I largely copied Robert's changes with permission. Fixes #20259.
owokitty
owokitty4w ago
yes please try pkg install x11-repo && pkg install gnucash

Did you find this page helpful?