When I try to install dependencies for compiling blender, why do I get the following error:
Unpacking OpenColorIO-1.1.0
-- The C compiler identification is GNU 8.3.0
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- broken
CMake Error at /usr/share/cmake-
3.13/Modules/CMakeTestCXXCompiler.cmake:45 (message):
The C++ compiler
"/usr/bin/c++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/pi/src/blender-deps/OpenColorIO-1.1.0/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_1c38a/fast"
/usr/bin/make -f CMakeFiles/cmTC_1c38a.dir/build.make CMakeFiles/cmTC_1c38a.dir/build
make[1]: Entering directory '/home/pi/src/blender-deps/OpenColorIO-1.1.0/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_1c38a.dir/testCXXCompiler.cxx.o
/usr/bin/c++ -fPIC -m32 -march=i686 -Wno-error=unused-function -Wno-error=deprecated-declarations -o CMakeFiles/cmTC_1c38a.dir/testCXXCompiler.cxx.o -c /home/pi/src/blender-deps/OpenColorIO-1.1.0/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
c++: error: unrecognized -march target: i686
c++: note: valid arguments are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5t armv5e armv5te armv5tej armv6 armv6j armv6k armv6z armv6kz armv6zk armv6t2 armv6-m armv6s-m armv7 armv7-a armv7ve armv7-r armv7-m armv7e-m armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8-m.base armv8-m.main armv8-r iwmmxt iwmmxt2 native
c++: error: missing argument to ‘-march=’
c++: error: unrecognized command line option ‘-m32’; did you mean ‘-mbe32’?
make[1]: *** [CMakeFiles/cmTC_1c38a.dir/build.make:66:
CMakeFiles/cmTC_1c38a.dir/testCXXCompiler.cxx.o] Error 1
make[1]: Leaving directory '/home/pi/src/blender-deps/OpenColorIO-
1.1.0/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_1c38a/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
-- Configuring incomplete, errors occurred!
See also "/home/pi/src/blender-deps/OpenColorIO-
1.1.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/src/blender-deps/OpenColorIO-
1.1.0/build/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.
cp: cannot stat 'ext/dist/lib/libtinyxml.a': No such file or directory
cp: cannot stat 'ext/dist/lib/libyaml-cpp.a': No such file or
directory
make: *** No rule to make target 'clean'. Stop.
I am running this on a Raspberry Pi 4 (4GB) (armv7l - 32 bit) Raspbian Buster