teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

15

リンク追加

2021/04/10 16:42

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -25,4 +25,5 @@
25
25
  - [https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c](https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c)
26
26
  - [https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst](https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst)
27
27
  - [https://github.com/krnlyng/fake_libc](https://github.com/krnlyng/fake_libc)
28
- - [https://github.com/anbox/anbox](https://github.com/anbox/anbox)
28
+ - [https://github.com/anbox/anbox](https://github.com/anbox/anbox)
29
+ - [http://dsas.blog.klab.org/archives/52155870.html](http://dsas.blog.klab.org/archives/52155870.html)

14

結論を追記

2021/04/10 16:42

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -1,3 +1,5 @@
1
+ 結論からすると出来ない。
2
+
1
3
  AndroidはC言語ライブラリの実装としてBionic libcを採用しています。
2
4
  これは一般的なLinuxのglibcとは仕様が大きく異なる為動作しないようです。
3
5
 

13

修正

2021/04/07 05:12

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -1,9 +1,13 @@
1
1
  AndroidはC言語ライブラリの実装としてBionic libcを採用しています。
2
2
  これは一般的なLinuxのglibcとは仕様が大きく異なる為動作しないようです。
3
3
 
4
- Hybrisを利用すれば動作するようです。
4
+ 以下代替案です。
5
- (Hybrisの動作確認を取ていませんが…)
5
+ 全て動作確認を取ていません
6
6
 
7
+ - libhybrisを利用する
8
+ - fake_libcを利用する
9
+ - AnboxのLXC内で実行する
10
+ - QEMU等でAndroidOSをエミュレートして実行する
7
11
 
8
12
  参考
9
13
  - [https://stackoverflow.com/questions/31378792](https://stackoverflow.com/questions/31378792)
@@ -19,4 +23,4 @@
19
23
  - [https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c](https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c)
20
24
  - [https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst](https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst)
21
25
  - [https://github.com/krnlyng/fake_libc](https://github.com/krnlyng/fake_libc)
22
- - [https://github.com/anbox/anbox)(https://github.com/anbox/anbox)
26
+ - [https://github.com/anbox/anbox](https://github.com/anbox/anbox)

12

リンク修正

2021/04/06 14:44

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -19,4 +19,4 @@
19
19
  - [https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c](https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c)
20
20
  - [https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst](https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst)
21
21
  - [https://github.com/krnlyng/fake_libc](https://github.com/krnlyng/fake_libc)
22
- - [https://github.com/sfdroid/anbox](https://github.com/sfdroid/anbox)
22
+ - [https://github.com/anbox/anbox)(https://github.com/anbox/anbox)

11

リンク修正

2021/04/06 11:52

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -18,4 +18,5 @@
18
18
  - [http://happyseeker.github.io/android/2016/04/13/about-libhybris.html](http://happyseeker.github.io/android/2016/04/13/about-libhybris.html)
19
19
  - [https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c](https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c)
20
20
  - [https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst](https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst)
21
- - [https://github.com/krnlyng/fake_libc](https://github.com/krnlyng/fake_libc)
21
+ - [https://github.com/krnlyng/fake_libc](https://github.com/krnlyng/fake_libc)
22
+ - [https://github.com/sfdroid/anbox](https://github.com/sfdroid/anbox)

10

リンク修正

2021/04/06 11:51

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -17,4 +17,5 @@
17
17
  - [https://github.com/unverbraucht/bionic-jpeg](https://github.com/unverbraucht/bionic-jpeg)
18
18
  - [http://happyseeker.github.io/android/2016/04/13/about-libhybris.html](http://happyseeker.github.io/android/2016/04/13/about-libhybris.html)
19
19
  - [https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c](https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c)
20
- - [https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst](https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst)
20
+ - [https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst](https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst)
21
+ - [https://github.com/krnlyng/fake_libc](https://github.com/krnlyng/fake_libc)

9

修正

2021/04/06 11:48

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -1,15 +1,10 @@
1
1
  AndroidはC言語ライブラリの実装としてBionic libcを採用しています。
2
2
  これは一般的なLinuxのglibcとは仕様が大きく異なる為動作しないようです。
3
3
 
4
- ~~Hybrisを利用すれば動作するようです。~~
4
+ Hybrisを利用すれば動作するようです。
5
- 確認したところHybris利用し解決するのはBionic libcの環境でglibcのライブラリ等を動かす場合のみでした。
5
+ (Hybrisの動作確認を取れいませんが…)
6
6
 
7
- - HybrisでOKな例.
8
- Android OSでglibc依存のライブラリを利用する。
9
7
 
10
- - HybrisでNGな例.
11
- 一般的なLinuxでBionic libc依存のライブラリを利用する。
12
-
13
8
  参考
14
9
  - [https://stackoverflow.com/questions/31378792](https://stackoverflow.com/questions/31378792)
15
10
  - [https://stackoverflow.com/questions/25727517](https://stackoverflow.com/questions/25727517)

8

修正

2021/04/06 11:12

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -2,7 +2,7 @@
2
2
  これは一般的なLinuxのglibcとは仕様が大きく異なる為動作しないようです。
3
3
 
4
4
  ~~Hybrisを利用すれば動作するようです。~~
5
- 確認したところHybrisを利用して解決するのはBionic libcの環境でglibcのを動かす場合のみでした。
5
+ 確認したところHybrisを利用して解決するのはBionic libcの環境でglibcのライブラリ等を動かす場合のみでした。
6
6
 
7
7
  - HybrisでOKな例.
8
8
  Android OSでglibc依存のライブラリを利用する。

7

修正

2021/04/06 11:08

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -5,7 +5,7 @@
5
5
  確認したところHybrisを利用して解決するのはBionic libcの環境でglibcの物を動かす場合のみでした。
6
6
 
7
7
  - HybrisでOKな例.
8
- Android端末でglibc依存のライブラリを利用する。
8
+ Android OSでglibc依存のライブラリを利用する。
9
9
 
10
10
  - HybrisでNGな例.
11
11
  一般的なLinuxでBionic libc依存のライブラリを利用する。

6

修正

2021/04/06 11:08

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -1,9 +1,15 @@
1
1
  AndroidはC言語ライブラリの実装としてBionic libcを採用しています。
2
2
  これは一般的なLinuxのglibcとは仕様が大きく異なる為動作しないようです。
3
3
 
4
- Hybrisを利用すれば動作するようです。
4
+ ~~Hybrisを利用すれば動作するようです。~~
5
- (Hybrisの動作確認を取れいませんが…)
5
+ 確認したところHybris利用し解決するのはBionic libcの環境でglibcの物を動かす場合のみでした。
6
6
 
7
+ - HybrisでOKな例.
8
+ Android端末でglibc依存のライブラリを利用する。
9
+
10
+ - HybrisでNGな例.
11
+ 一般的なLinuxでBionic libc依存のライブラリを利用する。
12
+
7
13
  参考
8
14
  - [https://stackoverflow.com/questions/31378792](https://stackoverflow.com/questions/31378792)
9
15
  - [https://stackoverflow.com/questions/25727517](https://stackoverflow.com/questions/25727517)

5

リンク修正

2021/04/06 11:07

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -15,4 +15,5 @@
15
15
  - [https://github.com/unverbraucht/libhybris-sample](https://github.com/unverbraucht/libhybris-sample)
16
16
  - [https://github.com/unverbraucht/bionic-jpeg](https://github.com/unverbraucht/bionic-jpeg)
17
17
  - [http://happyseeker.github.io/android/2016/04/13/about-libhybris.html](http://happyseeker.github.io/android/2016/04/13/about-libhybris.html)
18
- - [https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c](https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c)
18
+ - [https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c](https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c)
19
+ - [https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst](https://github.com/wdv4758h/notes/blob/master/operating-system/cases/android/libhybris.rst)

4

リンク修正

2021/04/06 10:23

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -10,4 +10,9 @@
10
10
  - [https://en.wikipedia.org/wiki/Bionic_(software)](https://en.wikipedia.org/wiki/Bionic_(software))
11
11
  - [https://en.wikipedia.org/wiki/Hybris_(software)](https://en.wikipedia.org/wiki/Hybris_(software))
12
12
  - [https://github.com/libhybris/libhybris](https://github.com/libhybris/libhybris)
13
- - [https://blog.csdn.net/jinzhuojun/article/details/41412587](https://blog.csdn.net/jinzhuojun/article/details/41412587)
13
+ - [https://blog.csdn.net/jinzhuojun/article/details/41412587](https://blog.csdn.net/jinzhuojun/article/details/41412587)
14
+ - [https://gsj987.github.io/posts/use-android-library-on-raspberry-pi-with-libhybris/](https://gsj987.github.io/posts/use-android-library-on-raspberry-pi-with-libhybris/)
15
+ - [https://github.com/unverbraucht/libhybris-sample](https://github.com/unverbraucht/libhybris-sample)
16
+ - [https://github.com/unverbraucht/bionic-jpeg](https://github.com/unverbraucht/bionic-jpeg)
17
+ - [http://happyseeker.github.io/android/2016/04/13/about-libhybris.html](http://happyseeker.github.io/android/2016/04/13/about-libhybris.html)
18
+ - [https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c](https://github.com/c55jeremy/libhybris/blob/3a1098d97d4b5314b53b39e961dd43210231ef11/hybris/tests/test_p.c)

3

修正

2021/04/06 09:54

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -9,4 +9,5 @@
9
9
  - [https://stackoverflow.com/questions/25727517](https://stackoverflow.com/questions/25727517)
10
10
  - [https://en.wikipedia.org/wiki/Bionic_(software)](https://en.wikipedia.org/wiki/Bionic_(software))
11
11
  - [https://en.wikipedia.org/wiki/Hybris_(software)](https://en.wikipedia.org/wiki/Hybris_(software))
12
+ - [https://github.com/libhybris/libhybris](https://github.com/libhybris/libhybris)
12
13
  - [https://blog.csdn.net/jinzhuojun/article/details/41412587](https://blog.csdn.net/jinzhuojun/article/details/41412587)

2

情報追加

2021/04/06 09:33

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -8,4 +8,5 @@
8
8
  - [https://stackoverflow.com/questions/31378792](https://stackoverflow.com/questions/31378792)
9
9
  - [https://stackoverflow.com/questions/25727517](https://stackoverflow.com/questions/25727517)
10
10
  - [https://en.wikipedia.org/wiki/Bionic_(software)](https://en.wikipedia.org/wiki/Bionic_(software))
11
- - [https://en.wikipedia.org/wiki/Hybris_(software)](https://en.wikipedia.org/wiki/Hybris_(software))
11
+ - [https://en.wikipedia.org/wiki/Hybris_(software)](https://en.wikipedia.org/wiki/Hybris_(software))
12
+ - [https://blog.csdn.net/jinzhuojun/article/details/41412587](https://blog.csdn.net/jinzhuojun/article/details/41412587)

1

リンク修正

2021/04/06 09:26

投稿

daiki002
daiki002

スコア68

answer CHANGED
@@ -6,6 +6,6 @@
6
6
 
7
7
  参考
8
8
  - [https://stackoverflow.com/questions/31378792](https://stackoverflow.com/questions/31378792)
9
- - [https://en.wikipedia.org/wiki/Bionic_(software)](https://stackoverflow.com/questions/31378792)
10
- - [https://stackoverflow.com/questions/25727517/](https://stackoverflow.com/questions/25727517/)
9
+ - [https://stackoverflow.com/questions/25727517](https://stackoverflow.com/questions/25727517)
10
+ - [https://en.wikipedia.org/wiki/Bionic_(software)](https://en.wikipedia.org/wiki/Bionic_(software))
11
11
  - [https://en.wikipedia.org/wiki/Hybris_(software)](https://en.wikipedia.org/wiki/Hybris_(software))