On 5/3/19 2:57 PM, John Ralls wrote: > On May 3, 2019, at 2:44 PM, Stephen M. Butler <kg...@arrl.net> wrote: >> On 5/3/19 12:24 PM, John Ralls wrote: >>> On May 3, 2019, at 8:37 AM, Stephen M. Butler <kg...@arrl.net> wrote: >>>> On 5/2/19 10:14 PM, John Ralls wrote: >>>>>> On May 2, 2019, at 6:38 PM, Stephen M. Butler <kg...@arrl.net> 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