Thanks for all your replies franco, you really saved the day;
I have another question, this time regarding some of the most nitty-gritty workings on the makefile for this project:
I wanted to try and create my own version of the test_gui2_video
example. I went ahead and moved that CPP file, renamed it to TEST.cpp
, alongside the include
and lib
folders from the ASI SDK folder, and put them all in the same folder (since I'll only be compiling this for the armv7
platform, I moved the object files in the lib/armv7
folder directly into the lib
folder, and removed the other platform options). I also copied over the makefile.
Inside the makefile, I removed all the options for any platform except for armv7
, as that is the only platform I'll be using.
I modified the makefile, now it looks like this:
ver = debug
platform = armv7
CC = g++
OPENCV = -lopencv_core -lopencv_highgui -lopencv_imgproc
LIBSPATH = -L/lib -I/include
ifeq ($(ver), debug)
DEFS = -D_LIN -D_DEBUG
CFLAGS = -g -I $(INCLIB) -L $(LDLIB) $(DEFS) $(COMMON) $(LIBSPATH) -lpthread -DGLIBC_20
else
DEFS = -D_LIN
CFLAGS = -O3 -I $(INCLIB) -L $(LDLIB) $(DEFS) $(COMMON) $(LIBSPATH) -lpthread -DGLIBC_20
endif
CC = arm-linux-gnueabihf-g++
AR= arm-linux-gnueabihf-ar
CFLAGS += -march=armv7 -mcpu=cortex-m3 -mthumb
all: TEST
TEST:TEST.cpp
$(CC) TEST.cpp -o TEST $(CFLAGS) $(OPENCV) -lASICamera2
cp TEST bin/$(platform)/
clean:
rm -f TEST
Running the make
command for the makefile above gives me an error that the file ASICamera2.h
cannot be found, even though it's path is specified at the top by LIBSPATH = -L/lib -I/include
(specifically the include file).
Is there something I'm doing wrong here? I'm not sure why it would not be able to find it, it's directory is explictly listed. Is there perhaps a syntax mistake in the makefile? I have no experience with makefiles at all.
Also, I was wondering, where is the -lASICamera2
reference towards the bottom of the makefile defined? It's not defined anywhere previously in the makefile, or any of the code. How does the makefile know where to look for that, as it wasn't explictly listed in the original makefile for the demo either?