-
Notifications
You must be signed in to change notification settings - Fork 684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lusus/zstdcat #1320
Open
Lusus
wants to merge
2
commits into
meefik:master
Choose a base branch
from
Lusus:lusus/zstdcat
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Lusus/zstdcat #1320
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
|
@@ -101,7 +101,7 @@ | |
<string name="x86_64_debian_arch" translatable="false">amd64</string> | ||
|
||
<!-- Ubuntu --> | ||
<string name="ubuntu_suite" translatable="false">bionic</string> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<string name="ubuntu_suite" translatable="false">jammy</string> | ||
<!-- arm --> | ||
<string name="arm_ubuntu_source_path" translatable="false">http://ports.ubuntu.com/</string> | ||
<string name="arm_ubuntu_arch" translatable="false">armhf</string> | ||
|
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,84 @@ | ||
zstdcat Build Guide | ||
=================== | ||
|
||
Zstandard file compression utility. This is required for newer version of Ubuntu, and not included before Android 12. | ||
|
||
## Build instructions | ||
|
||
In a work directory of your choice... | ||
|
||
### Download/Install Android SDK: | ||
|
||
``` | ||
$ mkdir sdk/ | ||
$ cd sdk/ | ||
$ mkdir cmdline-tools/ | ||
$ cd cmdline-tools/ | ||
``` | ||
|
||
Go to https://developer.android.com/studio/ | ||
Download after agreeing to EULA: `commandlinetools-linux-xxx_latest.zip` into above path. | ||
(In my case it was `commandlinetools-linux-8512546_latest.zip`.) | ||
|
||
``` | ||
$ unzip commandlinetools-linux-8512546_latest.zip | ||
``` | ||
|
||
Now install CMake and the NDK, I used the version below: | ||
|
||
``` | ||
$ cmdline-tools/bin/sdkmanager --install "cmake;3.10.2.4988404" | ||
$ cmdline-tools/bin/sdkmanager --install "ndk;24.0.8215888" | ||
$ cd ../.. | ||
``` | ||
|
||
### Clone and build zstdcat | ||
|
||
Preparation: | ||
|
||
``` | ||
$ git clone https://github.com/facebook/zstd.git | ||
$ cd zstd/build/cmake/ | ||
$ mkdir builddir/ | ||
$ cd builddir/ | ||
$ export ANDROID_SDK=../../../../sdk | ||
``` | ||
|
||
#### Build for armeabi | ||
|
||
``` | ||
$ $ANDROID_SDK/cmake/3.10.2.4988404/bin/cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_SDK/ndk/24.0.8215888/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a .. | ||
$ make -j 8 | ||
``` | ||
|
||
Copy out (and rename) from zstd ``programs/zstd`` to linuxdeploy as ``app/src/main/assets/bin/arm/zstdcat`` | ||
|
||
#### Build for arm64-v8a | ||
|
||
``` | ||
$ rm -rf * | ||
$ $ANDROID_SDK/cmake/3.10.2.4988404/bin/cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_SDK/ndk/24.0.8215888/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a .. | ||
$ make -j 8 | ||
``` | ||
|
||
Copy out (and rename) from zstd ``programs/zstd`` to linuxdeploy as ``app/src/main/assets/bin/arm_64/zstdcat`` | ||
|
||
#### Build for x86 | ||
|
||
``` | ||
$ rm -rf * | ||
$ $ANDROID_SDK/cmake/3.10.2.4988404/bin/cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_SDK/ndk/24.0.8215888/build/cmake/android.toolchain.cmake -DANDROID_ABI=x86 .. | ||
$ make -j 8 | ||
``` | ||
|
||
Copy out (and rename) from zstd ``programs/zstd`` to linuxdeploy as ``app/src/main/assets/bin/x86/zstdcat`` | ||
|
||
#### Build for x86_64 | ||
|
||
``` | ||
$ rm -rf * | ||
$ $ANDROID_SDK/cmake/3.10.2.4988404/bin/cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_SDK/ndk/24.0.8215888/build/cmake/android.toolchain.cmake -DANDROID_ABI=x86_64 .. | ||
$ make -j 8 | ||
``` | ||
|
||
Copy out (and rename) from zstd ``programs/zstd`` to linuxdeploy as ``app/src/main/assets/bin/x86_64/zstdcat`` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.