flexible-collision-library / fcl

Flexible Collision Library
https://flexible-collision-library.github.io/
Other
1.39k stars 417 forks source link

A simple compilation issue on Apple m1 #524

Open pkfl opened 3 years ago

pkfl commented 3 years ago

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Library/Developer/CommandLineTools/usr/bin/c++ Build flags: Id flags:

The output was: 1 ld: library not found for -lc++ clang: error: linker command failed with exit code 1 (use -v to see invocation)

Performing C++ SOURCE FILE Test _compiler_supports_sse failed with the following output: Change Dir: /tmp/fcl/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_8321f/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_8321f.dir/build.make CMakeFiles/cmTC_8321f.dir/build Building CXX object CMakeFiles/cmTC_8321f.dir/src.cxx.o /Library/Developer/CommandLineTools/usr/bin/c++ -D_compiler_supports_sse -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -mfpmath=sse -msse -msse2 -msse3 -mssse3 -o CMakeFiles/cmTC_8321f.dir/src.cxx.o -c /tmp/fcl/build/CMakeFiles/CMakeTmp/src.cxx clang: warning: argument unused during compilation: '-msse' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-msse2' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-mssse3' [-Wunused-command-line-argument] error: unknown FP unit 'sse' make[1]: [CMakeFiles/cmTC_8321f.dir/src.cxx.o] Error 1 make: [cmTC_8321f/fast] Error 2

Source file was: int main() { return 0; }

scpeters commented 3 years ago

which version of the software are you trying to compile? the homebrew-core formula uses two patches that have been merged to master but have not yet been released (#470, #506). I believe the master branch should compile for you