justadudewhohacks / justadudewhohacks/opencv4nodejs
CMake fails to determine the bitness of the target platform
- Dominant language
- C++
- Stars
- 5.1k
- Forks
- 826
- PR merge metrics
- No merged PRs in 30d
Description
When running npm install, the install hits the following line and takes a very long time to find the compiler:
-- The CXX compiler identification is AppleClang 11.0.3.11030032
-- The C compiler identification is AppleClang 11.0.3.11030032
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/
It slowly steps through the next few lines, and eventually fails at CMake. I'm not familiar with C++ dev and was having a difficult time finding documentation for debugging CMake to try and diagnose the issue further. Any help would be appreciated.
# Error Message
```
-- The CXX compiler identification is AppleClang 11.0.3.11030032
-- The C compiler identification is AppleClang 11.0.3.11030032
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:153 (message):
CMake fails to determine the bitness of the target platform.
Please check your CMake and compiler installation. If you are cross-compiling then ensure that your CMake toolchain file correctly sets the compiler details.
-- Configuring incomplete, errors occurred!
See also "/Users/tomdennis/Desktop/open_cv_electron/node_modules/opencv-build/opencv/build/CMakeFiles/CMakeOutput.log".
See also "/Users/tomdennis/Desktop/open_cv_electron/node_modules/opencv-build/opencv/build/CMakeFiles/CMakeError.log".
```
# Auto Build - Full Error Log
[opencvfornodeerror.txt](https://github.com/justadudewhohacks/opencv4nodejs/files/4806633/opencvfornodeerror.txt)
*OpenCV version* (example 3.4.1): Current version
*With OpenCV-contrib?* (extra modules): no
*OS*:Mac Catalina 10.15.5
Contributor guide
Assessment
This issue has not been assessed yet.