You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-24Lines changed: 43 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,40 +43,59 @@ dependencies {
43
43
* Waiting for the initialization. (NDK/cmake install)
44
44
* Done.
45
45
46
-
* Using `Visual Studio Code`: (Simple)
46
+
* Using `Visual Studio Code`: (Requires __[WSL(Recommended)](https://learn.microsoft.com/en-us/windows/wsl/install)__/__[MinGW](https://osdn.net/projects/mingw/)__/__[Cygwin](https://www.cygwin.com/)__ on Windows.)
47
47
* Setup ENV variable `ANDROID_HOME` to your Android SDK installation directory.
48
48
* Open the repo with `Visual Studio Code`
49
49
* Press `⌘ + shift + B` (Mac) or `ctrl + shift + B` (Win/Linux), choose the option `Enable CMake And Build Project With CMake`.
50
50
* Done.
51
51
52
-
* Build `JNI` part with ndk-build: (Not recommended)
53
-
54
-
```shell
55
-
export NDK=path/of/your/ndk
56
-
cd folder/of/jni (android-gpuimage-plus/library/src/main/jni)
52
+
* Build with preset tasks: (Requires __[WSL(Recommended)](https://learn.microsoft.com/en-us/windows/wsl/install)__/__[MinGW](https://osdn.net/projects/mingw/)__/__[Cygwin](https://www.cygwin.com/)__ on Windows.)
57
53
58
-
#This will make all arch: armeabi, armeabi-v7a arm64-v8a, x86, mips
59
-
./buildJNI
60
-
#Or use "sh buildJNI"
54
+
```shell
55
+
# define the environment variable "ANDROID_HOME"
56
+
# If using Windows, define ANDROID_HOME in Windows Environment Settings by yourself.
#If you don't want anything except the image filter,
67
-
#Do as below to build with only cge module
68
-
#No ffmpeg, opencv or faceTracker.
69
-
#And remove the loading part of ffmpeg&facetracker
70
-
$NDK/ndk-build
67
+
# Start Demo By Command
68
+
bash vscode_tasks.sh --run
69
+
```
71
70
72
-
#For Windows user, you should include the `.cmd` extension to `ndk-build` like this:
73
-
cd<your\path\to\this\repo>\library\src\main\jni
74
-
<your\path\to\ndk>\ndk-build.cmd
71
+
* Build `JNI` part with ndk-build: (Not recommended)
75
72
76
-
#Also remember to comment out these line in NativeLibraryLoader
77
-
//System.loadLibrary("ffmpeg");
78
-
//CGEFFmpegNativeLibrary.avRegisterAll();
79
-
```
73
+
```shell
74
+
export NDK=path/of/your/ndk
75
+
cd folder/of/jni (android-gpuimage-plus/library/src/main/jni)
76
+
77
+
#This will make all arch: armeabi, armeabi-v7a arm64-v8a, x86, mips
78
+
./buildJNI
79
+
#Or use "sh buildJNI"
80
+
81
+
#Try this if you failed to run the shell above
82
+
export CGE_USE_VIDEO_MODULE=1
83
+
$NDK/ndk-build
84
+
85
+
#If you don't want anything except the image filter,
86
+
#Do as below to build with only cge module
87
+
#No ffmpeg, opencv or faceTracker.
88
+
#And remove the loading part of ffmpeg&facetracker
89
+
$NDK/ndk-build
90
+
91
+
#For Windows user, you should include the `.cmd` extension to `ndk-build` like this:
92
+
cd<your\path\to\this\repo>\library\src\main\jni
93
+
<your\path\to\ndk>\ndk-build.cmd
94
+
95
+
#Also remember to comment out these line in NativeLibraryLoader
96
+
//System.loadLibrary("ffmpeg");
97
+
//CGEFFmpegNativeLibrary.avRegisterAll();
98
+
```
80
99
81
100
> You can find precompiled libs here: [android-gpuimage-plus-libs](https://github.com/wysaid/android-gpuimage-plus-libs) (The precompiled '.so' files are generated with NDK-r23b)
0 commit comments