Skip to content

Commit 4fbffd0

Browse files
committed
Add Makefile fixes.
1 parent d3312ff commit 4fbffd0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
CFLAGS = -O3 -D__STDC_CONSTANT_MACROS
2-
LDFLAGS = -lswscale -lavdevice -lavformat -lavcodec -lswresample -lavutil -lpthread -lbz2 -lz -lc -lrt
3-
INSTALLED_DEPS = -Idependencies/include -Ldependencies/lib
2+
LDFLAGS = -lswscale -lavdevice -lavformat -lavcodec -lswresample -lavutil -lpthread -lbz2 -lz -lc -liconv -llzma
3+
INSTALLED_DEPS = -Idependencies/include -Ldependencies/lib -L/usr/local/lib
4+
FRAMEWORKS = -framework CoreMedia -framework AudioToolbox -framework CoreVideo -framework VideoToolbox -framework CoreFoundation
45

56
mpegflow: mpegflow.cpp
6-
g++ $< -o $@ $(CFLAGS) $(LDFLAGS) $(INSTALLED_DEPS)
7+
g++ $< -o $@ $(CFLAGS) $(LDFLAGS) $(INSTALLED_DEPS) $(FRAMEWORKS)
78

89
vis: vis.cpp
910
g++ $< -o $@ $(CFLAGS) -lopencv_highgui -lopencv_videoio -lopencv_imgproc -lopencv_imgcodecs -lopencv_core -lpng $(LDFLAGS) $(INSTALLED_DEPS)

0 commit comments

Comments
 (0)