Re: Compilation error using cmake, but no error using autotools

2017-09-09 Thread Sumit Bhardwaj
Thanks Rob. That does it. And, yes, another PR:
https://github.com/Gnucash/gnucash/pull/197

If I get some time over the weekend, I will check through to make sure that
WITH_OFX and WITH_AQBANKING behave similarly. Unless someone beats me to it
:)

Thanks,
Sumit

On Sat, Sep 9, 2017 at 10:01 AM, Rob Gowin  wrote:

>
>
> On Sep 9, 2017 11:32 AM, "Sumit Bhardwaj"  wrote:
>
> Thanks Rob. Just tried that route (cmake -D WITH_AQBANKING=OFF -D
> WITH_OFX=OFF -G Ninja ../gnucash/ && ninja && ninja check && ninja install).
>
> Ran into a new problem:
> ninja: error: '/home/bhardwajs/ac/devel/gnucash/cmake/ofx-gschema',
> needed by 'share/glib-2.0/schemas/gschemas.compiled', missing and no
> known rule to make it
>
> This directory (cmake/ofx-gschema) doesn't exist in master. Am I missing
> something?
>
> Thanks,
> Sumit
>
>
> Hi Sumit,
>
> (I apologize for misspelling your name in my previous reply.)
>
> It looks like you are running into more issues building with WITH_OFX=OFF.
> Try removing the 'ofx-gschema' item from https://github.com/
> Gnucash/gnucash/blob/master/cmake/CMakeLists.txt#L19. Another PR
> opportunity :-).
>
> Regards,
>
> Rob
>
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Compilation error using cmake, but no error using autotools

2017-09-09 Thread Sumit Bhardwaj
Thanks Rob. Just tried that route (cmake -D WITH_AQBANKING=OFF -D
WITH_OFX=OFF -G Ninja ../gnucash/ && ninja && ninja check && ninja install).

Ran into a new problem:
ninja: error: '/home/bhardwajs/ac/devel/gnucash/cmake/ofx-gschema', needed
by 'share/glib-2.0/schemas/gschemas.compiled', missing and no known rule to
make it

This directory (cmake/ofx-gschema) doesn't exist in master. Am I missing
something?

Thanks,
Sumit

On Sat, Sep 9, 2017 at 9:06 AM, Rob Gowin  wrote:

>
>
> On Sep 9, 2017 10:37 AM, "Sumit Bhardwaj"  wrote:
>
> Hi,
>
> After pulling master, I decided to do a cmake build instead of the usual
> autotools. Ran into problems as detailed below. Autotools work smoothly. I
> would try to make more headway, but I don't understand scheme and a quick
> stack overflow search didn't show anything that I could try either.
>
> Thanks,
> Sumit
>
> Fedora 26
> guile version: 2.0.14
>
> Command:
> cmake -D WITH_AQBANKING=OFF -D WITH_OFX=OFF -G Ninja ../gnucash/ && ninja
> check && ninja install
>
> Error message:
> [984/1000] Generating
> ../../../lib/gnucash/scm/ccache/2.0/gnucash/report/invoice.go
> FAILED: lib/gnucash/scm/ccache/2.0/gnucash/report/invoice.go
> cd /home/bhardwajs/ac/devel/build_gnucash/gnucash/report/business-reports
> && /usr/bin/cmake -E env
> LD_LIBRARY_PATH=/home/bhardwajs/ac/devel/build_gnucash/lib:/
> home/bhardwajs/ac/devel/build_gnucash/lib/gnucash:
> GNC_UNINSTALLED=YES GNC_BUILDDIR=/home/bhardwajs/ac/devel/build_gnucash
> GUILE_LOAD_PATH=/home/bhardwajs/ac/devel/gnucash/gnucash/
> report/business-reports:/home/bhardwajs/ac/devel/build_
> gnucash/share/gnucash/scm
> GUILE_LOAD_COMPILED_PATH=/home/bhardwajs/ac/devel/build_gnuc
> ash/lib/gnucash/scm/ccache/2.0
> GNC_MODULE_PATH=/home/bhardwajs/ac/devel/build_gnucash/lib:/
> home/bhardwajs/ac/devel/build_gnucash/lib/gnucash:
> /usr/bin/guile -e '(@@ (guild) main)' -s /usr/bin/guild compile -o
> /home/bhardwajs/ac/devel/build_gnucash/lib/gnucash/scm/ccach
> e/2.0/gnucash/report/invoice.go
> /home/bhardwajs/ac/devel/gnucash/gnucash/report/business-
> reports/invoice.scm
> Backtrace:
> In system/base/target.scm:
>   59: 19 [with-target "x86_64-redhat-linux-gnu" ...]
> In system/base/compile.scm:
>  152: 18 [compile-file
> "/home/bhardwajs/ac/devel/gnucash/gnucash/report/business-
> reports/invoice.scm"
> ...]
>   43: 17 [call-once # system/base/compile.scm:56:5 ()>]
> In ice-9/boot-9.scm:
>  174: 16 [with-throw-handler #t ...]
> In system/base/compile.scm:
>   59: 15 [#]
>  155: 14 [#
> #]
>  218: 13 [read-and-compile # #:from ...]
>  234: 12 [lp (# # # # ...) # # 564234c77a00>]
>  182: 11 [lp (#) (use-modules #) ...]
> In ice-9/boot-9.scm:
> 2412: 10 [save-module-excursion # language/scheme/compile-tree-il.scm:29:3 ()>]
> In language/scheme/compile-tree-il.scm:
>   31: 9 [# language/scheme/compile-tree-il.scm:29:3 ()>]
> In ice-9/psyntax.scm:
> 1107: 8 [expand-top-sequence ((use-modules #)) () ((top)) ...]
>  990: 7 [scan ((use-modules (gnucash report standard-reports))) () ...]
>  279: 6 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...]
> In ice-9/boot-9.scm:
> 3622: 5 [process-use-modules (((gnucash report standard-reports)))]
>  712: 4 [map # (mif-args)> ((#))]
> 3623: 3 [#
> (#)]
> 2903: 2 [resolve-interface (gnucash report standard-reports) #:select ...]
> In unknown file:
>?: 1 [scm-error misc-error #f ...]
> In ice-9/boot-9.scm:
>  109: 0 [# args)> misc-error ...]
>
> ice-9/boot-9.scm:109:20: In procedure # ice-9/boot-9.scm:100:6 (thrown-k . args)>:
> ice-9/boot-9.scm:109:20: no code for module (gnucash report
> standard-reports)
> ___
> gnucash-devel mailing list
> gnucash-devel@gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
>
> Hi Simit,
>
> There are scheme dependency issues with CMake when you do 'ninja check'
> without first running plain 'ninja' first. So as a workaround until I can
> fix, do 'ninja && ninja check && ninja install'.
>
> Regards,
>
> Rob
>
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Compilation error using cmake, but no error using autotools

2017-09-09 Thread Rob Gowin
On Sep 9, 2017 10:37 AM, "Sumit Bhardwaj"  wrote:

Hi,

After pulling master, I decided to do a cmake build instead of the usual
autotools. Ran into problems as detailed below. Autotools work smoothly. I
would try to make more headway, but I don't understand scheme and a quick
stack overflow search didn't show anything that I could try either.

Thanks,
Sumit

Fedora 26
guile version: 2.0.14

Command:
cmake -D WITH_AQBANKING=OFF -D WITH_OFX=OFF -G Ninja ../gnucash/ && ninja
check && ninja install

Error message:
[984/1000] Generating
../../../lib/gnucash/scm/ccache/2.0/gnucash/report/invoice.go
FAILED: lib/gnucash/scm/ccache/2.0/gnucash/report/invoice.go
cd /home/bhardwajs/ac/devel/build_gnucash/gnucash/report/business-reports
&& /usr/bin/cmake -E env
LD_LIBRARY_PATH=/home/bhardwajs/ac/devel/build_gnucash/lib:/home/bhardwajs/
ac/devel/build_gnucash/lib/gnucash:
GNC_UNINSTALLED=YES GNC_BUILDDIR=/home/bhardwajs/ac/devel/build_gnucash
GUILE_LOAD_PATH=/home/bhardwajs/ac/devel/gnucash/gnucash/report/business-
reports:/home/bhardwajs/ac/devel/build_gnucash/share/gnucash/scm
GUILE_LOAD_COMPILED_PATH=/home/bhardwajs/ac/devel/build_
gnucash/lib/gnucash/scm/ccache/2.0
GNC_MODULE_PATH=/home/bhardwajs/ac/devel/build_gnucash/lib:/home/bhardwajs/
ac/devel/build_gnucash/lib/gnucash:
/usr/bin/guile -e '(@@ (guild) main)' -s /usr/bin/guild compile -o
/home/bhardwajs/ac/devel/build_gnucash/lib/gnucash/scm/
ccache/2.0/gnucash/report/invoice.go
/home/bhardwajs/ac/devel/gnucash/gnucash/report/business-reports/invoice.scm
Backtrace:
In system/base/target.scm:
  59: 19 [with-target "x86_64-redhat-linux-gnu" ...]
In system/base/compile.scm:
 152: 18 [compile-file
"/home/bhardwajs/ac/devel/gnucash/gnucash/report/
business-reports/invoice.scm"
...]
  43: 17 [call-once #]
In ice-9/boot-9.scm:
 174: 16 [with-throw-handler #t ...]
In system/base/compile.scm:
  59: 15 [#]
 155: 14 [#
#]
 218: 13 [read-and-compile # #:from ...]
 234: 12 [lp (# # # # ...) # #]
 182: 11 [lp (#) (use-modules #) ...]
In ice-9/boot-9.scm:
2412: 10 [save-module-excursion #]
In language/scheme/compile-tree-il.scm:
  31: 9 [#]
In ice-9/psyntax.scm:
1107: 8 [expand-top-sequence ((use-modules #)) () ((top)) ...]
 990: 7 [scan ((use-modules (gnucash report standard-reports))) () ...]
 279: 6 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...]
In ice-9/boot-9.scm:
3622: 5 [process-use-modules (((gnucash report standard-reports)))]
 712: 4 [map # ((#))]
3623: 3 [#
(#)]
2903: 2 [resolve-interface (gnucash report standard-reports) #:select ...]
In unknown file:
   ?: 1 [scm-error misc-error #f ...]
In ice-9/boot-9.scm:
 109: 0 [# misc-error ...]

ice-9/boot-9.scm:109:20: In procedure #:
ice-9/boot-9.scm:109:20: no code for module (gnucash report
standard-reports)
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Hi Simit,

There are scheme dependency issues with CMake when you do 'ninja check'
without first running plain 'ninja' first. So as a workaround until I can
fix, do 'ninja && ninja check && ninja install'.

Regards,

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