Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Swig for android

1,669 views

Published on

potatotips #24

Published in: Mobile
  • Hello there! Get Your Professional Job-Winning Resume Here! http://bit.ly/topresum
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Swig for android

  1. 1. Hiroshi Hashimoto potatotips #24 2015/12/16
  2. 2. JNI:Java Native Interface JNA:Java Native Access SWIG: Simplified Wrapper and Interface Generator JNR: Java Native Runtime
  3. 3. JNI:Java Native Interface JNA:Java Native Access SWIG: Simplified Wrapper and Interface Generator JNR: Java Native Runtime
  4. 4. SWIG
  5. 5. SWIG
  6. 6. –from Wikipedia SWIG https://ja.wikipedia.org/wiki/SWIG
  7. 7. JNIの構成 JAVA layer(java) JNI(C/C++) Native code(C/C++)
  8. 8. JNI(C/C++) JNIの構成
  9. 9. JNIを作成
  10. 10. JNIを作成
  11. 11. JNIを作成
  12. 12. JNIを作成
  13. 13. SWIG
  14. 14. SWIG
  15. 15. SWIG $ brew install https://raw.github.com/cobrateam/ formulae/master/swig.rb
  16. 16. SWIG
  17. 17. SWIG
  18. 18. SWIG
  19. 19. SWIG $ swig -java -package “パケージ名” “.iファイル” $ swig -java -package jp.hi6484.android.sample.adventcalendarswig jni/sample_advent.i
  20. 20. SWIG sample_advent_wrap.c sample_advent.java sample_adventJNI.java
  21. 21. SWIG sample_advent_wrap.c sample_advent.java sample_adventJNI.java
  22. 22. http://qiita.com/advent-calendar/2015/goodpatch

×