The port multimedia/webcamoid fails to build if USE_GCC=6.0+ is added to the Makefile. Despite QMAKE_CXX set to g++6, it still uses g++ to run tests, and fills g++ into Makefiles. My guess is that qmake leaks the "g++" compiler from some config files that are installed with it, and it disrespects QMAKE_CXX. You can see configure failures in libAvKys/config.log in that port.
Can you provide the log of such a build? mfg Tobias
(In reply to Tobias C. Berner from comment #1) Without the g++ command tests for external libraries fail: > Checking for ffmpeg... no > Checking for gstreamer... no > Checking for jack... no when it should be: > Checking for ffmpeg... yes > Checking for ffmpeg_avcodec_contextframerate... yes > Checking for ffmpeg_avcodec_extracodecformats... yes > Checking for ffmpeg_avcodec_freecontext... yes > Checking for ffmpeg_avcodec_packetref... yes > Checking for ffmpeg_avcodec_rescalets... yes > Checking for ffmpeg_avcodec_sendrecv... yes > Checking for ffmpeg_avcodec_subtitledata... yes > Checking for ffmpeg_avformat_allocoutputcontext... yes > Checking for ffmpeg_avformat_codecpar... yes > Checking for ffmpeg_avutil_extraoptions... yes > Checking for ffmpeg_avutil_extrapixformats... yes > Checking for ffmpeg_avutil_framealloc... yes > Checking for ffmpeg_avutil_sampleformat64... yes > Checking for ffmpeg_avresample... yes > Checking for ffmpeg_swresample... yes As a result, some shared libs aren't built. The external libs are tested with macros like this: qtCompileTest(ffmpeg_avcodec_contextframerate) I guess, this qmake macro calls the g++ command instead of ${CXX}.
This is basically the same as PR 204923. Because of the way qmake's mkspecs work, the compiler from the mkspec is used, rather than ${CC} or ${CXX}.
*** Bug 228341 has been marked as a duplicate of this bug. ***
There is some progress on fixing this now. At least on GCC based architectures, the freebsd-gcc mkspec now contains gcc${GCC_DEFAULT}. This will not yet solve your problem unfortunately. However, could you try using BINARY_ALIAS=gcc=${CC} g++=${CXX} mfg Tobias
Please reopen if this is still an issue.