Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

how to include opencv for c/c++

DKam0
Beginner
356 Views

I am using SoC EDS command shell in Window 10.

 

I don't know how to include opencv for compiling the c/c++ project

Even, I confuse whether the types of opencv is MingW or Linux or Window.

 

My Makefile is the same as the following

#

TARGET = main

 

#

ALT_DEVICE_FAMILY ?= soc_a10

SOCEDS_ROOT ?= $(SOCEDS_DEST_ROOT)

HWLIBS_ROOT = $(SOCEDS_ROOT)/ip/altera/hps/altera_hps/hwlib

OPENCV_PATH = $(SOCEDS_ROOT)/ip/altera/hps/altera_hps/OpenCV-MinGW-Build-OpenCV-4.1.0-x64

CROSS_COMPILE = arm-linux-gnueabihf-

CFLAGS = -g -Wall -D$(ALT_DEVICE_FAMILY) -I$(HWLIBS_ROOT)/include/$(ALT_DEVICE_FAMILY) -I$(HWLIBS_ROOT)/include/ -I$(OPENCV_PATH)/include/ -L$(OPENCV_PATH)/x64/mingw/lib

LDFLAGS = -g -Wall -L$(OPENCV_PATH)/x64/mingw/lib

 

CC = $(CROSS_COMPILE)g++

ARCH= arm

 

build: $(TARGET)

$(TARGET): main.o

    $(CC) $(LDFLAGS) $^ -o $@

%.o : %.c

    $(CC) $(CFLAGS) -c $< -o $@ -std=c++11

 

.PHONY: clean

clean:

    rm -f $(TARGET) *.a *.o *~

 

0 Kudos
1 Reply
EBERLAZARE_I_Intel
311 Views

Hi,

 

I unsure completely, but the OpenCV is a type of library.

 

Firstly, I recommend that you get used the the SoC EDS eclipse tools, then you may start develop your own;

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug_soc_eds.pdf#page=16

Reply