Re: [GNC-dev] Building 3.5 package for Disco

2019-05-03 Thread Stephen M. Butler
On 5/3/19 4:32 PM, John Ralls wrote:
>
> gnucash-design.info is built only if you have make info installed. I wouldn't 
> bother, the document is severely obsolete. Just find it in your build 
> description and remove it.
>
> Let's get back to gtest. I looked at gnc_gtest_configure() in 
> common/cmake_modules/GncAddTest.cmake and was reminded that if cmake finds 
> libgtest.a that it will ignore the source directory and use the system 
> libgtest.a.
>
> The missing symbols are from libgtest.a, so maybe the linker is getting them 
> in the wrong order. Open GncAddTest.cmake in an editor and at line 137 change
>set(GTEST_LIB "${GTEST_SHARED_LIB};${GTEST_MAIN_LIB}" PARENT_SCOPE)
> to
>set(GTEST_LIB "${GTEST_MAIN_LIB};${GTEST_SHARED_LIB}" PARENT_SCOPE)
>
> and see if that fixes the error.
>
> It's been that way for a long time so why it would suddenly matter is 
> strange...
>
> Regards,
> John Ralls

First, here are the locations of libgtest.a on my system:

/usr/lib/x86_64-linux-gnu/libgtest.a
/home/steve/Projects/GnuCash/build/common/test-core/libgtest.a
/home/steve/Projects/GnuCash/chrislam/.build/common/test-core/libgtest.a

1.  Removed ./debian/gnucash-common.info

2.  Made the change noted above on line 137 in
./common/cmake_modules/GncAddTest.cmake

I have a debian package for 3.5 as built in 19.04 (Disco).


sudo apt install ./*3.5*.deb
Reading package lists... Done
Building dependency tree  
Reading state information... Done
Note, selecting 'gnucash' instead of './gnucash_3.5_amd64.deb'
Note, selecting 'gnucash-common' instead of './gnucash-common_3.5_all.deb'
Note, selecting 'python3-gnucash' instead of
'./python3-gnucash_3.5_amd64.deb'
gnucash-common is already the newest version (1:3.5).
The following packages were automatically installed and are no longer
required:
  libboost-regex1.65.1 libuser1 python-libuser
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  libdbd-mysql
Recommended packages:
  pythone3-gnucash
The following NEW packages will be installed:
  python3-gnucash
The following packages will be upgraded:
  gnucash
1 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/4,229 kB of archives.
After this operation, 1,772 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 /home/steve/Projects/GnuCash/gnucash_3.5_amd64.deb gnucash amd64
1:3.5 [3,958 kB]
Get:2 /home/steve/Projects/GnuCash/python3-gnucash_3.5_amd64.deb
python3-gnucash amd64 1:3.5 [271 kB]
(Reading database ... 227873 files and directories currently installed.)
Preparing to unpack .../GnuCash/gnucash_3.5_amd64.deb ...
Unpacking gnucash (1:3.5) over (1:3.5) ...
Selecting previously unselected package python3-gnucash.
Preparing to unpack .../python3-gnucash_3.5_amd64.deb ...
Unpacking python3-gnucash (1:3.5) ...
Setting up python3-gnucash (1:3.5) ...
Setting up gnucash (1:3.5) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for desktop-file-utils (0.23-4ubuntu1) ...

It fired up and worked.  Let me push these up to Google Drive and make
them available.

Thanks John.  Could not have done this without your help!

--Steve

-- 
Stephen M Butler, PMP, PSM
stephen.m.butle...@gmail.com
kg...@arrl.net
253-350-0166
---
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8


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


Re: [GNC-dev] Building 3.5 package for Disco

2019-05-03 Thread John Ralls



> On May 3, 2019, at 3:55 PM, Stephen M. Butler  wrote:
> 
> On 5/3/19 3:07 PM, Stephen M. Butler wrote:
>> On 5/3/19 2:57 PM, John Ralls wrote:
>>> <>
>>> Please copy All of the lines beginning with GTEST from the
>>> CMakeCache.txt in your debian-build controlled build directory. You
>>> can get that easily with
>>>  grep ^GTEST path/to/CMakeCache.txt
>>> 
>>> CMake doesn't care if there's whitespace between the -D and the variable 
>>> name.
>>> 
>>> Regars,
>>> John Ralls
>>  grep -i gtest CM*.txt
>> GMOCK_INCLUDE_DIR:PATH=/home/steve/Projects/GnuCash/gnucash/.build/__gtest/googlemock/include
>> GMOCK_SRC_DIR:PATH=/home/steve/Projects/GnuCash/gnucash/.build/__gtest/googlemock
>> GTEST_INCLUDE_DIR:PATH=/home/steve/Projects/GnuCash/gnucash/.build/__gtest/googletest/include
>> GTEST_MAIN_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libgtest_main.a
>> GTEST_ROOT:UNINITIALIZED=/usr/src/googletest/googletest
>> GTEST_SHARED_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libgtest.a> //Found GTest
>> GTEST_FOUND:INTERNAL=YES
>> 
>> 
>> Part of the build rules copies /usr/src/googletest down to the build folder:
>> 
>> mkdir -p .build/__gtest
>> cp -Rv /usr/src/googletest/* .build/__gtest/
>> 
>> Perhaps I should point cmake to that location instead?
>> 
> I made the change to point to the copy as noted above and hit same
> snag.  Then tried to bypass the auto test and ran into this much further
> down the road:
> 
>debian/rules override_dh_install
> make[1]: Entering directory '/home/steve/Projects/GnuCash/gnucash'
> rm -f -fv debian/tmp/usr/share/glib-2.0/schemas/gschemas.compiled  #
> L:package-contains-compiled-glib-schema
> removed 'debian/tmp/usr/share/glib-2.0/schemas/gschemas.compiled'
> pod2man -s1 --stderr --utf8 debian/tmp/usr/bin/gnc-fq-check
> debian/tmp/gnc-fq-check.1
> find debian/tmp/usr/lib -name \*.la -exec rm -v \{\} \;
> dh_install
> make[1]: Leaving directory '/home/steve/Projects/GnuCash/gnucash'
>dh_installdocs -O--buildsystem=cmake -O--builddirectory=.build
>dh_installchangelogs -O--buildsystem=cmake -O--builddirectory=.build
>dh_installexamples -O--buildsystem=cmake -O--builddirectory=.build
>dh_installman -O--buildsystem=cmake -O--builddirectory=.build
>dh_installinfo -O--buildsystem=cmake -O--builddirectory=.build
> dh_installinfo: Cannot find (any matches for)
> "libgnucash/doc/design/gnucash-design.info" (tried in .)
> 
> make: *** [debian/rules:24: binary] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules binary subprocess
> returned exit status 2
> 
> --
> 
> override_dh_install has these lines:
> 
> override_dh_install:
> $(RM) -fv
> debian/tmp/usr/share/glib-2.0/schemas/gschemas.compiled  #
> L:package-contains-compiled-glib-schema
> pod2man -s1 --stderr --utf8 debian/tmp/usr/bin/gnc-fq-check
> debian/tmp/gnc-fq-check.1
> find debian/tmp/usr/lib -name \*.la -exec rm -v \{\} \;
> dh_install
> 
> --
> 
> gnucash.install has these lines:
> 
> ## https://bugzilla.gnome.org/show_bug.cgi?id=790840
> usr/lib/*/gnucash/
> 
> usr/bin/gnucash
> usr/bin/gnc-fq-check
> usr/bin/gnc-fq-dump
> usr/bin/gnc-fq-helper
> usr/bin/gnc-fq-update
> usr/share/applications/gnucash.desktop
> etc
> 
> ---
> 
> gnucash-common.install  has this:
> 
> usr/share/glib-2.0/schemas
> usr/share/gnucash
> usr/share/icons
> usr/share/locale
> usr/include
> 
> 
> python3-gnucash.install has these:
> 
> ## https://bugzilla.gnome.org/show_bug.cgi?id=790550
> usr/lib/python*/dist-packages/gnucash/*.so
> =
> 
> not sure which one was being processed.

gnucash-design.info is built only if you have make info installed. I wouldn't 
bother, the document is severely obsolete. Just find it in your build 
description and remove it.

Let's get back to gtest. I looked at gnc_gtest_configure() in 
common/cmake_modules/GncAddTest.cmake and was reminded that if cmake finds 
libgtest.a that it will ignore the source directory and use the system 
libgtest.a.

The missing symbols are from libgtest.a, so maybe the linker is getting them in 
the wrong order. Open GncAddTest.cmake in an editor and at line 137 change
   set(GTEST_LIB "${GTEST_SHARED_LIB};${GTEST_MAIN_LIB}" PARENT_SCOPE)
to
   set(GTEST_LIB "${GTEST_MAIN_LIB};${GTEST_SHARED_LIB}" PARENT_SCOPE)

and see if that fixes the error.

It's been that way for a long time so why it would suddenly matter is strange...

Regards,
John Ralls

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


Re: [GNC-dev] Building 3.5 package for Disco

2019-05-03 Thread Stephen M. Butler
On 5/3/19 3:07 PM, Stephen M. Butler wrote:
> On 5/3/19 2:57 PM, John Ralls wrote:
>> <>
>> Please copy All of the lines beginning with GTEST from the
>> CMakeCache.txt in your debian-build controlled build directory. You
>> can get that easily with
>>   grep ^GTEST path/to/CMakeCache.txt
>>
>> CMake doesn't care if there's whitespace between the -D and the variable 
>> name.
>>
>> Regars,
>> John Ralls
>  grep -i gtest CM*.txt
> GMOCK_INCLUDE_DIR:PATH=/home/steve/Projects/GnuCash/gnucash/.build/__gtest/googlemock/include
> GMOCK_SRC_DIR:PATH=/home/steve/Projects/GnuCash/gnucash/.build/__gtest/googlemock
> GTEST_INCLUDE_DIR:PATH=/home/steve/Projects/GnuCash/gnucash/.build/__gtest/googletest/include
> GTEST_MAIN_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libgtest_main.a
> GTEST_ROOT:UNINITIALIZED=/usr/src/googletest/googletest
> GTEST_SHARED_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libgtest.a //Found GTest
> GTEST_FOUND:INTERNAL=YES
>
>
> Part of the build rules copies /usr/src/googletest down to the build folder:
>
>     mkdir -p .build/__gtest
>     cp -Rv /usr/src/googletest/* .build/__gtest/
>
> Perhaps I should point cmake to that location instead?
>
I made the change to point to the copy as noted above and hit same
snag.  Then tried to bypass the auto test and ran into this much further
down the road:

   debian/rules override_dh_install
make[1]: Entering directory '/home/steve/Projects/GnuCash/gnucash'
rm -f -fv debian/tmp/usr/share/glib-2.0/schemas/gschemas.compiled  #
L:package-contains-compiled-glib-schema
removed 'debian/tmp/usr/share/glib-2.0/schemas/gschemas.compiled'
pod2man -s1 --stderr --utf8 debian/tmp/usr/bin/gnc-fq-check
debian/tmp/gnc-fq-check.1
find debian/tmp/usr/lib -name \*.la -exec rm -v \{\} \;
dh_install
make[1]: Leaving directory '/home/steve/Projects/GnuCash/gnucash'
   dh_installdocs -O--buildsystem=cmake -O--builddirectory=.build
   dh_installchangelogs -O--buildsystem=cmake -O--builddirectory=.build
   dh_installexamples -O--buildsystem=cmake -O--builddirectory=.build
   dh_installman -O--buildsystem=cmake -O--builddirectory=.build
   dh_installinfo -O--buildsystem=cmake -O--builddirectory=.build
dh_installinfo: Cannot find (any matches for)
"libgnucash/doc/design/gnucash-design.info" (tried in .)

make: *** [debian/rules:24: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess
returned exit status 2

--

override_dh_install has these lines:

override_dh_install:
    $(RM) -fv
debian/tmp/usr/share/glib-2.0/schemas/gschemas.compiled  #
L:package-contains-compiled-glib-schema
    pod2man -s1 --stderr --utf8 debian/tmp/usr/bin/gnc-fq-check
debian/tmp/gnc-fq-check.1
    find debian/tmp/usr/lib -name \*.la -exec rm -v \{\} \;
    dh_install

--

gnucash.install has these lines:

## https://bugzilla.gnome.org/show_bug.cgi?id=790840
usr/lib/*/gnucash/

usr/bin/gnucash
usr/bin/gnc-fq-check
usr/bin/gnc-fq-dump
usr/bin/gnc-fq-helper
usr/bin/gnc-fq-update
usr/share/applications/gnucash.desktop
etc

---

gnucash-common.install  has this:

usr/share/glib-2.0/schemas
usr/share/gnucash
usr/share/icons
usr/share/locale
usr/include


python3-gnucash.install has these:

## https://bugzilla.gnome.org/show_bug.cgi?id=790550
usr/lib/python*/dist-packages/gnucash/*.so
=

not sure which one was being processed.

-- 
Stephen M Butler, PMP, PSM
stephen.m.butle...@gmail.com
kg...@arrl.net
253-350-0166
---
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8


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


Re: [GNC-dev] Building 3.5 package for Disco

2019-05-03 Thread Stephen M. Butler
On 5/3/19 2:57 PM, John Ralls wrote:
> On May 3, 2019, at 2:44 PM, Stephen M. Butler  wrote:
>> On 5/3/19 12:24 PM, John Ralls wrote:
>>> On May 3, 2019, at 8:37 AM, Stephen M. Butler  wrote:
 On 5/2/19 10:14 PM, John Ralls wrote:
>> On May 2, 2019, at 6:38 PM, Stephen M. Butler  wrote:
>>
>> /usr/bin/ld:
>> /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libgtest_main.a(gtest_main.cc.o):
> It's linking a system file instead of the one that GnuCash should have 
> built. Is it linking that libgtest_main.a when you do a regular build?
>
> Regards,
> John Ralls
>
>
 Yes, it appears to have done that.  I see this line in the
 CMakeCache.txt file in my local build directory from the test yesterday
 (not the directory where dpkg_buildpackage worked)

 //Path to a library.
 GTEST_MAIN_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libgtest_main.a


 I have attached the CMakeCache.txt file if that helps.
>>> The CMakeCache.txt shows what looks like a typo: 
>>> GTEST_ROOT:UNINITIALIZED=/usr/src/googletest/googletesti
>>>
>>> What does the GTEST section of the debian-build CMakeCache.txt look like?
>>>
>>> Regards
>>> John Ralls
>>-DGTEST_ROOT=/usr/src/googletest/googletest \
>>-DGMOCK_ROOT=/usr/src/googletest/googlemock \
>>
>> Do I need a space after the -D? 
> That isn't from CMakeCache.txt. Please copy All of the lines beginning with 
> GTEST from the CMakeCache.txt in your debian-build controlled build 
> directory. You can get that easily with 
>   grep ^GTEST path/to/CMakeCache.txt
>
> CMake doesn't care if there's whitespace between the -D and the variable name.
>
> Regars,
> John Ralls

 grep -i gtest CM*.txt
GMOCK_INCLUDE_DIR:PATH=/home/steve/Projects/GnuCash/gnucash/.build/__gtest/googlemock/include
GMOCK_SRC_DIR:PATH=/home/steve/Projects/GnuCash/gnucash/.build/__gtest/googlemock
GTEST_INCLUDE_DIR:PATH=/home/steve/Projects/GnuCash/gnucash/.build/__gtest/googletest/include
GTEST_MAIN_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libgtest_main.a
GTEST_ROOT:UNINITIALIZED=/usr/src/googletest/googletest
GTEST_SHARED_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libgtest.a
//Found GTest
GTEST_FOUND:INTERNAL=YES


Part of the build rules copies /usr/src/googletest down to the build folder:

    mkdir -p .build/__gtest
    cp -Rv /usr/src/googletest/* .build/__gtest/

Perhaps I should point cmake to that location instead?

-- 
Stephen M Butler, PMP, PSM
stephen.m.butle...@gmail.com
kg...@arrl.net
253-350-0166
---
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8

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


Re: [GNC-dev] Building 3.5 package for Disco

2019-05-03 Thread John Ralls



> On May 3, 2019, at 2:44 PM, Stephen M. Butler  wrote:
> 
> On 5/3/19 12:24 PM, John Ralls wrote:
>> 
>>> On May 3, 2019, at 8:37 AM, Stephen M. Butler  wrote:
>>> 
>>> On 5/2/19 10:14 PM, John Ralls wrote:
> On May 2, 2019, at 6:38 PM, Stephen M. Butler  wrote:
> 
> /usr/bin/ld:
> /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libgtest_main.a(gtest_main.cc.o):
 It's linking a system file instead of the one that GnuCash should have 
 built. Is it linking that libgtest_main.a when you do a regular build?
 
 Regards,
 John Ralls
 
 
>>> Yes, it appears to have done that.  I see this line in the
>>> CMakeCache.txt file in my local build directory from the test yesterday
>>> (not the directory where dpkg_buildpackage worked)
>>> 
>>> //Path to a library.
>>> GTEST_MAIN_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libgtest_main.a
>>> 
>>> 
>>> I have attached the CMakeCache.txt file if that helps.
>> The CMakeCache.txt shows what looks like a typo: 
>> GTEST_ROOT:UNINITIALIZED=/usr/src/googletest/googletesti
>> 
>> What does the GTEST section of the debian-build CMakeCache.txt look like?
>> 
>> Regards
>> John Ralls
>> 
>> 
>-DGTEST_ROOT=/usr/src/googletest/googletest \
>-DGMOCK_ROOT=/usr/src/googletest/googlemock \
> 
> 
> Do I need a space after the -D? 

That isn't from CMakeCache.txt. Please copy All of the lines beginning with 
GTEST from the CMakeCache.txt in your debian-build controlled build directory. 
You can get that easily with 
  grep ^GTEST path/to/CMakeCache.txt

CMake doesn't care if there's whitespace between the -D and the variable name.

Regars,
John Ralls
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Building 3.5 package for Disco

2019-05-03 Thread Stephen M. Butler
On 5/3/19 12:24 PM, John Ralls wrote:
>
>> On May 3, 2019, at 8:37 AM, Stephen M. Butler  wrote:
>>
>> On 5/2/19 10:14 PM, John Ralls wrote:
 On May 2, 2019, at 6:38 PM, Stephen M. Butler  wrote:

 /usr/bin/ld:
 /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libgtest_main.a(gtest_main.cc.o):
>>> It's linking a system file instead of the one that GnuCash should have 
>>> built. Is it linking that libgtest_main.a when you do a regular build?
>>>
>>> Regards,
>>> John Ralls
>>>
>>>
>> Yes, it appears to have done that.  I see this line in the
>> CMakeCache.txt file in my local build directory from the test yesterday
>> (not the directory where dpkg_buildpackage worked)
>>
>> //Path to a library.
>> GTEST_MAIN_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libgtest_main.a
>>
>>
>> I have attached the CMakeCache.txt file if that helps.
> The CMakeCache.txt shows what looks like a typo: 
> GTEST_ROOT:UNINITIALIZED=/usr/src/googletest/googletesti
>
> What does the GTEST section of the debian-build CMakeCache.txt look like?
>
> Regards
> John Ralls
>
>
       -DGTEST_ROOT=/usr/src/googletest/googletest \
   -DGMOCK_ROOT=/usr/src/googletest/googlemock \


Do I need a space after the -D? 

-- 
Stephen M Butler, PMP, PSM
stephen.m.butle...@gmail.com
kg...@arrl.net
253-350-0166
---
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8

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


Re: [GNC-dev] Building 3.5 package for Disco

2019-05-03 Thread John Ralls



> On May 3, 2019, at 8:37 AM, Stephen M. Butler  wrote:
> 
> On 5/2/19 10:14 PM, John Ralls wrote:
>> 
>>> On May 2, 2019, at 6:38 PM, Stephen M. Butler  wrote:
>>> 
>>> /usr/bin/ld:
>>> /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libgtest_main.a(gtest_main.cc.o):
>> It's linking a system file instead of the one that GnuCash should have 
>> built. Is it linking that libgtest_main.a when you do a regular build?
>> 
>> Regards,
>> John Ralls
>> 
>> 
> Yes, it appears to have done that.  I see this line in the
> CMakeCache.txt file in my local build directory from the test yesterday
> (not the directory where dpkg_buildpackage worked)
> 
> //Path to a library.
> GTEST_MAIN_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libgtest_main.a
> 
> 
> I have attached the CMakeCache.txt file if that helps.

The CMakeCache.txt shows what looks like a typo: 
GTEST_ROOT:UNINITIALIZED=/usr/src/googletest/googletesti

What does the GTEST section of the debian-build CMakeCache.txt look like?

Regards
John Ralls

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


Re: [GNC-dev] Building 3.5 package for Disco

2019-05-03 Thread Stephen M. Butler
On 5/2/19 10:05 PM, John Ralls wrote:
>
>> On May 2, 2019, at 6:12 PM, Stephen M. Butler  wrote:
>>
>> <>
>> ==
>>
>> Do I need to file a bug for any of the above?
> Steve,
>
> Nope, those are all either known- or non-problems. 
>
> Regards,
> John Ralls
>
>
Thanks John.  Thought that might be the case.

-- 
Stephen M Butler, PMP, PSM
stephen.m.butle...@gmail.com
kg...@arrl.net
253-350-0166
---
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8

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


Re: [GNC-dev] Building 3.5 package for Disco

2019-05-02 Thread John Ralls



> On May 2, 2019, at 6:38 PM, Stephen M. Butler  wrote:
> 
> /usr/bin/ld:
> /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libgtest_main.a(gtest_main.cc.o):

It's linking a system file instead of the one that GnuCash should have built. 
Is it linking that libgtest_main.a when you do a regular build?

Regards,
John Ralls

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


Re: [GNC-dev] Building 3.5 package for Disco

2019-05-02 Thread John Ralls



> On May 2, 2019, at 6:12 PM, Stephen M. Butler  wrote:
> 
> Did my test of directly building GnC 3.5 on Ubuntu 19.04.  Following is
> the <> output from cmake and make (taking most defaults).  I
> have <> what I think are the non-essentials to show some
> warnings that were reported.  They may mean nothing but ...
> 
> 
> steve@SteveLaptop:~/Projects/GnuCash/build-area$ cmake
> -DGTEST_ROOT=/usr/src/googletest/googletesti
> -DGMOCK_ROOT=/usr/src/googletest/googlemock ../gnucash
> -- Using guile-2.0.x
> -- Using guile SRFI-64
> -- Checking for GTEST
> -- Checking for GMOCK
> 
>   <>
> 
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/steve/Projects/GnuCash/build-area
> 
> 
> steve@SteveLaptop:~/Projects/GnuCash/build-area$ make
> Scanning dependencies of target ChangeLog
> [  0%] Built target ChangeLog
> Scanning dependencies of target guile-json
> 
> <>
> 
> [ 38%] Linking CXX shared library ../../../lib/libgnc-backend-xml-utils.so
> /usr/bin/ld: CMakeFiles/gnc-backend-xml-utils.dir/gnc-xml-backend.cpp.o:
> in function `GncXmlBackend::write_to_file(bool)':
> gnc-xml-backend.cpp:(.text+0x11e6): warning: the use of `mktemp' is
> dangerous, better use `mkstemp' or `mkdtemp'
> 
> <>
> 
> [ 85%] Generating
> ../../../lib/gnucash/scm/ccache/2.0/gnucash/report/report-system/report-collectors.go
> wrote
> `/home/steve/Projects/GnuCash/build-area/lib/gnucash/scm/ccache/2.0/gnucash/report/report-system/report-collectors.go'
> 
> Some deprecated features have been used.  Set the environment
> variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
> program to get more information.  Set it to "no" to suppress
> this message.
> [ 85%] Built target scm-report-system-2b
> 
> <>
> 
> [ 94%] Generating
> ../../../../lib/gnucash/scm/ccache/2.0/gnucash/report/locale-specific/de_DE.go
> 
> (process:30149): gnc.module-WARNING **: 17:53:58.604: Could not locate
> module gnucash/tax/de_DE interface v.0
> wrote
> `/home/steve/Projects/GnuCash/build-area/lib/gnucash/scm/ccache/2.0/gnucash/report/locale-specific/de_DE.go'
> 
> <>
> 
> 
> [100%] Built target swig-gnucash-core
> 
> ==
> 
> Do I need to file a bug for any of the above?

Steve,

Nope, those are all either known- or non-problems. 

Regards,
John Ralls

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


Re: [GNC-dev] Building 3.5 package for Disco

2019-05-02 Thread Stephen M. Butler
On 4/30/19 7:29 AM, John Ralls wrote:
> The arguments I gave you are for the cmake command line. I don't know the 
> packaging tool you're using, but it's obviously constructing a cmake command 
> line out of compressed arguments: The snippet --with python3,aqbanking would 
> be passed to cmake as -D WITH_PYTHON=ON -D WITH_AQBANKING=ON.
>
> You'll need to read the docs on the packaging tool to find out how to set 
> other kinds of cmake options.
>
> Regards,
> John Ralls

Found reference to this snippet of the rules file and added the two
underlined lines:

override_dh_auto_configure:
    ## copy gtest sources
    mkdir -p .build/__gtest
    cp -Rv /usr/src/googletest/* .build/__gtest/
    env    ## debug
    mkdir -v -p \
    "$${HOME}"/.local/share/GnuCash/books \
    "$${HOME}"/.local/share/GnuCash/checks \
    "$${HOME}"/.local/share/GnuCash/translog
    dh_auto_configure -- -Wdev \
   -DCMAKE_VERBOSE_MAKEFILE=ON  \
   -DCMAKE_BUILD_TYPE=Release   \
   -DCMAKE_CXX_FLAGS="$(CXXFLAGS) $(CPPFLAGS)" \
   -DWITH_PYTHON=ON \
  
-DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/gnucash \
_   -DGTEST_ROOT=/usr/src/googletest/googletest \__
__   -DGMOCK_ROOT=/usr/src/googletest/googlemock \__
_    $(CMAKE_WORDS_BIGENDIAN) \
    ;

But ran into this condition near the end of the build:

[ 87%] Linking CXX executable ../../../../bin/test-tx_import

cd
/home/steve/Projects/GnuCash/gnucash/.build/gnucash/import-export/csv-imp/test
&& /usr/bin/cmake -E cmake_link_script
CMakeFiles/test-tx_import.dir/link.txt --verbose=1
/usr/bin/c++  -Wno-error=deprecated-declarations  -Werror -Wall
-Wmissing-declarations -Wno-unused -Wno-error=parentheses -std=gnu++11
-g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -O3 -DNDEBUG  -Wl,-Bsymbolic-functions -Wl,-z,relro
-Wl,-z,now -rdynamic CMakeFiles/test-tx_import.dir/test-tx-import.cpp.o 
-o ../../../../bin/test-tx_import
-Wl,-rpath,/home/steve/Projects/GnuCash/gnucash/.build/lib/x86_64-linux-gnu/gnucash/gnucash:/home/steve/Projects/GnuCash/gnucash/.build/lib/x86_64-linux-gnu/gnucash
../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-csv-import.so
-lglib-2.0 -Wl,-Bstatic -lgtest -lgtest_main -Wl,-Bdynamic -licui18n
-licuuc -licudata
../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-generic-import.so
../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-gnome-utils.so
../../../../lib/x86_64-linux-gnu/gnucash/libgnc-backend-xml-utils.so -lz
-ldl -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0
-lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lsecret-1
../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-app-utils.so
-lgio-2.0 -lxslt -lxml2
../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-engine.so
../../../../lib/x86_64-linux-gnu/gnucash/libgnc-core-utils.so
-lboost_date_time -lboost_regex -lboost_locale -lboost_filesystem
-lboost_system -lgobject-2.0
../../../../lib/x86_64-linux-gnu/gnucash/libgnc-module.so
-Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -pthread -lguile-2.0 -lgc
/usr/bin/ld:
/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libgtest_main.a(gtest_main.cc.o):
in function `main':


(.text.startup+0x2f): undefined reference to
`testing::InitGoogleTest(int*, char**)'

/usr/bin/ld: (.text.startup+0x34): undefined reference to
`testing::UnitTest::GetInstance()'
/usr/bin/ld: (.text.startup+0x3c): undefined reference to
`testing::UnitTest::Run()'
collect2: error: ld returned 1 exit status


make[5]: ***
[gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/build.make:103:
bin/test-tx_import] Error 1

make[5]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build'
make[4]: *** [CMakeFiles/Makefile2:9843:
gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/all]
Error 2
make[4]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build'
make[3]: *** [CMakeFiles/Makefile2:261: CMakeFiles/check.dir/rule] Error 2
make[3]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build'
make[2]: *** [Makefile:226: check] Error 2
make[2]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build'
+ RV=2
+ [ 2 -eq 0 ]
+ cat .build/Testing/Temporary/LastTest.log
cat: .build/Testing/Temporary/LastTest.log: No such file or directory
+ exit 2
make[1]: *** [debian/rules:69: override_dh_auto_test] Error 2
make[1]: Leaving directory '/home/steve/Projects/GnuCash/gnucash'
make: *** [debian/rules:26: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit
status 2


Not sure why it fails inside dpkg_buildpackage but works OK directly.

-- 
Stephen M Butler, PMP, PSM
stephen.m.butle...@gmail.com
kg...@arrl.net
253-350-0166
---
GnuPG Fingerprint:  8A25 9726 D439 758D D846 

Re: [GNC-dev] Building 3.5 package for Disco

2019-05-02 Thread Stephen M. Butler
Did my test of directly building GnC 3.5 on Ubuntu 19.04.  Following is
the <> output from cmake and make (taking most defaults).  I
have <> what I think are the non-essentials to show some
warnings that were reported.  They may mean nothing but ...


steve@SteveLaptop:~/Projects/GnuCash/build-area$ cmake
-DGTEST_ROOT=/usr/src/googletest/googletesti
-DGMOCK_ROOT=/usr/src/googletest/googlemock ../gnucash
-- Using guile-2.0.x
-- Using guile SRFI-64
-- Checking for GTEST
-- Checking for GMOCK

  <>

-- Configuring done
-- Generating done
-- Build files have been written to: /home/steve/Projects/GnuCash/build-area


steve@SteveLaptop:~/Projects/GnuCash/build-area$ make
Scanning dependencies of target ChangeLog
[  0%] Built target ChangeLog
Scanning dependencies of target guile-json

<>

[ 38%] Linking CXX shared library ../../../lib/libgnc-backend-xml-utils.so
/usr/bin/ld: CMakeFiles/gnc-backend-xml-utils.dir/gnc-xml-backend.cpp.o:
in function `GncXmlBackend::write_to_file(bool)':
gnc-xml-backend.cpp:(.text+0x11e6): warning: the use of `mktemp' is
dangerous, better use `mkstemp' or `mkdtemp'

<>

[ 85%] Generating
../../../lib/gnucash/scm/ccache/2.0/gnucash/report/report-system/report-collectors.go
wrote
`/home/steve/Projects/GnuCash/build-area/lib/gnucash/scm/ccache/2.0/gnucash/report/report-system/report-collectors.go'

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
[ 85%] Built target scm-report-system-2b

<>

[ 94%] Generating
../../../../lib/gnucash/scm/ccache/2.0/gnucash/report/locale-specific/de_DE.go

(process:30149): gnc.module-WARNING **: 17:53:58.604: Could not locate
module gnucash/tax/de_DE interface v.0
wrote
`/home/steve/Projects/GnuCash/build-area/lib/gnucash/scm/ccache/2.0/gnucash/report/locale-specific/de_DE.go'

<>


[100%] Built target swig-gnucash-core

==

Do I need to file a bug for any of the above?

--Steve

-- 
Stephen M Butler, PMP, PSM
stephen.m.butle...@gmail.com
kg...@arrl.net
253-350-0166
---
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8


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


Re: [GNC-dev] Building 3.5 package for Disco

2019-04-30 Thread Stephen M. Butler
Colin,

Wish I knew!  Something about the upgrade to 19.04, as building 3.5 on
18.04 (Ubuntu) worked great.  In fact, I'm using the version of 3.5
built on 18.04 (and installed under 18.04).  It works great after the
upgrade to 19.04 (via 18.10).  But folks are reporting that it won't
install directly on 19.04. 

Also wish I had my 1000 hours in on C, cmake, etc. so I could be a quasi
expert (ex -- "has been", spurt -- "drip under pressure";  expert --
"has been drip under pressure").  Right now my experience level is still
in the negative regions!

Given that, I do have "High Hopes.  High up in the sky, apple pie,
Hopes!"   https://www.youtube.com/watch?v=S94Bh3Qez9o

BTW, I restructured to google drive folder so previous links won't
work.  And, future folders will be children of this link: 

https://drive.google.com/open?id=1s-E6t-snmQiEFaT_hlWF2KHWrIB_LV2x

That currently holds two folders:
Disco -- currently empty
Trusty-Xenial-Bionic  -- currently holds folders:  GnuCash-3.4 and
GnuCash-3.5

Once I figure out the problem with building under Disco, I'll try to
keep up with building for both Disco and pre-Disco.

Eventually I'll figure out how to do this all with a ppa -- but I need
to take smaller steps in the interim.

Anybody who is an expert building debian packages is sure welcome to
provide mentor-ship!

--Steve



On 4/30/19 8:16 AM, Colin Law wrote:
> Stephen, why this is different to the when you built for the earlier
> version of Ubuntu?  I assumed that only a few dependencies would have
> changed.
>
> Colin
>
> On Tue, 30 Apr 2019 at 15:30, John Ralls  wrote:
>> The arguments I gave you are for the cmake command line. I don't know the 
>> packaging tool you're using, but it's obviously constructing a cmake command 
>> line out of compressed arguments: The snippet --with python3,aqbanking would 
>> be passed to cmake as -D WITH_PYTHON=ON -D WITH_AQBANKING=ON.
>>
>> You'll need to read the docs on the packaging tool to find out how to set 
>> other kinds of cmake options.
>>
>> Regards,
>> John Ralls
>>
>>
>>> On Apr 29, 2019, at 7:48 PM, Stephen M. Butler  wrote:
>>>
>>> On 4/26/19 4:04 PM, John Ralls wrote:
> On Apr 26, 2019, at 10:04 AM, Stephen M. Butler  wrote:
>
> Based on the following, have I run into a problem with googletest on
> Disco?  Additional Guidance sure appreciated.
>
 Just point GnuCash at the source directories with -DGTEST_ROOT and 
 -DGMOCK_ROOT. It will take care of building them.

 Regards,
 John Ralls


>>> Showing my ignorance now.  Found this line in the rules file:
>>>
>>> dh $@ --buildsystem=cmake --with python3,aqbanking --builddirectory=.build
>>>
>>> Only place in the file that I found 'cmake'.  Modified the line to say:
>>>
>>> dh $@ --buildsystem=cmake --with python3,aqbanking
>>> --builddirectory=.build -DGTEST_ROOT=/usr/src/googletest/googletest
>>> -DGMOCK_ROOT=/usr/src/googletest/googlemock
>>>
>>> Now both the clean and build report problems:
>>>
>>> $ fakeroot debian/rules clean
>>> dh clean --buildsystem=cmake --with python3,aqbanking
>>> --builddirectory=.build -DGTEST_ROOT=/usr/src/googletest/googletest
>>> -DGMOCK_ROOT=/usr/src/googletest/googlemock
>>>dh_testdir -O--buildsystem=cmake -O--builddirectory=.build
>>> -O-DGTEST_ROOT=/usr/src/googletest/googletest
>>> -O-DGMOCK_ROOT=/usr/src/googletest/googlemock
>>>debian/rules override_dh_auto_clean
>>> make[1]: Entering directory '/home/steve/Projects/GnuCash/gnucash'
>>> rm -f -rv .build/__gtest */*/*/.libs */*/.libs
>>> find . -type l -exec rm -v \{\} \;
>>> rm -fv debian/gnucash-icon-32x32.xpm
>>> dh_auto_clean
>>> Use of uninitialized value $abspath in -d at
>>> /usr/share/perl5/Debian/Debhelper/Buildsystem.pm line 133.
>>> dh_auto_clean: invalid or non-existing path to the source directory:
>>> GMOCK_ROOT=/usr/src/googletest/googlemock
>>> make[1]: *** [debian/rules:32: override_dh_auto_clean] Error 2
>>> make[1]: Leaving directory '/home/steve/Projects/GnuCash/gnucash'
>>> make: *** [debian/rules:26: clean] Error 2
>>>
>>>
>>> $ dpkg-buildpackage -rfakeroot -b -uc
>>> dpkg-buildpackage: info: source package gnucash
>>> dpkg-buildpackage: info: source version 1:3.5
>>> dpkg-buildpackage: info: source distribution disco
>>> dpkg-buildpackage: info: source changed by Steve Butler
>>> 
>>> dpkg-buildpackage: info: host architecture amd64
>>>  dpkg-source --before-build .
>>> dpkg-source: info: using options from gnucash/debian/source/options:
>>> --extend-diff-ignore=(^|/)(src/scm/build-config.scm)$
>>>  fakeroot debian/rules clean
>>> dh clean --buildsystem=cmake --with python3,aqbanking
>>> --builddirectory=.build -DGTEST_ROOT=/usr/src/googletest/googletest
>>> -DGMOCK_ROOT=/usr/src/googletest/googlemock
>>>dh_testdir -O--buildsystem=cmake -O--builddirectory=.build
>>> -O-DGTEST_ROOT=/usr/src/googletest/googletest
>>> -O-DGMOCK_ROOT=/usr/src/googletest/googlemock
>>>debian/rules override_dh_auto_clean
>>> make[1]: Entering directory 

Re: [GNC-dev] Building 3.5 package for Disco

2019-04-30 Thread Stephen M. Butler
OK.  I'll dig in and see if I can make sense of the tool and the file
debian folder I found on the Debian site for GnuCash 3.4.  Guess I
should be thankful it worked so well out of the box for Ubuntu 18.04.

--Steve

PS.  I keep hoping Demintry (sp?) will post one for GnuCash 3.5 and I
can swipe that!

On 4/30/19 7:29 AM, John Ralls wrote:
> The arguments I gave you are for the cmake command line. I don't know the 
> packaging tool you're using, but it's obviously constructing a cmake command 
> line out of compressed arguments: The snippet --with python3,aqbanking would 
> be passed to cmake as -D WITH_PYTHON=ON -D WITH_AQBANKING=ON.
>
> You'll need to read the docs on the packaging tool to find out how to set 
> other kinds of cmake options.
>
> Regards,
> John Ralls
>
>
>> On Apr 29, 2019, at 7:48 PM, Stephen M. Butler  wrote:
>>
>> On 4/26/19 4:04 PM, John Ralls wrote:
 On Apr 26, 2019, at 10:04 AM, Stephen M. Butler  wrote:

 Based on the following, have I run into a problem with googletest on
 Disco?  Additional Guidance sure appreciated.

>>> Just point GnuCash at the source directories with -DGTEST_ROOT and 
>>> -DGMOCK_ROOT. It will take care of building them.
>>>
>>> Regards,
>>> John Ralls
>>>
>>>
>> Showing my ignorance now.  Found this line in the rules file:
>>
>> dh $@ --buildsystem=cmake --with python3,aqbanking --builddirectory=.build
>>
>> Only place in the file that I found 'cmake'.  Modified the line to say:
>>
>> dh $@ --buildsystem=cmake --with python3,aqbanking
>> --builddirectory=.build -DGTEST_ROOT=/usr/src/googletest/googletest
>> -DGMOCK_ROOT=/usr/src/googletest/googlemock
>>
>> Now both the clean and build report problems:
>>
>> $ fakeroot debian/rules clean
>> dh clean --buildsystem=cmake --with python3,aqbanking
>> --builddirectory=.build -DGTEST_ROOT=/usr/src/googletest/googletest
>> -DGMOCK_ROOT=/usr/src/googletest/googlemock
>>dh_testdir -O--buildsystem=cmake -O--builddirectory=.build
>> -O-DGTEST_ROOT=/usr/src/googletest/googletest
>> -O-DGMOCK_ROOT=/usr/src/googletest/googlemock
>>debian/rules override_dh_auto_clean
>> make[1]: Entering directory '/home/steve/Projects/GnuCash/gnucash'
>> rm -f -rv .build/__gtest */*/*/.libs */*/.libs
>> find . -type l -exec rm -v \{\} \;
>> rm -fv debian/gnucash-icon-32x32.xpm
>> dh_auto_clean
>> Use of uninitialized value $abspath in -d at
>> /usr/share/perl5/Debian/Debhelper/Buildsystem.pm line 133.
>> dh_auto_clean: invalid or non-existing path to the source directory:
>> GMOCK_ROOT=/usr/src/googletest/googlemock
>> make[1]: *** [debian/rules:32: override_dh_auto_clean] Error 2
>> make[1]: Leaving directory '/home/steve/Projects/GnuCash/gnucash'
>> make: *** [debian/rules:26: clean] Error 2
>>
>>
>> $ dpkg-buildpackage -rfakeroot -b -uc
>> dpkg-buildpackage: info: source package gnucash
>> dpkg-buildpackage: info: source version 1:3.5
>> dpkg-buildpackage: info: source distribution disco
>> dpkg-buildpackage: info: source changed by Steve Butler
>> 
>> dpkg-buildpackage: info: host architecture amd64
>>  dpkg-source --before-build .
>> dpkg-source: info: using options from gnucash/debian/source/options:
>> --extend-diff-ignore=(^|/)(src/scm/build-config.scm)$
>>  fakeroot debian/rules clean
>> dh clean --buildsystem=cmake --with python3,aqbanking
>> --builddirectory=.build -DGTEST_ROOT=/usr/src/googletest/googletest
>> -DGMOCK_ROOT=/usr/src/googletest/googlemock
>>dh_testdir -O--buildsystem=cmake -O--builddirectory=.build
>> -O-DGTEST_ROOT=/usr/src/googletest/googletest
>> -O-DGMOCK_ROOT=/usr/src/googletest/googlemock
>>debian/rules override_dh_auto_clean
>> make[1]: Entering directory '/home/steve/Projects/GnuCash/gnucash'
>> rm -f -rv .build/__gtest */*/*/.libs */*/.libs
>> find . -type l -exec rm -v \{\} \;
>> rm -fv debian/gnucash-icon-32x32.xpm
>> dh_auto_clean
>> Use of uninitialized value $abspath in -d at
>> /usr/share/perl5/Debian/Debhelper/Buildsystem.pm line 133.
>> dh_auto_clean: invalid or non-existing path to the source directory:
>> GMOCK_ROOT=/usr/src/googletest/googlemock
>> make[1]: *** [debian/rules:32: override_dh_auto_clean] Error 2
>> make[1]: Leaving directory '/home/steve/Projects/GnuCash/gnucash'
>> make: *** [debian/rules:26: clean] Error 2
>> dpkg-buildpackage: error: fakeroot debian/rules clean subprocess
>> returned exit status 2
>>
>>
>> Here are the files in /usr/src/googletest:
>>
>> $ cd /usr/src/googletest
>> $ ls -l
>> total 12
>> -rw-r--r--  1 root root  584 Aug 31  2018 CMakeLists.txt
>> drwxr-xr-x 10 root root 4096 Apr 21 20:36 googlemock
>> drwxr-xr-x 15 root root 4096 Apr 26 09:45 googletest
>>
>>
>> And lines 130ff in /usr/share/perl5/Debian/Debhelper/Buildsystem.pm are:
>>
>> # Get relative sourcedir abs_path (without symlinks)
>> my $abspath = Cwd::abs_path($opts{sourcedir});
>> if (! -d $abspath || $abspath !~ /^\Q$this->{cwd}\E/) {
>> error("invalid or non-existing path to the
>> 

Re: [GNC-dev] Building 3.5 package for Disco

2019-04-30 Thread John Ralls
The arguments I gave you are for the cmake command line. I don't know the 
packaging tool you're using, but it's obviously constructing a cmake command 
line out of compressed arguments: The snippet --with python3,aqbanking would be 
passed to cmake as -D WITH_PYTHON=ON -D WITH_AQBANKING=ON.

You'll need to read the docs on the packaging tool to find out how to set other 
kinds of cmake options.

Regards,
John Ralls


> On Apr 29, 2019, at 7:48 PM, Stephen M. Butler  wrote:
> 
> On 4/26/19 4:04 PM, John Ralls wrote:
>> 
>>> On Apr 26, 2019, at 10:04 AM, Stephen M. Butler  wrote:
>>> 
>>> Based on the following, have I run into a problem with googletest on
>>> Disco?  Additional Guidance sure appreciated.
>>> 
>> Just point GnuCash at the source directories with -DGTEST_ROOT and 
>> -DGMOCK_ROOT. It will take care of building them.
>> 
>> Regards,
>> John Ralls
>> 
>> 
> Showing my ignorance now.  Found this line in the rules file:
> 
> dh $@ --buildsystem=cmake --with python3,aqbanking --builddirectory=.build
> 
> Only place in the file that I found 'cmake'.  Modified the line to say:
> 
> dh $@ --buildsystem=cmake --with python3,aqbanking
> --builddirectory=.build -DGTEST_ROOT=/usr/src/googletest/googletest
> -DGMOCK_ROOT=/usr/src/googletest/googlemock
> 
> Now both the clean and build report problems:
> 
> $ fakeroot debian/rules clean
> dh clean --buildsystem=cmake --with python3,aqbanking
> --builddirectory=.build -DGTEST_ROOT=/usr/src/googletest/googletest
> -DGMOCK_ROOT=/usr/src/googletest/googlemock
>dh_testdir -O--buildsystem=cmake -O--builddirectory=.build
> -O-DGTEST_ROOT=/usr/src/googletest/googletest
> -O-DGMOCK_ROOT=/usr/src/googletest/googlemock
>debian/rules override_dh_auto_clean
> make[1]: Entering directory '/home/steve/Projects/GnuCash/gnucash'
> rm -f -rv .build/__gtest */*/*/.libs */*/.libs
> find . -type l -exec rm -v \{\} \;
> rm -fv debian/gnucash-icon-32x32.xpm
> dh_auto_clean
> Use of uninitialized value $abspath in -d at
> /usr/share/perl5/Debian/Debhelper/Buildsystem.pm line 133.
> dh_auto_clean: invalid or non-existing path to the source directory:
> GMOCK_ROOT=/usr/src/googletest/googlemock
> make[1]: *** [debian/rules:32: override_dh_auto_clean] Error 2
> make[1]: Leaving directory '/home/steve/Projects/GnuCash/gnucash'
> make: *** [debian/rules:26: clean] Error 2
> 
> 
> $ dpkg-buildpackage -rfakeroot -b -uc
> dpkg-buildpackage: info: source package gnucash
> dpkg-buildpackage: info: source version 1:3.5
> dpkg-buildpackage: info: source distribution disco
> dpkg-buildpackage: info: source changed by Steve Butler
> 
> dpkg-buildpackage: info: host architecture amd64
>  dpkg-source --before-build .
> dpkg-source: info: using options from gnucash/debian/source/options:
> --extend-diff-ignore=(^|/)(src/scm/build-config.scm)$
>  fakeroot debian/rules clean
> dh clean --buildsystem=cmake --with python3,aqbanking
> --builddirectory=.build -DGTEST_ROOT=/usr/src/googletest/googletest
> -DGMOCK_ROOT=/usr/src/googletest/googlemock
>dh_testdir -O--buildsystem=cmake -O--builddirectory=.build
> -O-DGTEST_ROOT=/usr/src/googletest/googletest
> -O-DGMOCK_ROOT=/usr/src/googletest/googlemock
>debian/rules override_dh_auto_clean
> make[1]: Entering directory '/home/steve/Projects/GnuCash/gnucash'
> rm -f -rv .build/__gtest */*/*/.libs */*/.libs
> find . -type l -exec rm -v \{\} \;
> rm -fv debian/gnucash-icon-32x32.xpm
> dh_auto_clean
> Use of uninitialized value $abspath in -d at
> /usr/share/perl5/Debian/Debhelper/Buildsystem.pm line 133.
> dh_auto_clean: invalid or non-existing path to the source directory:
> GMOCK_ROOT=/usr/src/googletest/googlemock
> make[1]: *** [debian/rules:32: override_dh_auto_clean] Error 2
> make[1]: Leaving directory '/home/steve/Projects/GnuCash/gnucash'
> make: *** [debian/rules:26: clean] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules clean subprocess
> returned exit status 2
> 
> 
> Here are the files in /usr/src/googletest:
> 
> $ cd /usr/src/googletest
> $ ls -l
> total 12
> -rw-r--r--  1 root root  584 Aug 31  2018 CMakeLists.txt
> drwxr-xr-x 10 root root 4096 Apr 21 20:36 googlemock
> drwxr-xr-x 15 root root 4096 Apr 26 09:45 googletest
> 
> 
> And lines 130ff in /usr/share/perl5/Debian/Debhelper/Buildsystem.pm are:
> 
> # Get relative sourcedir abs_path (without symlinks)
> my $abspath = Cwd::abs_path($opts{sourcedir});
> if (! -d $abspath || $abspath !~ /^\Q$this->{cwd}\E/) {
> error("invalid or non-existing path to the
> source directory: ".$opts{sourcedir});
> }
> $this->{sourcedir} = File::Spec->abs2rel($abspath,
> $this->{cwd});
> }
> 
> --Steve (in the deep water without my scuba gear)
> 
> -- 
> Stephen M Butler, PMP, PSM
> stephen.m.butle...@gmail.com
> kg...@arrl.net
> 253-350-0166
> ---
> GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8
> 
> 


Re: [GNC-dev] Building 3.5 package for Disco

2019-04-29 Thread Stephen M. Butler
On 4/26/19 4:04 PM, John Ralls wrote:
>
>> On Apr 26, 2019, at 10:04 AM, Stephen M. Butler  wrote:
>>
>> Based on the following, have I run into a problem with googletest on
>> Disco?  Additional Guidance sure appreciated.
>>
> Just point GnuCash at the source directories with -DGTEST_ROOT and 
> -DGMOCK_ROOT. It will take care of building them.
>
> Regards,
> John Ralls
>
>
Showing my ignorance now.  Found this line in the rules file:

dh $@ --buildsystem=cmake --with python3,aqbanking --builddirectory=.build

Only place in the file that I found 'cmake'.  Modified the line to say:

dh $@ --buildsystem=cmake --with python3,aqbanking
--builddirectory=.build -DGTEST_ROOT=/usr/src/googletest/googletest
-DGMOCK_ROOT=/usr/src/googletest/googlemock

Now both the clean and build report problems:

$ fakeroot debian/rules clean
dh clean --buildsystem=cmake --with python3,aqbanking
--builddirectory=.build -DGTEST_ROOT=/usr/src/googletest/googletest
-DGMOCK_ROOT=/usr/src/googletest/googlemock
   dh_testdir -O--buildsystem=cmake -O--builddirectory=.build
-O-DGTEST_ROOT=/usr/src/googletest/googletest
-O-DGMOCK_ROOT=/usr/src/googletest/googlemock
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/home/steve/Projects/GnuCash/gnucash'
rm -f -rv .build/__gtest */*/*/.libs */*/.libs
find . -type l -exec rm -v \{\} \;
rm -fv debian/gnucash-icon-32x32.xpm
dh_auto_clean
Use of uninitialized value $abspath in -d at
/usr/share/perl5/Debian/Debhelper/Buildsystem.pm line 133.
dh_auto_clean: invalid or non-existing path to the source directory:
GMOCK_ROOT=/usr/src/googletest/googlemock
make[1]: *** [debian/rules:32: override_dh_auto_clean] Error 2
make[1]: Leaving directory '/home/steve/Projects/GnuCash/gnucash'
make: *** [debian/rules:26: clean] Error 2


$ dpkg-buildpackage -rfakeroot -b -uc
dpkg-buildpackage: info: source package gnucash
dpkg-buildpackage: info: source version 1:3.5
dpkg-buildpackage: info: source distribution disco
dpkg-buildpackage: info: source changed by Steve Butler

dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
dpkg-source: info: using options from gnucash/debian/source/options:
--extend-diff-ignore=(^|/)(src/scm/build-config.scm)$
 fakeroot debian/rules clean
dh clean --buildsystem=cmake --with python3,aqbanking
--builddirectory=.build -DGTEST_ROOT=/usr/src/googletest/googletest
-DGMOCK_ROOT=/usr/src/googletest/googlemock
   dh_testdir -O--buildsystem=cmake -O--builddirectory=.build
-O-DGTEST_ROOT=/usr/src/googletest/googletest
-O-DGMOCK_ROOT=/usr/src/googletest/googlemock
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/home/steve/Projects/GnuCash/gnucash'
rm -f -rv .build/__gtest */*/*/.libs */*/.libs
find . -type l -exec rm -v \{\} \;
rm -fv debian/gnucash-icon-32x32.xpm
dh_auto_clean
Use of uninitialized value $abspath in -d at
/usr/share/perl5/Debian/Debhelper/Buildsystem.pm line 133.
dh_auto_clean: invalid or non-existing path to the source directory:
GMOCK_ROOT=/usr/src/googletest/googlemock
make[1]: *** [debian/rules:32: override_dh_auto_clean] Error 2
make[1]: Leaving directory '/home/steve/Projects/GnuCash/gnucash'
make: *** [debian/rules:26: clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess
returned exit status 2


Here are the files in /usr/src/googletest:

$ cd /usr/src/googletest
$ ls -l
total 12
-rw-r--r--  1 root root  584 Aug 31  2018 CMakeLists.txt
drwxr-xr-x 10 root root 4096 Apr 21 20:36 googlemock
drwxr-xr-x 15 root root 4096 Apr 26 09:45 googletest


And lines 130ff in /usr/share/perl5/Debian/Debhelper/Buildsystem.pm are:

    # Get relative sourcedir abs_path (without symlinks)
    my $abspath = Cwd::abs_path($opts{sourcedir});
    if (! -d $abspath || $abspath !~ /^\Q$this->{cwd}\E/) {
    error("invalid or non-existing path to the
source directory: ".$opts{sourcedir});
    }
    $this->{sourcedir} = File::Spec->abs2rel($abspath,
$this->{cwd});
    }

--Steve (in the deep water without my scuba gear)

-- 
Stephen M Butler, PMP, PSM
stephen.m.butle...@gmail.com
kg...@arrl.net
253-350-0166
---
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8


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


Re: [GNC-dev] Building 3.5 package for Disco

2019-04-28 Thread Stephen M. Butler
On 4/27/19 6:48 AM, John Ralls wrote:
>
>> On Apr 26, 2019, at 8:16 PM, Stephen M. Butler  wrote:
>>
>> On 4/26/19 4:04 PM, John Ralls wrote:
 On Apr 26, 2019, at 10:04 AM, Stephen M. Butler  wrote:

 Based on the following, have I run into a problem with googletest on
 Disco?  Additional Guidance sure appreciated.

>>> Just point GnuCash at the source directories with -DGTEST_ROOT and 
>>> -DGMOCK_ROOT. It will take care of building them.
>>>
>>> Regards,
>>> John Ralls
>>>
>> found these two lines up front in the debian/rules file.
>>
>>export GMOCK_ROOT=$(CURDIR)/.build/__gtest/googlemock
>>export GTEST_ROOT=$(CURDIR)/.build/__gtest/googletestT
>>
>> Changed them to be:
>>
>>export GMOCK_ROOT=/usr/src/googletest/googletest
>>export GTEST_ROOT=/usr/src/googletest/googlemock
>>
>> and dpkg_buildpackage thru eggs all over the screen within a couple of
>> seconds.  Now searching for how cmake is invoked.  Probably pick this up
>> again Sunday evening. 
> CMake doesn't read the environment except for CFLAGS, CXXFLAGS, and LDFLAGS 
> so you have to explicitly set those on the cmake command line:
>cmake -G Ninja -D CMAKE_INSTALL_PREFIX=/path/to/install -D 
> GTEST_ROOT=/usr/src/googletest/googletest -D 
> GMOCK_ROOT=/usr/src/googletest/googlemock /path/to/gnucash-source
>
> Regards,
> John Ralls
>
>
Thanks for the confirmation John.  I'll dig into debian/rules to figure
out how/where it invokes cmake.  Cutting trees today so probably tomorrow.

--Steve

-- 
Stephen M Butler, PMP, PSM
stephen.m.butle...@gmail.com
kg...@arrl.net
253-350-0166
---
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8

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


Re: [GNC-dev] Building 3.5 package for Disco

2019-04-27 Thread John Ralls



> On Apr 26, 2019, at 8:16 PM, Stephen M. Butler  wrote:
> 
> On 4/26/19 4:04 PM, John Ralls wrote:
>> 
>>> On Apr 26, 2019, at 10:04 AM, Stephen M. Butler  wrote:
>>> 
>>> Based on the following, have I run into a problem with googletest on
>>> Disco?  Additional Guidance sure appreciated.
>>> 
>> Just point GnuCash at the source directories with -DGTEST_ROOT and 
>> -DGMOCK_ROOT. It will take care of building them.
>> 
>> Regards,
>> John Ralls
>> 
> 
> found these two lines up front in the debian/rules file.
> 
>export GMOCK_ROOT=$(CURDIR)/.build/__gtest/googlemock
>export GTEST_ROOT=$(CURDIR)/.build/__gtest/googletestT
> 
> Changed them to be:
> 
>export GMOCK_ROOT=/usr/src/googletest/googletest
>export GTEST_ROOT=/usr/src/googletest/googlemock
> 
> and dpkg_buildpackage thru eggs all over the screen within a couple of
> seconds.  Now searching for how cmake is invoked.  Probably pick this up
> again Sunday evening. 

CMake doesn't read the environment except for CFLAGS, CXXFLAGS, and LDFLAGS so 
you have to explicitly set those on the cmake command line:
   cmake -G Ninja -D CMAKE_INSTALL_PREFIX=/path/to/install -D 
GTEST_ROOT=/usr/src/googletest/googletest -D 
GMOCK_ROOT=/usr/src/googletest/googlemock /path/to/gnucash-source

Regards,
John Ralls

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


Re: [GNC-dev] Building 3.5 package for Disco

2019-04-26 Thread John Ralls



> On Apr 26, 2019, at 10:04 AM, Stephen M. Butler  wrote:
> 
> Based on the following, have I run into a problem with googletest on
> Disco?  Additional Guidance sure appreciated.
> 

Just point GnuCash at the source directories with -DGTEST_ROOT and 
-DGMOCK_ROOT. It will take care of building them.

Regards,
John Ralls

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


Re: [GNC-dev] Building 3.5 package for Disco

2019-04-26 Thread Stephen M. Butler
Based on the following, have I run into a problem with googletest on
Disco?  Additional Guidance sure appreciated.


Attempted to install googletest and was told "googletest is already the
newest version (1.8.1-3)".  Verified that the environmental variables
were not defined, implies using shared library:
env | grep GTEST
env | grep GMOCK

Figured that maybe I just need to recompile them per
https://wiki.gnucash.org/wiki/Google_Test, I attempted to follow the
wiki but ran into this snag:

cd /usr/src/googletest
sudo mkdir mybuild
cd mybuild
sudo cmake -DCAMKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON
-DBUILD_GMOCK=ON -DINSTALL_GTEST=ON -DINSTALL_GMOCK=ON ../
CMake Warning at CMakeLists.txt:47 (project):
  VERSION keyword not followed by a value or was followed by a value
that expanded to nothing.

-- The CXX compiler identification is GNU 8.3.0
-- The C compiler identification is GNU 8.3.0
-- 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
-- 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
-- Found PythonInterp: /usr/bin/python (found version "2.7.16")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE 
CMake Error at
/usr/share/cmake-3.13/Modules/WriteBasicConfigVersionFile.cmake:40
(message):
  No VERSION specified for WRITE_BASIC_CONFIG_VERSION_FILE()
Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/CMakePackageConfigHelpers.cmake:211
(write_basic_config_version_file)
  CMakeLists.txt:96 (write_basic_package_version_file)


-- Configuring incomplete, errors occurred!
See also
"/usr/src/googletest/googletest/mybuild/CMakeFiles/CMakeOutput.log".
See also "/usr/src/googletest/googletest/mybuild/CMakeFiles/CMakeError.log".


cat CMakeE*.log
Determining if the pthread_create exist failed with the following output:
Change Dir: /usr/src/googletest/googletest/mybuild/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_a80ab/fast"
/usr/bin/make -f CMakeFiles/cmTC_a80ab.dir/build.make
CMakeFiles/cmTC_a80ab.dir/build
make[1]: Entering directory
'/usr/src/googletest/googletest/mybuild/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a80ab.dir/CheckSymbolExists.c.o
/usr/bin/cc    -o CMakeFiles/cmTC_a80ab.dir/CheckSymbolExists.c.o   -c
/usr/src/googletest/googletest/mybuild/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_a80ab
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a80ab.dir/link.txt
--verbose=1
/usr/bin/cc  -rdynamic
CMakeFiles/cmTC_a80ab.dir/CheckSymbolExists.c.o  -o cmTC_a80ab
/usr/bin/ld: CMakeFiles/cmTC_a80ab.dir/CheckSymbolExists.c.o: in
function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_a80ab.dir/build.make:87: cmTC_a80ab] Error 1
make[1]: Leaving directory
'/usr/src/googletest/googletest/mybuild/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_a80ab/fast] Error 2

File
/usr/src/googletest/googletest/mybuild/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include 

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}




 cat CMakeO*.log
The system is: Linux - 5.0.0-13-generic - x86_64
Compiling the CXX compiler identification source file
"CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++
Build flags:
Id flags: 

The output was:
0


Compilation of the CXX compiler identification source
"CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in
"/usr/src/googletest/googletest/mybuild/CMakeFiles/3.13.4/CompilerIdCXX/a.out"

Compiling the C compiler identification source file "CMakeCCompilerId.c"
succeeded.
Compiler: /usr/bin/cc
Build flags:
Id flags: 

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c"
produced "a.out"

The C compiler identification is GNU, found in
"/usr/src/googletest/googletest/mybuild/CMakeFiles/3.13.4/CompilerIdC/a.out"

Determining if the CXX compiler works passed with the following output:
Change Dir: /usr/src/googletest/googletest/mybuild/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_d37f4/fast"
/usr/bin/make -f CMakeFiles/cmTC_d37f4.dir/build.make
CMakeFiles/cmTC_d37f4.dir/build
make[1]: Entering directory
'/usr/src/googletest/googletest/mybuild/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_d37f4.dir/testCXXCompiler.cxx.o

Re: [GNC-dev] Building 3.5 package for Disco

2019-04-26 Thread Colin Law
Keep up the good work, it is very much appreciated.

Colin

On Fri, 26 Apr 2019 at 17:30, Stephen M. Butler  wrote:
>
> Just upgraded to 19.04 from 18.04 (had to apply 18.10 in the process).
> I figured the upgrade would handle all items, but I found this note
> today (https://launchpad.net/ubuntu/disco/+source/gtest) that says gtest
> source isn't available for 19.10.
>
> Listing the packages on this box shows:
> dpkg -l | grep gtest
> ii  autopkgtest
> 5.10ubuntu1  all  automatic as-installed
> testing for Debian packages
> ii  libgtest-dev:amd64
> 1.8.1-3  amd64Google's framework for
> writing C++ tests
>
> dpkg -l | grep mock
> ii  google-mock:amd64
> 1.8.1-3  amd64Google's framework for
> writing and using C++ mock classes
> ii  libnunit-mocks2.6.3-cil
> 2.6.4+dfsg-1 all  Unit test framework
> for CLI - Assemblies
>
> Then I found this note
> (https://askubuntu.com/questions/219516/howto-install-google-mock-on-ubuntu-12-10)
> about needing to compile google test with the same flags as the subject
> (in this case GnC) else get strange results.
>
> I'm headed back to the wiki for building GnC on Linux to verify the
> dependencies (and cross check to what 19.04 loaded).  I think there was
> a note there about building google test and mock.
>
> I will report back once I've done that.
>
> --Steve
>
> [but it did work on 18.04!!]
>
>
>
> On 4/26/19 12:26 AM, Geert Janssens wrote:
> > The error seems to have something to do with GTtest. Do you have 
> > google_test/
> > google_mock properly installed ?
> >
> > Regards,
> >
> > Geert
> >
> > Op vrijdag 26 april 2019 04:37:04 CEST schreef Stephen M. Butler:
> >> Anybody here can help with dpkg-buildpackage -rfakeroot -b -uc?
> >>
> >> I received this error message (snippet copied):
> >>
> >> Scanning dependencies of target test-tx_import
> >> make[5]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build'
> >> /usr/bin/make -f
> >> gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/build.make
> >> gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/build
> >> make[5]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build'
> >> [ 87%] Building CXX object
> >> gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/test-tx-imp
> >> ort.cpp.o cd
> >> /home/steve/Projects/GnuCash/gnucash/.build/gnucash/import-export/csv-imp/te
> >> st && /usr/bin/c++  -DHAVE_CONFIG_H -DHAVE_GUILE20 -D_GNU_SOURCE
> >> -I/home/steve/Projects/GnuCash/gnucash/gnucash/import-export/csv-imp
> >> -I/home/steve/Projects/GnuCash/gnucash/.build/common
> >> -I/home/steve/Projects/GnuCash/gnucash/common
> >> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/engine
> >> -I/home/steve/Projects/GnuCash/gnucash/common/test-core
> >> -I/home/steve/Projects/GnuCash/gnucash/lib -I/usr/include/glib-2.0
> >> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> >> -I/home/steve/Projects/GnuCash/gnucash/.build/__gtest/googletest/include
> >> -I/home/steve/Projects/GnuCash/gnucash/gnucash/import-export
> >> -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0
> >> -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0
> >> -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gio-unix-2.0
> >> -I/usr/include/cairo -I/usr/include/libdrm -I/usr/include/pango-1.0
> >> -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0
> >> -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
> >> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount
> >> -I/usr/include/blkid -I/usr/include/uuid
> >> -I/home/steve/Projects/GnuCash/gnucash/gnucash/gnome-utils
> >> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/app-utils
> >> -I/home/steve/Projects/GnuCash/gnucash/borrowed/libc
> >> -I/home/steve/Projects/GnuCash/gnucash/.build/libgnucash/core-utils
> >> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/core-utils
> >> -I/usr/include/guile/2.0
> >> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/gnc-module
> >> -I/usr/include/libxml2
> >> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/backend/xml
> >> -Wno-error=deprecated-declarations  -Werror -Wall -Wmissing-declarations
> >> -Wno-unused -Wno-error=parentheses -std=gnu++11 -g -O2
> >> -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=.
> >> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> >> -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG   -o
> >> CMakeFiles/test-tx_import.dir/test-tx-import.cpp.o -c
> >> /home/steve/Projects/GnuCash/gnucash/gnucash/import-export/csv-imp/test/test
> >> -tx-import.cpp [ 87%] Linking CXX executable ../../../../bin/test-tx_import
> >> cd
> >> /home/steve/Projects/GnuCash/gnucash/.build/gnucash/import-export/csv-imp/te
> >> st && /usr/bin/cmake -E cmake_link_script
> >> CMakeFiles/test-tx_import.dir/link.txt --verbose=1
> >> /usr/bin/c++  -Wno-error=deprecated-declarations  -Werror -Wall
> >> 

Re: [GNC-dev] Building 3.5 package for Disco

2019-04-26 Thread Stephen M. Butler
Just upgraded to 19.04 from 18.04 (had to apply 18.10 in the process). 
I figured the upgrade would handle all items, but I found this note
today (https://launchpad.net/ubuntu/disco/+source/gtest) that says gtest
source isn't available for 19.10.

Listing the packages on this box shows:
dpkg -l | grep gtest
ii  autopkgtest
5.10ubuntu1  all  automatic as-installed
testing for Debian packages
ii  libgtest-dev:amd64 
1.8.1-3  amd64    Google's framework for
writing C++ tests

dpkg -l | grep mock
ii  google-mock:amd64  
1.8.1-3  amd64    Google's framework for
writing and using C++ mock classes
ii  libnunit-mocks2.6.3-cil
2.6.4+dfsg-1 all  Unit test framework
for CLI - Assemblies

Then I found this note
(https://askubuntu.com/questions/219516/howto-install-google-mock-on-ubuntu-12-10)
about needing to compile google test with the same flags as the subject
(in this case GnC) else get strange results.

I'm headed back to the wiki for building GnC on Linux to verify the
dependencies (and cross check to what 19.04 loaded).  I think there was
a note there about building google test and mock. 

I will report back once I've done that.

--Steve

[but it did work on 18.04!!]



On 4/26/19 12:26 AM, Geert Janssens wrote:
> The error seems to have something to do with GTtest. Do you have google_test/
> google_mock properly installed ?
>
> Regards,
>
> Geert
>
> Op vrijdag 26 april 2019 04:37:04 CEST schreef Stephen M. Butler:
>> Anybody here can help with dpkg-buildpackage -rfakeroot -b -uc?
>>
>> I received this error message (snippet copied):
>>
>> Scanning dependencies of target test-tx_import
>> make[5]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build'
>> /usr/bin/make -f
>> gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/build.make
>> gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/build
>> make[5]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build'
>> [ 87%] Building CXX object
>> gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/test-tx-imp
>> ort.cpp.o cd
>> /home/steve/Projects/GnuCash/gnucash/.build/gnucash/import-export/csv-imp/te
>> st && /usr/bin/c++  -DHAVE_CONFIG_H -DHAVE_GUILE20 -D_GNU_SOURCE
>> -I/home/steve/Projects/GnuCash/gnucash/gnucash/import-export/csv-imp
>> -I/home/steve/Projects/GnuCash/gnucash/.build/common
>> -I/home/steve/Projects/GnuCash/gnucash/common
>> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/engine
>> -I/home/steve/Projects/GnuCash/gnucash/common/test-core
>> -I/home/steve/Projects/GnuCash/gnucash/lib -I/usr/include/glib-2.0
>> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
>> -I/home/steve/Projects/GnuCash/gnucash/.build/__gtest/googletest/include
>> -I/home/steve/Projects/GnuCash/gnucash/gnucash/import-export
>> -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0
>> -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0
>> -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gio-unix-2.0
>> -I/usr/include/cairo -I/usr/include/libdrm -I/usr/include/pango-1.0
>> -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0
>> -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
>> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount
>> -I/usr/include/blkid -I/usr/include/uuid
>> -I/home/steve/Projects/GnuCash/gnucash/gnucash/gnome-utils
>> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/app-utils
>> -I/home/steve/Projects/GnuCash/gnucash/borrowed/libc
>> -I/home/steve/Projects/GnuCash/gnucash/.build/libgnucash/core-utils
>> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/core-utils
>> -I/usr/include/guile/2.0
>> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/gnc-module
>> -I/usr/include/libxml2
>> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/backend/xml 
>> -Wno-error=deprecated-declarations  -Werror -Wall -Wmissing-declarations
>> -Wno-unused -Wno-error=parentheses -std=gnu++11 -g -O2
>> -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=.
>> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
>> -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG   -o
>> CMakeFiles/test-tx_import.dir/test-tx-import.cpp.o -c
>> /home/steve/Projects/GnuCash/gnucash/gnucash/import-export/csv-imp/test/test
>> -tx-import.cpp [ 87%] Linking CXX executable ../../../../bin/test-tx_import
>> cd
>> /home/steve/Projects/GnuCash/gnucash/.build/gnucash/import-export/csv-imp/te
>> st && /usr/bin/cmake -E cmake_link_script
>> CMakeFiles/test-tx_import.dir/link.txt --verbose=1
>> /usr/bin/c++  -Wno-error=deprecated-declarations  -Werror -Wall
>> -Wmissing-declarations -Wno-unused -Wno-error=parentheses -std=gnu++11
>> -g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=.
>> 

Re: [GNC-dev] Building 3.5 package for Disco

2019-04-26 Thread Geert Janssens
The error seems to have something to do with GTtest. Do you have google_test/
google_mock properly installed ?

Regards,

Geert

Op vrijdag 26 april 2019 04:37:04 CEST schreef Stephen M. Butler:
> Anybody here can help with dpkg-buildpackage -rfakeroot -b -uc?
> 
> I received this error message (snippet copied):
> 
> Scanning dependencies of target test-tx_import
> make[5]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build'
> /usr/bin/make -f
> gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/build.make
> gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/build
> make[5]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build'
> [ 87%] Building CXX object
> gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/test-tx-imp
> ort.cpp.o cd
> /home/steve/Projects/GnuCash/gnucash/.build/gnucash/import-export/csv-imp/te
> st && /usr/bin/c++  -DHAVE_CONFIG_H -DHAVE_GUILE20 -D_GNU_SOURCE
> -I/home/steve/Projects/GnuCash/gnucash/gnucash/import-export/csv-imp
> -I/home/steve/Projects/GnuCash/gnucash/.build/common
> -I/home/steve/Projects/GnuCash/gnucash/common
> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/engine
> -I/home/steve/Projects/GnuCash/gnucash/common/test-core
> -I/home/steve/Projects/GnuCash/gnucash/lib -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> -I/home/steve/Projects/GnuCash/gnucash/.build/__gtest/googletest/include
> -I/home/steve/Projects/GnuCash/gnucash/gnucash/import-export
> -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0
> -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0
> -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gio-unix-2.0
> -I/usr/include/cairo -I/usr/include/libdrm -I/usr/include/pango-1.0
> -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0
> -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount
> -I/usr/include/blkid -I/usr/include/uuid
> -I/home/steve/Projects/GnuCash/gnucash/gnucash/gnome-utils
> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/app-utils
> -I/home/steve/Projects/GnuCash/gnucash/borrowed/libc
> -I/home/steve/Projects/GnuCash/gnucash/.build/libgnucash/core-utils
> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/core-utils
> -I/usr/include/guile/2.0
> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/gnc-module
> -I/usr/include/libxml2
> -I/home/steve/Projects/GnuCash/gnucash/libgnucash/backend/xml 
> -Wno-error=deprecated-declarations  -Werror -Wall -Wmissing-declarations
> -Wno-unused -Wno-error=parentheses -std=gnu++11 -g -O2
> -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG   -o
> CMakeFiles/test-tx_import.dir/test-tx-import.cpp.o -c
> /home/steve/Projects/GnuCash/gnucash/gnucash/import-export/csv-imp/test/test
> -tx-import.cpp [ 87%] Linking CXX executable ../../../../bin/test-tx_import
> cd
> /home/steve/Projects/GnuCash/gnucash/.build/gnucash/import-export/csv-imp/te
> st && /usr/bin/cmake -E cmake_link_script
> CMakeFiles/test-tx_import.dir/link.txt --verbose=1
> /usr/bin/c++  -Wno-error=deprecated-declarations  -Werror -Wall
> -Wmissing-declarations -Wno-unused -Wno-error=parentheses -std=gnu++11
> -g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG  -Wl,-Bsymbolic-functions -Wl,-z,relro
> -Wl,-z,now -rdynamic CMakeFiles/test-tx_import.dir/test-tx-import.cpp.o 
> -o ../../../../bin/test-tx_import
> -Wl,-rpath,/home/steve/Projects/GnuCash/gnucash/.build/lib/x86_64-linux-gnu/
> gnucash/gnucash:/home/steve/Projects/GnuCash/gnucash/.build/lib/x86_64-linux
> -gnu/gnucash
> ../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-csv-import.so
> -lglib-2.0 -Wl,-Bstatic -lgtest -lgtest_main -Wl,-Bdynamic -licui18n
> -licuuc -licudata
> ../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-generic-import.so
> ../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-gnome-utils.so
> ../../../../lib/x86_64-linux-gnu/gnucash/libgnc-backend-xml-utils.so -lz
> -ldl -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0
> -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lsecret-1
> ../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-app-utils.so
> -lgio-2.0 -lxslt -lxml2
> ../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-engine.so
> ../../../../lib/x86_64-linux-gnu/gnucash/libgnc-core-utils.so
> -lboost_date_time -lboost_regex -lboost_locale -lboost_filesystem
> -lboost_system -lgobject-2.0
> ../../../../lib/x86_64-linux-gnu/gnucash/libgnc-module.so
> -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -pthread -lguile-2.0 -lgc
> /usr/bin/ld:
> /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libgtest_main.a(gt
> est_main.cc.o): in function `main':
> (.text.startup+0x2f): undefined reference to
> 

[GNC-dev] Building 3.5 package for Disco

2019-04-25 Thread Stephen M. Butler
Anybody here can help with dpkg-buildpackage -rfakeroot -b -uc?

I received this error message (snippet copied):

Scanning dependencies of target test-tx_import
make[5]: Leaving directory '/home/steve/Projects/GnuCash/gnucash/.build'
/usr/bin/make -f
gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/build.make
gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/build
make[5]: Entering directory '/home/steve/Projects/GnuCash/gnucash/.build'
[ 87%] Building CXX object
gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/test-tx-import.cpp.o
cd
/home/steve/Projects/GnuCash/gnucash/.build/gnucash/import-export/csv-imp/test
&& /usr/bin/c++  -DHAVE_CONFIG_H -DHAVE_GUILE20 -D_GNU_SOURCE
-I/home/steve/Projects/GnuCash/gnucash/gnucash/import-export/csv-imp
-I/home/steve/Projects/GnuCash/gnucash/.build/common
-I/home/steve/Projects/GnuCash/gnucash/common
-I/home/steve/Projects/GnuCash/gnucash/libgnucash/engine
-I/home/steve/Projects/GnuCash/gnucash/common/test-core
-I/home/steve/Projects/GnuCash/gnucash/lib -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/home/steve/Projects/GnuCash/gnucash/.build/__gtest/googletest/include
-I/home/steve/Projects/GnuCash/gnucash/gnucash/import-export
-I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0
-I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gio-unix-2.0
-I/usr/include/cairo -I/usr/include/libdrm -I/usr/include/pango-1.0
-I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount
-I/usr/include/blkid -I/usr/include/uuid
-I/home/steve/Projects/GnuCash/gnucash/gnucash/gnome-utils
-I/home/steve/Projects/GnuCash/gnucash/libgnucash/app-utils
-I/home/steve/Projects/GnuCash/gnucash/borrowed/libc
-I/home/steve/Projects/GnuCash/gnucash/.build/libgnucash/core-utils
-I/home/steve/Projects/GnuCash/gnucash/libgnucash/core-utils
-I/usr/include/guile/2.0
-I/home/steve/Projects/GnuCash/gnucash/libgnucash/gnc-module
-I/usr/include/libxml2
-I/home/steve/Projects/GnuCash/gnucash/libgnucash/backend/xml 
-Wno-error=deprecated-declarations  -Werror -Wall -Wmissing-declarations
-Wno-unused -Wno-error=parentheses -std=gnu++11 -g -O2
-fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -O3 -DNDEBUG   -o
CMakeFiles/test-tx_import.dir/test-tx-import.cpp.o -c
/home/steve/Projects/GnuCash/gnucash/gnucash/import-export/csv-imp/test/test-tx-import.cpp
[ 87%] Linking CXX executable ../../../../bin/test-tx_import
cd
/home/steve/Projects/GnuCash/gnucash/.build/gnucash/import-export/csv-imp/test
&& /usr/bin/cmake -E cmake_link_script
CMakeFiles/test-tx_import.dir/link.txt --verbose=1
/usr/bin/c++  -Wno-error=deprecated-declarations  -Werror -Wall
-Wmissing-declarations -Wno-unused -Wno-error=parentheses -std=gnu++11
-g -O2 -fdebug-prefix-map=/home/steve/Projects/GnuCash/gnucash=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -O3 -DNDEBUG  -Wl,-Bsymbolic-functions -Wl,-z,relro
-Wl,-z,now -rdynamic CMakeFiles/test-tx_import.dir/test-tx-import.cpp.o 
-o ../../../../bin/test-tx_import
-Wl,-rpath,/home/steve/Projects/GnuCash/gnucash/.build/lib/x86_64-linux-gnu/gnucash/gnucash:/home/steve/Projects/GnuCash/gnucash/.build/lib/x86_64-linux-gnu/gnucash
../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-csv-import.so
-lglib-2.0 -Wl,-Bstatic -lgtest -lgtest_main -Wl,-Bdynamic -licui18n
-licuuc -licudata
../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-generic-import.so
../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-gnome-utils.so
../../../../lib/x86_64-linux-gnu/gnucash/libgnc-backend-xml-utils.so -lz
-ldl -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0
-lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lsecret-1
../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-app-utils.so
-lgio-2.0 -lxslt -lxml2
../../../../lib/x86_64-linux-gnu/gnucash/gnucash/libgncmod-engine.so
../../../../lib/x86_64-linux-gnu/gnucash/libgnc-core-utils.so
-lboost_date_time -lboost_regex -lboost_locale -lboost_filesystem
-lboost_system -lgobject-2.0
../../../../lib/x86_64-linux-gnu/gnucash/libgnc-module.so
-Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -pthread -lguile-2.0 -lgc
/usr/bin/ld:
/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libgtest_main.a(gtest_main.cc.o):
in function `main':
(.text.startup+0x2f): undefined reference to
`testing::InitGoogleTest(int*, char**)'
/usr/bin/ld: (.text.startup+0x34): undefined reference to
`testing::UnitTest::GetInstance()'
/usr/bin/ld: (.text.startup+0x3c): undefined reference to
`testing::UnitTest::Run()'
collect2: error: ld returned 1 exit status
make[5]: ***
[gnucash/import-export/csv-imp/test/CMakeFiles/test-tx_import.dir/build.make:103:
bin/test-tx_import] Error