![]() DOPENCV_EXTRA_MODULES_PATH="././opencv_contrib-3.1.0/modules" \ D FFMPEG_LIB_DIR="/home/mrsy/project/machine-learning-lib/ffmpeg_opencv/install/ffmpeg/lib" \ D FFMPEG_INCLUDE_DIR="/home/mrsy/project/machine-learning-lib/ffmpeg_opencv/install/ffmpeg/include" \ DCMAKE_TOOLCHAIN_FILE="/home/mrsy/project/machine-learning-lib/ffmpeg_opencv/opencv-3.1.0/platforms/linux/" \ Set(CMAKE_EXE_LINKER_FLAGS "-fPIC -fopenmp -mcpu=rtex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mno-unaligned-access -fno-aggressive-loop-optimizations -ffunction-sections -fdata-sections -Wl,-z,nocopyreloc" CACHE STRING "executable linker flags")Ĭmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ Set(CMAKE_MODULE_LINKER_FLAGS "-fPIC -fopenmp -mcpu=rtex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mno-unaligned-access -fno-aggressive-loop-optimizations -ffunction-sections -fdata-sections" CACHE STRING "module linker flags") Set(CMAKE_SHARED_LINKER_FLAGS "-fPIC -fopenmp -mcpu=rtex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mno-unaligned-access -fno-aggressive-loop-optimizations -ffunction-sections -fdata-sections" CACHE STRING "shared linker flags") Set(CMAKE_C_FLAGS "-fPIC -fopenmp -mcpu=rtex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mno-unaligned-access -fno-aggressive-loop-optimizations -ffunction-sections -fdata-sections" CACHE STRING "c flags") Set(CMAKE_CXX_FLAGS "-fPIC -fopenmp -mcpu=rtex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mno-unaligned-access -fno-aggressive-loop-optimizations -ffunction-sections -fdata-sections" CACHE STRING "c flags") Set(CMAKE_SYSTEM_PROCESSOR arm) -> set(CMAKE_SYSTEM_PROCESSOR arm-hisiv500-linux-uclibcgnueabi)įind_program(CMAKE_C_COMPILER NAMES arm-linux-gnueabi$) In opencv directory, platforms / linux, modify Make: *** No rule to make target '/home/mrsy/project/machine-learning-lib/ffmpeg_opencv/install/ffmpeg/lib/libavresample.a', needed by 'bin/opencv_annotation'. Scanning dependencies of target opencv_annotation The command found on the Internet at the beginning did not add this, and an error was reported when compiling opencv, as follows ![]() enable-avresample is needed when compiling opencv. extra-cflags=-Iinclude -extra-ldflags=-Llib -prefix= ![]() configure -disable-shared -enable-static -cross-prefix=arm-hisiv500-linux-arch=arm
0 Comments
Leave a Reply. |