Add opencv for mvmedia in makefile

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.6

DRIVE OS 6.0.5

DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System

Linux

QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)

DRIVE AGX Orin Developer Kit (not sure its number)

other

SDK Manager Version

1.9.2.10884

other

Host Machine Version

native Ubuntu Linux 20.04 Host installed with SDK Manager

native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Hi there,

I’m currently aplying with nvmedia samples, but I’m having issues with adding opencv4 library in makefile.
When I tried to add opencv with command:
CXXFLAGS += $(shell pkg-config --cflags opencv)
LDLIBS += $(shell pkg-config --libs opencv)

It shows the cross-compilation errors, skips all the packages saying they are incompatible, and tells me the packages are missing

How can I solve it?

I believe you also created the post on How to correctly add opencv in makefile?. You may want to search online for information on how to build OpenCV applications using CMake.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.