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 aka Catalina #133

Open
eclairamb opened this issue Mar 31, 2021 · 1 comment
Open

Build error for fletch/Qt on MacOS 10.15 aka Catalina #133

eclairamb opened this issue Mar 31, 2021 · 1 comment

Comments

@eclairamb
Copy link

eclairamb commented Mar 31, 2021

Hi,
I'm facing issues trying to build VIAME on MacOS 10.15.
First, I had to change PostgreSQL version in packages/fletch/CMake/fletch-tarballs.cmake file to setup PostgreSQL_SELECT_VERSION variable to 10.2 version. This was requested by PG build type checking error about 64 bits long integer.

For now, configure step for Qt 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

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.
CMakeOutput.log

@eclairamb
Copy link
Author

eclairamb commented Jun 8, 2021

Hi @mattdawkins ,

Following mys conversation with David Stoup, I'm now able to build Qt using Fletch build directly without passing any specific CMake flags. (Fletch issue #661).
I'm still facing this issue when running VIAME build.
Could you,please, help me to fix this issue to get VIAME running on a recent MacOS platform ?

Many 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

1 participant