-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2 downgraded OpenH264 to version 1.0.0, because PJSip 2.4.5 can't co…
…mpile against versions of OpenH264 newer than 1.0.0 at the moment. A patch was necessary to be able to compile it with Android NDK 21 (Lollipop). With the current scripts, OpenH264 1.4.0 compiled also for x86_64 and arm64-v8a, but OpenH264 1.0.0 fails the build with those architectures. At the moment PJSip compiles with OpenH264 support for: armeabi, armeabi-v7a and x86
- Loading branch information
Showing
5 changed files
with
138 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
pjproject-2.4.5 | ||
openssl-1.0.2d | ||
openh264-1.4.0 | ||
openh264-1.0.0 | ||
android-ndk-r10e | ||
android-sdk-linux | ||
pjsip-build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
diff --git a/README.md b/README.md | ||
index 6404d7dd92934cecd6e48f15adf4b90c205d9284..6e441576789ffe457bd1938052d65271459e492f 100644 | ||
--- a/README.md | ||
+++ b/README.md | ||
@@ -67,11 +67,10 @@ Valid **ANDROID_TARGET** can be found in **ANDROID_SDK**/platforms, such as andr | ||
You can also set ARCH, NDKLEVEL, GCCVERSION according to your device and NDK version. | ||
ARCH specifies the architecture of android device. Currently only arm and x86 are supported, the default is arm. | ||
NDKLEVEL specifies android api level, the api level can be 12-19, the default is 12. | ||
-GCCVERSION specifies which gcc in NDK is used, the default is 4.8. | ||
|
||
By default these commands build for the armeabi-v7a ABI. To build for the other android | ||
-ABIs, add "ARCH=mips" or "ARCH=x86". To build for the older armeabi ABI (which has | ||
-armv5te as baseline), add "APP_ABI=armeabi" (ARCH=arm is implicit). | ||
+ABIs, add "ARCH=arm64", "ARCH=x86", "ARCH=x86_64", "ARCH=mips" or "ARCH=mips64". | ||
+To build for the older armeabi ABI (which has armv5te as baseline), add "APP_ABI=armeabi" (ARCH=arm is implicit). | ||
|
||
For iOS Builds | ||
-------------- | ||
diff --git a/build/platform-android.mk b/build/platform-android.mk | ||
index 5ae754a0b0ba7d102f7791d9d28dabe42eb6e7a0..3d76cb1a57ad7cc428ca5e6ccd2d901c09bd5946 100644 | ||
--- a/build/platform-android.mk | ||
+++ b/build/platform-android.mk | ||
@@ -12,13 +12,20 @@ ifeq ($(ARCH), arm) | ||
ifeq (Yes, $(USE_ASM)) | ||
ASMFLAGS += -march=armv7-a -mfpu=neon | ||
endif | ||
+else ifeq ($(ARCH), arm64) | ||
+ APP_ABI = arm64-v8a | ||
else ifeq ($(ARCH), x86) | ||
- APP_ABI = x86 | ||
+ APP_ABI = x86 | ||
ifeq (Yes, $(USE_ASM)) | ||
ASMFLAGS += -f elf32 | ||
endif | ||
+else ifeq ($(ARCH), x86_64) | ||
+ APP_ABI = x86_64 | ||
+ ifeq (Yes, $(USE_ASM)) | ||
+ ASMFLAGS += -f elf64 | ||
+ endif | ||
else | ||
- APP_ABI = $(ARCH) | ||
+ APP_ABI = $(ARCH) | ||
endif | ||
|
||
ifndef NDKROOT | ||
diff --git a/codec/common/inc/crt_util_safe_x.h b/codec/common/inc/crt_util_safe_x.h | ||
index 4d0d18715f139b3eca0a0b0ca43cb24a2582f030..f607c136ff411b1c8b44a487efa0bba322b6fbef 100644 | ||
--- a/codec/common/inc/crt_util_safe_x.h | ||
+++ b/codec/common/inc/crt_util_safe_x.h | ||
@@ -52,7 +52,6 @@ | ||
#include <sys/types.h> | ||
#include <sys/timeb.h> | ||
#else | ||
-#include <sys/timeb.h> | ||
#include <sys/time.h> | ||
#include "typedefs.h" | ||
#endif//_WIN32 | ||
@@ -72,7 +71,10 @@ typedef FILE WelsFileHandle; | ||
#ifdef _WIN32 | ||
typedef struct _timeb SWelsTime; | ||
#else | ||
-typedef struct timeb SWelsTime; | ||
+typedef struct TagWelsTime { | ||
+ time_t time; | ||
+ unsigned short millitm; | ||
+} SWelsTime; | ||
#endif | ||
|
||
int32_t WelsSnprintf (char* buffer, int32_t sizeOfBuffer, const char* format, ...); | ||
diff --git a/codec/common/inc/measure_time.h b/codec/common/inc/measure_time.h | ||
index 86b820a2d04e77702fefd473872acc9038567c5e..c1baa041a94df5808113a8c48caa443b5c187d56 100644 | ||
--- a/codec/common/inc/measure_time.h | ||
+++ b/codec/common/inc/measure_time.h | ||
@@ -47,7 +47,6 @@ | ||
#include <sys/time.h> | ||
#else | ||
#include <windows.h> | ||
-#include <sys/timeb.h> | ||
#endif | ||
#include <time.h> | ||
|
||
diff --git a/codec/common/src/crt_util_safe_x.cpp b/codec/common/src/crt_util_safe_x.cpp | ||
index 4967840a1d4990882395526213c3053c1b3ada55..a6dea9cde774ddc7bc9b033c0d3cbaf46ba46687 100644 | ||
--- a/codec/common/src/crt_util_safe_x.cpp | ||
+++ b/codec/common/src/crt_util_safe_x.cpp | ||
@@ -51,7 +51,6 @@ | ||
#endif //!_MSC_VER | ||
#else | ||
#include <sys/time.h> | ||
-#include <sys/timeb.h> | ||
#endif //_WIN32 | ||
|
||
#include "macros.h" | ||
diff --git a/codec/decoder/plus/src/welsDecoderExt.cpp b/codec/decoder/plus/src/welsDecoderExt.cpp | ||
index 9ebf9c1d695679e53ff01ff75dbccad8e2e417e3..cf78638a66e3e0f881f27b3949f26bd1891450ac 100644 | ||
--- a/codec/decoder/plus/src/welsDecoderExt.cpp | ||
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp | ||
@@ -65,7 +65,6 @@ extern "C" { | ||
#include <stdio.h> | ||
#include <stdarg.h> | ||
#include <sys/types.h> | ||
-#include <sys/timeb.h> | ||
#else | ||
#include <sys/time.h> | ||
#endif | ||
diff --git a/codec/encoder/plus/src/welsEncoderExt.cpp b/codec/encoder/plus/src/welsEncoderExt.cpp | ||
index 26c97af417e27cdbee55e1fa4e7e88a34e5d3393..2278c1ce2d9257eb4c0dec0f66bf7a7ce85893e9 100644 | ||
--- a/codec/encoder/plus/src/welsEncoderExt.cpp | ||
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp | ||
@@ -48,7 +48,6 @@ | ||
#include <stdio.h> | ||
#include <stdarg.h> | ||
#include <sys/types.h> | ||
-#include <sys/timeb.h> | ||
#else | ||
#include <sys/time.h> | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters