

– The C compiler identification is GNU 6.5.0 – Setting build type to Release, for debug builds use’-DCMAKE_BUILD_TYPE=Debug’. In the section " Build for Raspberry Pi Zero (ARMv6)" and then the instructions for “download toolchain” a second line should be added that reads “mkdir -p $" -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=armv6 -DTFLITE_ENABLE_XNNPACK=OFF …/tensorflow_src/tensorflow/lite Step 3 also needs to be done but not yet. To be more accurate you need to execute step 1 and 2 shown on that referenced page. Please check Build TensorFlow Lite with CMake page for the details." In the PREREQUISITES section it states " You need CMake installed and downloaded TensorFlow source code. cvmfs//lcg/releases/gcc/6.2.0-b9934/x86_64-centos7/bin/g++ -I/home/bellenot/rootdev/test_cmake/SClock -I/home/bellenot/bin/root/v5-34-00-patches/include -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -pthread -Wno-deprecated-declarations -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -pthread -Wno-deprecated-declarations -O2 -g -DNDEBUG -o CMakeFiles/sclock.dir/ instructions for Tensorflow Lite cross compilation for ARM are inaccurate (contain errors/omissions, as far as I can see), as follows: Building CXX object CMakeFiles/sclock.dir/ Make -f CMakeFiles/sclock.dir/build.make CMakeFiles/sclock.dir/build Make: Leaving directory `/home/bellenot/rootdev/test_cmake/SClock/build'

home/bellenot/bin/root/v5-34-00-patches/bin/rootcint -cint -f sclockDict.cxx -c -I/home/bellenot/rootdev/test_cmake/SClock/inc -I/home/bellenot/rootdev/test_cmake/SClock -I/home/bellenot/bin/root/v5-34-00-patches/include TGShapedClock.h /home/bellenot/rootdev/test_cmake/SClock/LinkDef.hĬd /home/bellenot/rootdev/test_cmake/SClock/build & /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/bellenot/rootdev/test_cmake/SClock /home/bellenot/rootdev/test_cmake/SClock /home/bellenot/rootdev/test_cmake/SClock/build /home/bellenot/rootdev/test_cmake/SClock/build /home/bellenot/rootdev/test_cmake/SClock/build/CMakeFiles/sclock.dir/DependInfo.cmake -color= Make -f CMakeFiles/sclock.dir/build.make CMakeFiles/sclock.dir/depend Make: Entering directory `/home/bellenot/rootdev/test_cmake/SClock/build' usr/bin/cmake -E cmake_progress_start /home/bellenot/rootdev/test_cmake/SClock/build/CMakeFiles /home/bellenot/rootdev/test_cmake/SClock/build/CMakeFiles/progress.marks usr/bin/cmake -S/home/bellenot/rootdev/test_cmake/SClock -B/home/bellenot/rootdev/test_cmake/SClock/build -check-build-system CMakeFiles/Makefile.cmake 0 Build files have been written to: build]$ make Compiler Flags: -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -pthread -Wno-deprecated-declarations -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -pthread -Wno-deprecated-declarations -O2 -g -DNDEBUG Performing Test CXX_HAS_Wno_deprecated_declarations - Success Performing Test CXX_HAS_Wno_deprecated_declarations Looking for pthread_create in pthread - found Looking for pthread_create in pthreads - not found Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed Performing Test CMAKE_HAVE_LIBC_PTHREAD Performing Test CXX_HAS_Wno-strict-aliasing - Success Performing Test CXX_HAS_Wno-strict-aliasing Performing Test CXX_HAS_Wno-array-bounds - Success Performing Test CXX_HAS_Wno-array-bounds Check for working CXX compiler: /cvmfs//lcg/releases/gcc/6.2.0-b9934/x86_64-centos7/bin/g++ - works Check for working C compiler: /cvmfs//lcg/releases/gcc/6.2.0-b9934/x86_64-centos7/bin/gcc - works Check for working C compiler: /cvmfs//lcg/releases/gcc/6.2.0-b9934/x86_64-centos7/bin/gcc The CXX compiler identification is GNU 6.2.0 The C compiler identification is GNU 6.2.0 Set(CMAKE_LIBRARY_OUTPUT_DIRECTORY $)Īnd the CMake configure/make result: build]$ cmake -DCMAKE_VERBOSE_MAKEFILE=ON. cosimoNigro/gLike/blob/cmake_build/CMakeLists.txt cmake_minimum_required(VERSION 3.0) I wrote a CMakeLists.txt file to build a project relying on ROOT, you can find it here (the project is in the same git repository). I am experiencing an issue with cmake’s find_package command when using two different ROOT versions.
