Hello!

I was about to report a problem with building PulseView (HEAD) on
FreeBSD 14.3. But I solved it myself.
It turns out that libsigrok[decode] use Autoconf and pick up
GCC by default, while PulseView uses CMake and picks up Clang.
Often you cannot mix C++ compilers like that.
After forcing libsigrok[decode] to Clang, PulseView runs fine.
(Alright it crashes once I try to add a decoder, but that's
another problem.)

There is still something you can do about such build problems. Autoconf
prefers GCC by default, but you can add something like this to configure.ac:

AC_PROG_CC([cc gcc clang])
AC_PROG_CXX([c++ g++ clang++])

So on FreeBSD it would still prefer the system cc/c++, which is
Clang.

I think I also had to use GNU Make (gmake), which points to non-POSIX
constructs in Makefile.am.
If you absolutely do need GNUisms in your Makefiles, you could
let ./configure generate GNUmakefiles, forcing your BSD users to
run gmake (as BSD make just wouldn't find any Makefile).

Best regards,
Robin

-- 
@ii._._.*.._+__.+_+.+...+.+.++..+*+.+._.+...*_*.*.__+__._._.++..+_*.++__+__
.+_..*...+.+_+__.+._.+...*_+_+__._ ...*_ +.+._.+.._+*+_+__._._ .+_..+.+***_
. *_+_+__.+.*.++..+_+.*.__+_ _.+...*_*_+__.++*.+...++..+* +.+.._+__._+_.+..
.++..+*_.*...+*+.+.*_ +*+i2^rj.u#__%uu#_.%uu#_+%uu#_*!+!0a"t1010^t^c^c'0a^#
1010"=d'0a-100000"=d'0auuqq*100+q[_^euu]uq-rq:^/100@oo,+,+,+oqq^t0uq@o*+*!!

Attachment: signature.asc
Description: PGP signature

_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to