[vbox-dev] how to build virtualbox 5.2 with Ubuntu xenial?
locutusofborg at debian.org
Tue Dec 12 19:09:14 UTC 2017
Hello, for reference in case in the future I get again the same problem:
>Hmm... I run into this when I was trying to compile an experimental build of VirtualBox with the Qt5.7 toolkit on OSX 10.9. It was complaining that the compiler >wasn't C++11 compatible (which it completely is). But, no matter what I threw at it, it would complain again at a later stage, and abort the compilation half-way. >I aborted too... ;)
>At least I wasn't alone. While researching for this I found that the Qt5.7 version broke a lot of projects out there...
@@ -1533,7 +1533,7 @@ EOF
LIBDIR5=`pkg-config Qt5Core --variable=libdir`
LIBQT5=`pkg-config Qt5Core --libs`
- LIBQT5="-L$LIBDIR5 $LIBQT5"
+ LIBQT5="-L$LIBDIR5 $LIBQT5 -std=c++11"
TOOLQT5=`pkg-config Qt5Core --variable=prefix`
TOOLQT5BIN=`pkg-config Qt5Core --variable=host_bins`
if test_compile "$LIBQT5 $LIBPTHREAD $FLGQT5" qt5 qt5 nofatal; then
this is the patch.
Maybe, updating it upstream can be considered "safe" too :)
More information about the vbox-dev