Integration or build instructions for libjpeg-turbo on Android

陌路散爱 提交于 2019-12-06 02:38:17

问题


Various pages can be found on the internet mentioning libjpeg-turbo for Android (example). They all point at the repository here, and say to read ANDROID.txt for build instructions. There's no such text file in the repository though. Is this repository the official place to go to get libjpeg-turbo for Android? If so, where are the build/integration instructions?


回答1:


I ported libjpeg-turbo for use in android a number of months back.

You can find the code here:

http://git.linaro.org/gitweb?p=people/tomgall/libjpeg-turbo/libjpeg-turbo.git;a=shortlog;h=refs/heads/android

Android.txt is there etc. Just moved out the external/jpeg directory and replace with this named exactly the same external/jpeg, it'll build and run fine.

Plan to push this into ASOP fairly soon. (I know cyanogenmod is also considering it currently)




回答2:


My bad, the file's in a branch in that repository.

Also found this info:

https://wiki.linaro.org/BenjaminGaignard/libjpeg-turboAndSkia




回答3:


Use Makefile.am file to see what files you need to compile and write that in your own Android.mk makefile.




回答4:


Just found the following question and answers which seem pretty detailed on answering this. Actually trying it out right now as my use case is to embed this into an application and not recompile Android to use this instead of the built-in libjpeg.



来源:https://stackoverflow.com/questions/9067172/integration-or-build-instructions-for-libjpeg-turbo-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!