-
Notifications
You must be signed in to change notification settings - Fork 54
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
Comments
Hi,
Sorry for the delay .. I was trying to reproduce this issue on the Mac I
have but needed to overcome a few other Qt build issues first.
I'm a little confused by the issue as written up. Can you explain why you
need to pass *-DCMAKE_CXX_FLAGS:STRING='-stdlib=libc++'*? Is this an issue
building Fletch alone or something to do with the VIAME superbuild? I am
able to build Fletch's Qt on my mac without passing any flags into CMake.
It does require #683, but that patch has nothing to do with this issue.
My Mac is a bit older though, ProductVersion: 10.15.7.
If you could try building Fletch with that PR or wait a few days until it
lands in master, and see if it works without any addition flags added.
Ideally, just build Qt. You can configure all packages and `make -jxx Qt`
to build it and its dependencies without other potentially problematic
packages. Reporting back with those answers and results will help us
diagnose the issue.
if that works, it might have something to do with the VIAME superbuild
rather than Fletch itself. In that case, @mattdawkins would be better able to assist.
Thanks,
Dave
…On Thu, Apr 1, 2021 at 4:27 AM eclairamb ***@***.***> wrote:
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/
***@***.***/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/qstringlist.h:1
:
In file included from /Users/
***@***.***/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/../../src/corelib/tools/qstringlist.h:47
:
In file included from /Users/
***@***.***/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/qlist.h:1
:
In file included from /Users/
***@***.***/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/../../src/corelib/tools/qlist.h:45
:
In file included from /Users/
***@***.***/VIAME/distrib/build/src/fletch-build/build/src/Qt/include/QtCore/qiterator.h:1
:
/Users/
***@***.***/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
<https://github.com/Kitware/fletch/files/6242119/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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#661>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKEAWUZBDX5CEKNQDGS6FTTGQU6NANCNFSM42GTUZOA>
.
--
David Stoup
Principal Engineer
Kitware, Inc.
1712 Route 9, Suite 300
Clifton Park, NY 12065-3104
518-881-4949 (W)
518-312-3946 (M)
518-371-4573 (F)
|
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. So, issue seems to be related to VIAME superbuild. I'm contacting @mattdawkins about it. Thanks for your help, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 :
Here is my cmake command :
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.
The text was updated successfully, but these errors were encountered: