Re: [GNC-dev] running setup-mingw64.ps1

2018-04-09 Thread pjlbyrne
Hmm I tried it but it seems more broken than that:

patb@DESKTOP-REQM4CB MSYS ~
$ pacman -Syuu

patb@DESKTOP-REQM4CB MSYS ~
$ which pacman
/usr/bin/pacman

patb@DESKTOP-REQM4CB MSYS ~
$ file /usr/bin/pacman
/usr/bin/pacman: PE32+ executable (console) x86-64 (stripped to external
PDB), for MS Windows

patb@DESKTOP-REQM4CB MSYS ~
$ pacman -hl


It's weird, some things (the built-ins?) seem to work, and others do nowt.
'env' works, 'vim' does nothing.

There don't seem to be obvious dependencies missing. This looks OK:
patb@DESKTOP-REQM4CB MSYS ~
$ ldd /usr/bin/pacman
ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffca293)
KERNEL32.DLL => /c/Windows/System32/KERNEL32.DLL (0x7ffc9fea)
KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll
(0x7ffc9f50)
msys-2.0.dll => /usr/bin/msys-2.0.dll (0x18004)
bcrypt.dll => /c/Windows/SYSTEM32/bcrypt.dll (0x7ffc9e7e)

I tried re-running the powershell script, but it doesn't think it has
anything to do.

Perhaps recent Windows 10 updates have brought to quarantine the pacman
executable, or something weird like that. 

I guess I will have another play-around & try and see what's going on later.
Thanks again for the advice, David.

Cheers
Patrick





--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-Dev-f1435356.html
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Gnucash-3.0 build error: GTEST not found

2018-04-09 Thread John Ralls


> On Apr 8, 2018, at 11:56 PM, DaveC49  wrote:
> 
> Thanks John,
> 
> I did clone the googletest-master at https://github.com/google/googletest
> which has gmock incorporated. I will try pointing GMOCK_ROOT and GTEST_ROOT
> at the copies within my user directory that I  installed it from as a shared
> library in usr/local. I will also check the permissions on the shared
> library to see if that is what is causing a problem.  
> 
> I will incorporate the patch https://github.com/Gnucash/gnucash/pull/329
> into the existing code and use v1.8.0 from now on. I have not found a
> successful description on the ubuntu and linux mint forums for how to
> properly install google test as a shared library. The readme under
> googletest on github still describes the setup for v 1.7.0. I had changed
> the install to put the libraries and includes in what seemed like
> appropriate locations under /usr/local.
> 
> I would have got further today but unfortunately the weather here was
> magnificent so I opted for fishing from my kayak instead but I will get back
> to it tonight

The Googletest documentation says that one should not build google test or 
google mock as shared libraries, and our build system prefers it that way. Some 
distros insist that one should anyway because they don’t want to be 
distributing source, I suppose. If you already have a source clone then just 
point GTEST_ROOT and GMOCK_ROOT at the appropriate subdirectories in it and be 
done with it. 

Regards,
John Ralls

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


Re: [GNC-dev] Gnucash-3.0 build error: GTEST not found

2018-04-09 Thread DaveC49
Hi John,

I now seem to have googlemock and googletest installed correctly. With the
patch  https://github.com/Gnucash/gnucash/pull/329 incorporated I am not no
longer failing on the GTEST or GMOCK checks and cmake is completing
successfully.

Make is now failing in the build as follows in building the scm-core-utils
after having succeeded in building everything down to the scm-gnc-module
.
.
.
Scanning dependencies of target scm-core-utils
[ 30%] Generating ../../lib/gnucash/scm/ccache/2.0/gnucash/core-utils.go
Backtrace:
In srfi/srfi-1.scm:
 619: 19 [for-each #
#]
In scripts/compile.scm:
 182: 18 [#
"/home/david/Applications/gnucash-3.0/libgnucash/core-utils/core-utils.scm"]
In system/base/target.scm:
  59: 17 [with-target "x86_64-pc-linux-gnu" ...]
In system/base/compile.scm:
 150: 16 [compile-file
"/home/david/Applications/gnucash-3.0/libgnucash/core-utils/core-utils.scm"
...]
  43: 15 [call-once #]
In ice-9/boot-9.scm:
 171: 14 [with-throw-handler #t ...]
In system/base/compile.scm:
  59: 13 [#]
 153: 12 [#
#]
 216: 11 [read-and-compile # #:from ...]
 232: 10 [lp (# # # # ...) # #]
 180: 9 [lp # # # ...]
In ice-9/boot-9.scm:
2401: 8 [save-module-excursion #]
In language/scheme/compile-tree-il.scm:
  31: 7 [#]
In ice-9/psyntax.scm:
1106: 6 [expand-top-sequence ((re-export gnc-build-userdata-path)) () ...]
 989: 5 [scan ((re-export gnc-build-userdata-path)) () ...]
 279: 4 [scan ((# #)) () (()) ...]
In ice-9/boot-9.scm:
2094: 3 [call-with-deferred-observers #]
 768: 2 [for-each # #]
In unknown file:
   ?: 1 [scm-error misc-error #f ...]
In ice-9/boot-9.scm:
 106: 0 [#
misc-error ...]

ice-9/boot-9.scm:106:20: In procedure #:
ice-9/boot-9.scm:106:20: Undefined variable: gnc-build-userdata-path
libgnucash/core-utils/CMakeFiles/scm-core-utils.dir/build.make:61: recipe
for target 'lib/gnucash/scm/ccache/2.0/gnucash/core-utils.go' failed
make[2]: *** [lib/gnucash/scm/ccache/2.0/gnucash/core-utils.go] Error 1
CMakeFiles/Makefile2:3770: recipe for target
'libgnucash/core-utils/CMakeFiles/scm-core-utils.dir/all' failed
make[1]: *** [libgnucash/core-utils/CMakeFiles/scm-core-utils.dir/all] Error
2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Thanks David




-
David Cousens
--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-Dev-f1435356.html
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel