VIAME icon indicating copy to clipboard operation
VIAME copied to clipboard

Build error for fletch/Qt on MacOS 10.15 aka Catalina

Open eclairamb opened this issue 3 years ago • 1 comments

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/[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

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 avatar Mar 31 '21 16:03 eclairamb

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.

eclairamb avatar Jun 08 '21 13:06 eclairamb