[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] timespec_str and test linking
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-dev] timespec_str and test linking |
Date: |
Tue, 24 Sep 2019 00:42:33 -0700 |
Yo Greg!
Wow, I just made that change. I have never managed to figure out
how to build with qt, so my tests missed that. Your fix is good, I'll
push it on Tuesday. My build tree is a mess tonight.
There are a bunch of *BSD warnings fixes coming, as well as a large
change to gpsd_log().
Thanks for the patch.
On Mon, 23 Sep 2019 21:54:12 -0400
Greg Troxel <address@hidden> wrote:
> I did a build and got timespec_str undefined in test_qgpsmm. It seems
> that is because it doesn't link against -lgps which is where that
> function is (recently) defined. The following makes it build, and I
> wonder if it's the right fix.
>
> diff --git a/SConstruct b/SConstruct
> index 601db0cbb..acdc54250 100644
> --- a/SConstruct
> +++ b/SConstruct
> @@ -1976,7 +1976,7 @@ if qt_env:
> test_qgpsmm = env.Program('tests/test_qgpsmm',
> ['tests/test_gpsmm.cpp'], LIBPATH=['.'],
> OBJPREFIX='qt-',
> - LIBS=['Qgpsmm'])
> + LIBS=['Qgpsmm', 'gps'])
> build_qt = qt_env.Alias('build', [compiled_qgpsmmlib,
> test_qgpsmm]) qt_env.Default(*build_qt)
> testprogs.append(test_qgpsmm)
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can't measure it, you can't improve it." - Lord Kelvin
pgp9q7lpTSn8p.pgp
Description: OpenPGP digital signature