Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error for fletch/Qt on MacOS 10.15 #661

Open
eclairamb opened this issue Apr 1, 2021 · 2 comments
Open

Build error for fletch/Qt on MacOS 10.15 #661

eclairamb opened this issue Apr 1, 2021 · 2 comments

Comments

@eclairamb
Copy link

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/[email protected]/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/qstringlist.h:1:
In file included from /Users/[email protected]/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/../../src/corelib/tools/qstringlist.h:47:
In file included from /Users/[email protected]/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/qlist.h:1:
In file included from /Users/[email protected]/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/../../src/corelib/tools/qlist.h:45:
In file included from /Users/[email protected]/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/qiterator.h:1:
/Users/[email protected]/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.

@dstoup
Copy link
Collaborator

dstoup commented May 7, 2021 via email

@eclairamb
Copy link
Author

Hi David ,

Thanks for your answer and sorry for this late one. I was a little bit out of the project for a time, but I'm now back.
I've successfully build Qt using "release" branch Fletch build yesterday without passing any specific flags into CMake. :-)

So, issue seems to be related to VIAME superbuild. I'm contacting @mattdawkins about it.

Thanks for your help,
Eric

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants