11-16-2017 08:24 PM
Hi guys! I am a newbie in using labview or openCV software and I am just wondering if I can implement an openCV library code into the myrio. I know that labview can implement openCV library via .dll file. However, I want to know if this can also be implemented to myrio. Are there ways to do this? Thanks for your support
11-17-2017 09:03 AM
Hey Jason,
Check out the resources here! I downloaded the manual and it came with a support file that explains how to build the OpenCV Libraries for NI Linux RT which is what is running on the myRIO!
-Bear
01-16-2018 11:19 PM
I followed the instructions, however I am encountering a problem. It says that the g++ compiler is broken and cannot compile a simple test program.
01-18-2018 09:28 AM - edited 01-18-2018 09:30 AM
Did you test out the opencv packages that are available on the feeds and installable through opkg?
To the failure that you're reporting with CMake, I don't know that this wrapper has been tested with the tools that NI provides for cross-compilation, but I would guess that there's some configuration issue with the tools since we're talking about a fairly non-standard build (building on Windows x86_64 binaries meant to run on Linux armv7a softfp). The tools work within the Eclipse toolchain that they are shipped (with a bit of well-documented configuration settings).
Did you read through the CMake cross-compile guide?
03-13-2018 03:48 AM
Hello,
since I had the same issue, here is the solution. Add the following flags in cmake:
CMAKE_C_FLAGS = --sysroot=C:\build\17.0\x64\sysroots\core2-64-nilrt-Linux
CMAKE_CXX_FLAGS = --sysroot=C:\build\17.0\x64\sysroots\core2-64-nilrt-linux
The NI Vision OpenCV Support help file is missing this information.