Skip to content

Commit 1243b4c

Browse files
committed
and install it...
1 parent ba95028 commit 1243b4c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

cross_compile_ffmpeg.sh

+1
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,7 @@ build_librtmfp() {
844844
#export LIBS='-mwindows -lWs2_32 -liphlpapi -lz'
845845
apply_patch file://$patch_dir/rtmfp.static.cross.patch -p1 # works e48efb4f
846846
do_make "$make_prefix_options GPP=${cross_prefix}g++"
847+
do_make_install "prefix=$mingw_w64_x86_64_prefix"
847848
cd ..
848849
}
849850

patches/rtmfp.static.cross.patch

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/Makefile b/Makefile
2-
index d617cfc..0f395c9 100644
2+
index d617cfc..9f9fc0a 100644
33
--- a/Makefile
44
+++ b/Makefile
5-
@@ -23,14 +23,15 @@ OS := $(shell uname -s)
5+
@@ -23,16 +23,17 @@ OS := $(shell uname -s)
66

77
# Variables with default values
88
GPP?=g++
@@ -18,8 +18,11 @@ index d617cfc..0f395c9 100644
1818
-LIBS+=-Wl,-Bdynamic -lcrypto -lssl -lpthread
1919
+LIBS+=-Wl,-Bdynamic -lcrypto -lssl -lpthread -lz
2020

21-
INCDIR=/usr/include/librtmfp/
21+
-INCDIR=/usr/include/librtmfp/
22+
+INCDIR="$(prefix)/include/librtmfp/"
2223

24+
# Variables fixed
25+
ifeq ($(OS),Darwin)
2326
@@ -42,6 +43,11 @@ else
2427
LIBNAME=librtmfp.so
2528
SHARED=-shared

0 commit comments

Comments
 (0)