1 | initial version |
asddddddddddd
2 | No.2 Revision |
asdddddddddddThanks for all your answers, but I am not using CMake.
Here is the makefile I created :
LIBS_ffmpeg = -lm -lz -lpthread -lavformat -lavcodec -lavutil
LIBS_opencv = -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_video -lopencv_objdetect
LIBS_autres = -lpthread -ldl -lm
LIBS = $(LIBS_autres) $(LIBS_ffmpeg) $(LIBS_opencv)
CXXFLAGS = -O2 -g -Wall -fmessage-length=0 -D__STDC_CONSTANT_MACROS OBJS = test.o FluxVideo.o TARGET = test
$(TARGET): $(OBJS) $(CXX) -o $(TARGET) $(OBJS) $(LIBS)
%.o: %.cpp $(CXX) -o $@ -c $< $(CXXFLAGS) $(LIBS)
all: $(TARGET)
clean: rm -f $(OBJS) $(TARGET)