当前位置:网站首页>[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
边栏推荐
- 关于Lombok的@Data注解
- [untitled]
- Torchvision loads the weight of RESNET except the full connection layer
- [untitled]
- Detectron2 source code reading 3-- encapsulating dataset with mapper
- 将线程绑定在某个具体的CPU逻辑内核上运行
- CUDA realizes matrix multiplication
- 基于Svelte3.x桌面端UI组件库Svelte UI
- Sort (simple description)
- CUDA implements matrix replication
猜你喜欢

从0开始构建一个瀚高数据库Docker镜像
![[untitled]](/img/45/368c41a74bf0738369c58c5963fca0.jpg)
[untitled]

Qt连接神通数据库

Gilbert Strang's course notes on linear algebra - Lesson 3

C#访问MongoDB并执行CRUD操作

Maxiouassigner of mmdet line by line interpretation

2021-04-29

Based on svelte3 X desktop UI component library svelte UI

Rew acoustic test (I): microphone calibration

codeforces每日5题(均1700)-第三天
随机推荐
Circuit analysis of current probe
[untitled]
Rew acoustic test (III): generate test signal
Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which
Viteproject require Syntax Compatibility Problem Solving require is not defined
快应用中实现自定义抽屉组件
Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which
C#訪問SQL Server數據庫兩種方式的比較(SqlDataReader vs SqlDataAdapter)
JVM调优相关命令以及解释
About Lombok's @data annotation
PHP API to obtain QR code and combine to generate pictures
Maxiouassigner of mmdet line by line interpretation
Bind threads to run on a specific CPU logical kernel
Opencv learning notes -day2 (implemented by the color space conversion function cvtcolar(), and imwrite image saving function imwrite())
TiDB 6.0:让 TSO 更高效丨TiDB Book Rush
Is the reverse repurchase of treasury bonds absolutely safe? How to open an account online
Implementing custom drawer component in quick application
Does the oscilloscope probe affect the measurement of capacitive load?
Opencv learning notes -day8 (keyboard typing (waitkey()); Wait for typing) action: triggers some action when the appropriate character is typed using the keyboard)
Summary of common pytoch APIs