当前位置:网站首页>[JPEG] how to compile JPEG turbo library files on different platforms
[JPEG] how to compile JPEG turbo library files on different platforms
2022-06-30 08:50:00 【unonoi】
This article introduces how to compile on different platforms jpeg-turbo The library files .
Mac/Linux platform
Mac/Linux Platform compilation jpeg-turbo The library files (libturbojpeg) The process is as follows :
- download jpeg-turbo Source code
Source code github Address :libjpeg-turbo
After downloading, switch the branch to 2.0.5 edition ( Here to 2.0.5 Version example , Other versions need to switch to the corresponding branch ):
git clone https://github.com/libjpeg-turbo/libjpeg-turbo.git
cd libjpeg-turbo
git switch -c 2.0.5
- compile
mkdir build
cd build
cmake .. && make -j8
After compiling , The static and dynamic libraries compiled are in build/ Under the table of contents .
Mac Under the jpeg-turbo The library files :
libturbojpeg.a
libturbojpeg.dylib
Android platform
Android Compiling under the platform jpeg-turbo The process of library file is the same as that of Mac/Linux Broadly similar , The difference is that you need to use ndk Cross compile .
- Download the source code and switch to 2.0.5
- compile
32 Bit compilation :
cmake -DCMAKE_TOOLCHAIN_FILE=/Users/lxq/Library/Android/sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_ARM_NEON=ON -DAPP_PLATFORM=19 ..
make -j8
64 Bit compilation :
cmake -DCMAKE_TOOLCHAIN_FILE=/Users/lxq/Library/Android/sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_ARM_NEON=ON -DAPP_PLATFORM=19 ..
make -j8
边栏推荐
- Redis design and Implementation (III) | interaction between server and client (event IO model)
- C#访问SQL Server数据库两种方式的比较(SqlDataReader vs SqlDataAdapter)
- Introduction to MySQL basics day4 power node [Lao Du] class notes
- [untitled]
- 2021-02-27
- QT connection to Shentong database
- 14岁懂社会-《关于“工作的幸福”这件事儿》读书笔记
- Circuit analysis of current probe
- VIM from dislike to dependence (21) -- cross file search
- Flink sql -- No factory implements ‘org.apache.flink.table.delegation.ExecutorFactory‘.
猜你喜欢
![[nvme2.0b 14-7] set features (Part 1)](/img/0d/c26ae2475ae69291d83b4096ea942b.png)
[nvme2.0b 14-7] set features (Part 1)

How can we get a satisfactory salary? These routines still need to be mastered

Summary of common pytoch APIs

Swagger use

Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which

Pytorch BERT

Gilbert Strang's course notes on linear algebra - Lesson 3
![[data analysis and display]](/img/86/19260ee664769c98588d8b0783ef28.jpg)
[data analysis and display]

2021-05-06

使用华为性能管理服务,按需配置采样率
随机推荐
2021-02-18
QT downloading files through URL
Maxiouassigner of mmdet line by line interpretation
[paid promotion] collection of frequently asked questions, FAQ of recommended list
C accesses mongodb and performs CRUD operations
A troubleshooting of CPU bottom falling
Build a docker image of Henkel database from 0
CUDA realizes matrix multiplication
[untitled]
Is it safe to open an account? How can anyone say that it is not reliable.
Opencv learning notes -day4 image pixel reading and writing operations (array traversal and pointer traversal implementation, uchar vec3b data type and mat class functions mat:: at(), mat:: ptr())
Unsupportedclassversionerror is reported when starting jar package. How to repair it
【NVMe2.0b 14-4】Directive Send/Receive command
Opencv learning notes -day1 (image reading display imread, imshow, namedwindow)
C#訪問SQL Server數據庫兩種方式的比較(SqlDataReader vs SqlDataAdapter)
Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which
Opencv learning notes -day3 (mat object and creation related operations mat:: clone(), mat:: copyto(), mat:: zeros(), mat:: ones(), scalar()...)
Tidb 6.0: making Tso more efficient tidb Book rush
C # get the current timestamp
Interference source current spectrum test of current probe