-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Hi,
I'm facing issues trying to build VIAME on MacOS 10.15. In fletch build step, Qt Configure step raises the following compilation error :
Creating qmake. Please wait...
clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from project.cpp:42:
In file included from ./project.h:45:
In file included from /Users/eric.clairambault@fr.ibm.com/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/qstringlist.h:1:
In file included from /Users/eric.clairambault@fr.ibm.com/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/../../src/corelib/tools/qstringlist.h:47:
In file included from /Users/eric.clairambault@fr.ibm.com/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/qlist.h:1:
In file included from /Users/eric.clairambault@fr.ibm.com/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/../../src/corelib/tools/qlist.h:45:
In file included from /Users/eric.clairambault@fr.ibm.com/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/qiterator.h:1:
/Users/eric.clairambault@fr.ibm.com/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/../../src/corelib/tools/qiterator.h:50:11: fatal error: 'new' file not found
#include // No-op, indirectly include additional configuration headers.
^~~~~
1 error generated.
make[6]: *** [project.o] Error 1
make[5]: *** [build/src/Qt-stamp/Qt-configure] Error 2
make[4]: *** [CMakeFiles/Qt.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [build/src/fletch-stamp/fletch-build] Error 2
make[1]: *** [CMakeFiles/fletch.dir/all] Error 2
make: *** [all] Error 2
Here is my cmake command :
cmake -DCMAKE_BUILD_TYPE:STRING=Release -DVIAME_ENABLE_CUDA:BOOL=off -DVIAME_ENABLE_CUDNN:BOOL=off -DVIAME_DISABLE_PYTHON_CHECKS:BOOL=on -DCMAKE_CXX_FLAGS:STRING='-stdlib=libc++' ../src
Force to use -stdlib=libc++" option on this platform. I'm using clang compiler.
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Xcode 12.4
Build version 12D4e
cmake version 3.14.1
CMakeOutput.log
platform :
Darwin MacBook-Pro.local 19.6.0 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64
It seems that qmake is not aware of CXX_FLAGS ...
Could you please help me, I have to build VIAME on this platform to be used by an interesting project about shark underwater recognition.
Many thanks for your help.
Eric.