Re: GnuCash 2.7.4 Released

2018-02-08 Thread John Ralls


> On Feb 8, 2018, at 3:18 PM, Klaus Dahlke  wrote:
> 
> John,
> thanks for that, I am almost there.
> I did:
> 
> cmake -G Ninja -D CMAKE_INSTALL_PREFIX=/mnt/rd/gnucash_dev -D WITH_SQL=ON -D 
> WITH_AQBANKING=ON -D WITH_GNUCASH=ON ..
> 
> which run through without issue.
> 
> But then when running 'ninja' an error occures at:
> 
> [785/905] Generating 
> ../../../lib64/gnucash/scm/ccache/2.2/qif-import/qif-import.go
> FAILED: lib64/gnucash/scm/ccache/2.2/qif-import/qif-import.go 
> cd /mnt/rd/gnucash-2.7.4/build/gnucash/import-export/qif-imp && 
> /usr/bin/cmake -E env 
> LD_LIBRARY_PATH=/mnt/rd/gnucash-2.7.4/build/lib64:/mnt/rd/gnucash-2.7.4/build/lib64/gnucash:
>  GNC_UNINSTALLED=YES GNC_BUILDDIR=/mnt/rd/gnucash-2.7.4/build 
> GUILE_LOAD_PATH=/mnt/rd/gnucash-2.7.4/gnucash/import-export/qif-imp 
> GUILE_LOAD_COMPILED_PATH=/mnt/rd/gnucash-2.7.4/build/lib64/gnucash/scm/ccache/2.2
>  
> GNC_MODULE_PATH=/mnt/rd/gnucash-2.7.4/build/lib64:/mnt/rd/gnucash-2.7.4/build/lib64/gnucash:
>  /usr/bin/guile -e '(@@ (guild) main)' -s /usr/bin/guild compile -o 
> /mnt/rd/gnucash-2.7.4/build/lib64/gnucash/scm/ccache/2.2/qif-import/qif-import.go
>  /mnt/rd/gnucash-2.7.4/gnucash/import-export/qif-imp/qif-import.scm
> Backtrace:
> In scripts/compile.scm:
>   251:26 19 (_ _)
> In system/base/target.scm:
> 57:6 18 (with-target _ _)
> In system/base/compile.scm:
>152:6 17 (compile-file _ #:output-file _ #:from _ #:to _ #:env _ …)
> 43:4 16 (call-once _)
> In ice-9/boot-9.scm:
>841:4 15 (with-throw-handler _ _ _)
> In system/base/compile.scm:
>59:11 14 (_)
>   155:11 13 (_ #)
>   235:18 12 (read-and-compile # #:from _ # …)
>   183:32 11 (compile-fold (#) …)
> In ice-9/boot-9.scm:
>   2312:4 10 (save-module-excursion #)
> In language/scheme/compile-tree-il.scm:
>31:15  9 (_)
> In ice-9/psyntax.scm:
>  1235:36  8 (expand-top-sequence ((use-modules (gnucash #))) _ _ #f …)
>  1182:24  7 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
>   285:10  6 (parse _ (("placeholder" placeholder)) (()) _ c (# #) #)
> In ice-9/boot-9.scm:
>  3365:20  5 (process-use-modules _)
>   222:17  4 (map1 (((gnucash app-utils
>  3366:31  3 (_ ((gnucash app-utils)))
>   2791:6  2 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ …)
> In unknown file:
>   1 (scm-error misc-error #f "~A ~S" ("no code for modu…" …) …)
> In ice-9/boot-9.scm:
>   752:25  0 (dispatch-exception _ _ _)
> 
> ice-9/boot-9.scm:752:25: In procedure dispatch-exception:
> no code for module (gnucash app-utils)
> 
> 
> I have guile-1.8, guile-2.0 and guile-2,2 on the system, but idoesn't seems 
> that there is a switch for teh guile version for cmake

Klaus,

That usually means that guile is finding the wrong libgncmod-apputils.so. If 
you have an installed /usr/bin/gnucash and associated libraries you need to 
hide them somehow so that when guile tries to dlopen libgncmod-apputils.so it 
gets the one you’ve just built. If it’s just a libgncmod-apputils.so from a 
previous ninja install then it’s easier, just delete it.

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: GnuCash 2.7.4 Released

2018-02-06 Thread John Ralls


> On Feb 6, 2018, at 2:37 PM, Klaus Dahlke  wrote:
> 
> Hi John,
> I tied to complie gnucash 2.7.4 on Arch Linux with cmake without success. For 
> comparison I cloned the git repository, installed and could compile 
> successfully via autogen.sh, configure and make
> 
> The error when using cmake is:
> [mb40 gnucash_build]# cmake ../gnucash
> -- The C compiler identification is GNU 7.3.0
> -- The CXX compiler identification is GNU 7.3.0
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Performing Test have_mod_mask
> -- Performing Test have_mod_mask - Failed
> CMake Error at gnome/gschemas/CMakeLists.txt:16 (add_gschema_targets):
>  Unknown CMake command "add_gschema_targets".
> 
> 
> CMake Warning (dev) in CMakeLists.txt:
>  No cmake_minimum_required command is present.  A line of code such as
> 
>cmake_minimum_required(VERSION 3.10)
> 
>  should be added at the top of the file.  The version specified may be lower
>  if you wish to support older CMake versions for this project.  For more
>  information run "cmake --help-policy CMP".
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> -- Configuring incomplete, errors occurred!
> See also "/mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeOutput.log".
> See also "/mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeError.log".
> 
> 
> 
> CMakeError.log:
> Performing C SOURCE FILE Test have_mod_mask failed with the following output:
> Change Dir: /mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeTmp
> 
> Run Build Command:"/usr/bin/make" "cmTC_29946/fast"
> /usr/bin/make -f CMakeFiles/cmTC_29946.dir/build.make 
> CMakeFiles/cmTC_29946.dir/build
> make[1]: Entering directory 
> '/mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeTmp'
> Building C object CMakeFiles/cmTC_29946.dir/src.c.o
> /usr/bin/cc   -Dhave_mod_mask   -o CMakeFiles/cmTC_29946.dir/src.c.o   -c 
> /mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeTmp/src.c
> /mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeTmp/src.c:2:10: fatal 
> error: gdk/gdk.h: No such file or directory
> #include 
>  ^~~
> compilation terminated.
> make[1]: *** [CMakeFiles/cmTC_29946.dir/build.make:66: 
> CMakeFiles/cmTC_29946.dir/src.c.o] Error 1
> make[1]: Leaving directory 
> '/mnt/rd/gnucash-2.7.4/gnucash_build/CMakeFiles/CMakeTmp'
> make: *** [Makefile:126: cmTC_29946/fast] Error 2
> 
> Source file was:
> 
> #include 
> 
> int main (int argc, char** argv) {
>  GdkModifierIntent foo = GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK;
>  return 0;
> }
> 
> 
> Also setting defininf CMAKE_PREFIX_PATH doesn't help:
> echo $CMAKE_PREFIX_PATH
> /usr/include/gtk-3.0
> 
> 
> Any ideas?


Please remember to copy the list on all replies. "Reply All" works well.

You're not starting at the top level CMakeFile. Tell it "cmake .." instead of 
"cmake ../gnucash".

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


GnuCash 2.7.4 Released

2018-02-03 Thread John Ralls
The Gnucash Development Team is pleased to release Gnucash 2.7.4, the fifth 
release of an unstable series leading to Gnucash 3.0

Notice that we've decided that beginning with the upcoming major release we 
will use two-digit release numbers and that the next stable release will be 
3.0. Maintenance releases will be 3.1, 3.2, etc. The next unstable release will 
be 3.900 and will lead to 4.0.

This release is UNSTABLE and SHOULD NOT BE USED in production.

This release changes file locations, binding APIs, report options, and can make 
your data file no longer compatible with previous versions. See the Update 
Notes Page for details.

See the KNOWN PROBLEMS list at the bottom of the announcement.

We appologize to translators, this release includes a few string changes: A 
couple of documentation strings for the Alphavantage API Key preference and 
some button mnemonic changes which change the msgid by adding an underscore.

New Features for Users

• A new preference panel for the Alphavantage API key so that 
Finance::Quote users need not edit /etc/gnucash/environment.
• On Macs the Reconcile Window's menu moved to the menubar.
• The detected Finance::Quote version is displayed in the About box.
• Removed all references to the various Yahoo! quote sources and made 
Alphavantage the default.
For Developers and Distro packagers:

• The autotools build system has been removed.
• Add a "pot" target to the build system so that translators can easily 
generate a new gnucash.pot from a git repository.
• Improve handling of generated distributable files
• Fix make dist on a clean checkout:
cmake with unix makefiles fails to resolve dist dependencies added from 
COPY_FROM_BUILD if these dependencies aren't built yet. This commit replaces 
the COPY_FROM_BUILD based logic with two new functions 'dist_add_configured' 
and 'dist_add_generated' to indicate which files should be included in the dist 
tarball. The latter also adds a target level dependency to the dist tarball 
custom command. Hence the former should be used for files that get generated 
during a cmake run while the latter should be used for files generated as the 
result of a 'make/ninja-build' run (like files for which an add_custom_command 
rule exists). Note: this commit also temporarily disables the dist target when 
building from a tarball (and hence it won't be tested in distcheck either). 
This will be handled in a future commit.

• Add DL_LIBS to gncmod-gnome-utils target. Fixes a build problem in 
FreeBSD.
• Detect presence or absence of libxml2 and makeinfo during 
configuration; abort if the first is missing and don't build the (mostly 
obsolete) texinfo documentation if the latter is. Document both in 
README.dependencies.
• Replaced Timespec with time64 in the Scheme and Python bindings, 
introducing many new C time64 functions to accomodate the replacement. Timespec 
will eventually be removed from the C API as well.
Bugs fixed in this release

• Bug 787497 - Disabling OFX, AqBanking or python-bindings support 
cripples the dist build target
• Bug 790526 - Mathematical bug Actually about the number of weeks 
from/to 1 Jan 1970.
• Bug 790845 - 2.7.3: massive test failures on some architectures
• Bug 792106 - Wrong dates displayed
• Bug 792809 - Register text difficult to read with GTK 3.0 dark themes 
Add a foreground css class to override the theme value.
• Bug 792947 - Missing translatable strings
Some other fixes not associated with reported bugs:

• The long-standing known problem, AQBanking setup crashing on Windows.
• Webkit crashing the MacOS Gnucash.app.
• Some Guile 2.2 issues are resolved.
• Some bugs in the new Transaction Report.
• Correct setting of WebKit version during configuration when the 
version is cached.
• The change to the Average Cost calulation introduced in 2.6.12 is 
reverted. See the extensive discussion in Bug 775368 for more information.
• Fix our appstream id as per the appstream recommendation
• Fix incorrect minimum dates in the net-linechart and net-barchart 
reports.
• Fix a report crash if the Account Depth is too low.
KNOWN PROBLEMS:

• Bug 789594 - Unable to overwrite splite3 database file
• Bug 791823 - There is no Gtk3 theme-setting tool for Windows.
• Bug 791825 - Accounting period dates off-by-1
Getting GnuCash for Windows and MacOS X

GnuCash is provided for both Microsoft Windows XP® and later and MacOS X 10.9 
(Mavericks)® and later in pre-built, all-in-one packages. An installer is 
provided for Microsoft Windows® while the MacOS X® package is a disk image 
containing a drag-and-drop application bundle.

SourceForge:

• Download GnuCash for Win32
• Download GnuCash for Mac-Intel
Github

• Download GnuCash for Win32
• Download GnuCash