- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 *~
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page