当前位置:网站首页>Cross compile opencv3.4 download cross compile tool chain and compile (3)
Cross compile opencv3.4 download cross compile tool chain and compile (3)
2022-06-30 07:33:00 【RobotLife】
Environmental Science :
PC System : ubuntu16.04LTS(64 position )
Target development board : itop4412
Download new version support c++11 Cross compiler for :
website :https://releases.linaro.org/components/toolchain/binaries/
https://releases.linaro.org/components/toolchain/binaries/6.1-2016.08/arm-linux-gnueabi/
Cross compiler :gcc-linaro-6.1.1-2016.08-i686_arm-linux-gnueabi.tar.xzDecompression and environment configuration :
edit .bashrc, And add environment variable settings
vi .bashrc
export PATH=$PATH:/usr/local/arm/gcc-linaro-6.1.1-2016.08-i686_arm-linux-gnueabi/binGet into opencv3.4, stay CMakeLists.txt Add... In front of the file :
set(CMAKE_C_COMPILER "arm-linux-gnueabi-gcc")
set(CMAKE_C_COMPILER_AR "arm-linux-gnueabi-ar")
set(CMAKE_CXX_COMPILER "arm-linux-gnueabi-g++")
set(CMAKE_INSTALL_PREFIX "/usr/local/lib/arm/opencv-arm")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")
INCLUDE_DIRECTORIES(/usr/local/lib/arm/zlib/include)
LINK_DIRECTORIES(/usr/local/lib/arm/zlib/lib)
among :zlib Cross compiled and installed in advance .
mkdir build_cross
cd build_cross
cmake …
make -j8
result : The following error occurred :
Although still failed , This time it compiles to 65%, And the error prompt is very clear , It's not far from success .Cancel several function modules , The total CMakeLists.txt The addition is as follows :
set(CMAKE_C_COMPILER "arm-linux-gnueabi-gcc")
set(CMAKE_C_COMPILER_AR "arm-linux-gnueabi-ar")
set(CMAKE_CXX_COMPILER "arm-linux-gnueabi-g++")
set(CMAKE_INSTALL_PREFIX "/usr/local/lib/arm/opencv-arm")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")
INCLUDE_DIRECTORIES(/usr/local/lib/arm/zlib/include)
LINK_DIRECTORIES(/usr/local/lib/arm/zlib/lib)
set(WITH_1394 "OFF")
set(WITH_CUDA "OFF")
set(WITH_GTK "OFF")
- make install, install opencv3.4 Cross compiled libraries and header files .
边栏推荐
- Lt268 the most convenient TFT-LCD serial port screen chip in the whole network
- Thread pool - C language
- Ad usage notes
- 单测调用对象的私有方法
- Implementation of binary search in C language
- LabVIEW program code update is slow
- Raspberry pie 4B Getting Started Guide
- Examen final - notes d'apprentissage PHP 6 - traitement des chaînes
- Spring Festival inventory of Internet giants in 2022
- 期末复习-PHP学习笔记11-PHP-PDO数据库抽象层.
猜你喜欢

Record the problem that the system file cannot be modified as an administrator during the development process

Digital white paper on total cost management in chain operation industry

网络安全-路由原理

Basic knowledge points

记录开发过程中无法使用管理员身份修改系统文件问题

Matter protocol

The most convenient serial port screen chip scheme designed at the charging pile in China

Cubemx completes STM32F103 dual serial port 485 transceiver transmission

Local unloading traffic of 5g application

SwiftUI打造一款美美哒自定义按压反馈按钮
随机推荐
Implementation of double linked list in C language
Account command and account authority
Experiment 1: comprehensive experiment [process on]
Keil plug-in Usage Summary
STM32 infrared communication
网络安全-三层交换技术和内部网络规划
Final review -php learning notes 9-php session control
線程池——C語言
DS1302 digital tube clock
Pool de Threads - langage C
Cmake generate map file
Ad usage notes
网络安全-抓包和IP包头分析
The simulation interface does not declare an exception and throws an exception
Directory of software
Private method of single test calling object
[implemented] server jar package startup script and shell script
QT wmic command obtains some hardware information
1、 Output debugging information: makefile file debugging information $(warning "tests" $(mkfile\u path)); makefile file path
Matter protocol