|
【技术讨论】
开发板调试阶段的两个问题
发表于 2021-4-12 18:56:02
浏览:6705
|
回复:1
打印
只看该作者
[复制链接]
楼主
购买套餐:RK3399PRO-JD4豪华套餐
问题一:安装维基教程用Firefly_Ubuntu_18.04.5_LTS_DESKTOP_ext4_202012301242_PYTHON3.5-RKNN-OPENCV.img根文件系统镜像编译出来的统一固件不能烧写,
加载固件的时候提示【rootfs分区不够存放镜像】 多次编译大小都是4.93G
问题二:烧写的系统固件是AIO-RK3399PRO-JD4-LVDS-UBUNTU18.04-GPT-20200525-1634.img
#include <iostream>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
using namespace std;
using namespace cv;
int main()
{
Mat testImage = imread("test.jpg");
imshow("testImage",testImage);
waitKey(0);
return 0;
}
编译显示
/tmp/cco0yCku.o: In function `main':
opencv_test.cpp:(.text+0x40): undefined reference to `cv::imread(cv::String const&, int)'
opencv_test.cpp:(.text+0x70): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
opencv_test.cpp:(.text+0x88): undefined reference to `cv::waitKey(int)'
/tmp/cco0yCku.o: In function `cv::String::String(char const*)':
opencv_test.cpp:(.text._ZN2cv6StringC2EPKc[_ZN2cv6StringC5EPKc]+0x40): undefined reference to `cv::String::allocate(unsigned long)'
/tmp/cco0yCku.o: In function `cv::String::~String()':
opencv_test.cpp:(.text._ZN2cv6StringD2Ev[_ZN2cv6StringD5Ev]+0x10): undefined reference to `cv::String::deallocate()'
/tmp/cco0yCku.o: In function `cv::Mat::~Mat()':
opencv_test.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x34): undefined reference to `cv::fastFree(void*)'
/tmp/cco0yCku.o: In function `cv::Mat::release()':
opencv_test.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x58): undefined reference to `cv::Mat::deallocate()'
collect2: error: ld returned 1 exit status
系统中有opencv的相关头文件和库文件,但没有opencv.pc文件,请问需要如何配置是opencv生效
|
|