Skip to content

Commit

Permalink
Major changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueNalgene committed Aug 20, 2020
1 parent e1ceecf commit 3ae6ea7
Show file tree
Hide file tree
Showing 2 changed files with 699 additions and 438 deletions.
22 changes: 15 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,29 @@

OBJS=frame_extractor.o
BIN=g++ frame_extraction.cpp
# BIN=g++ test.cpp

OBJSTWO=frame_viewer.o
BINTWO=g++ frame_viewer.cpp
# OBJSTWO=frame_viewer.o
# BINTWO=g++ frame_viewer.cpp

BINTHREE=g++ test.cpp
OBJSTHREE=test.o

# CFLAGS+=-Wfatal-errors
# CFLAGS+=-Wall -g -O3
LDFLAGS+=-L/opt/vc/lib/ -lpthread
LDFLAGS+=`pkg-config --cflags --libs opencv`
LDFLAGS+=-L/usr/local/lib/ -lopencv_ximgproc
LDFLAGS+=`pkg-config --cflags --libs opencv4`

RPATH+=-Wl,-rpath=/usr/local/lib/libopencv_ximgproc.so.4.4

INCLUDES+=-I/opt/vc/include/
INCLUDES+=-I/opt/vc/include/interface/vcos/pthreads
INCLUDES+=-I/opt/vc/include/interface/vmcs_host/linux

all:
@rm -f $(OBJS)
$(BIN) $(CFLAGS) $(LDFLAGS) $(INCLUDES) -o $(OBJS)
@rm -f $(OBJSTWO)
$(BINTWO) $(CFLAGS) $(LDFLAGS) $(INCLUDES) -o $(OBJSTWO)
$(BIN) $(CFLAGS) $(LDFLAGS) $(RPATH) $(INCLUDES) -o $(OBJS)
# @rm -f $(OBJSTWO)
# $(BINTWO) $(CFLAGS) $(LDFLAGS) $(INCLUDES) -o $(OBJSTWO)
@rm -f $(OBJSTHREE)
$(BINTHREE) $(CFLAGS) $(LDFLAGS) $(INCLUDES) -o $(OBJSTHREE)
Loading

0 comments on commit 3ae6ea7

Please sign in to comment.