当前位置:网站首页>[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
边栏推荐
- Self made GIF dynamic graph -gifcam
- Torchvision loads the weight of RESNET except the full connection layer
- Understanding society at the age of 14 - reading notes on "happiness at work"
- layer. Open processing method when the passed value is an array or the value is too long
- c#获取当前的时间戳
- 【NVMe2.0b 14-1】Abort、Asynchronous Event Request、Capacity Management command
- Introduction to MySQL basics day4 power node [Lao Du] class notes
- Anchorgenerator for mmdet line by line interpretation
- QT downloading files through URL
- Source code interpretation of detectron2 1--engine
猜你喜欢

Redis design and Implementation (IV) | master-slave replication

Opencv learning notes -day2 (implemented by the color space conversion function cvtcolar(), and imwrite image saving function imwrite())

Pytorch BERT

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

Redis design and Implementation (III) | interaction between server and client (event IO model)

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

Flink Exception -- No ExecutorFactory found to execute the application

Redis design and Implementation (VI) | cluster (sharding)
![[data analysis and display]](/img/86/19260ee664769c98588d8b0783ef28.jpg)
[data analysis and display]

Rew acoustic test (III): generate test signal
随机推荐
Swagger use
启动jar包报错UnsupportedClassVersionError,如何修复
Flink 数据偶尔数据积压导致checkpoint失败
[untitled]
Gilbert Strang's course notes on linear algebra - Lesson 1
php api获取二维码、组合生成图片
El input limit can only input numbers
Axure制作菜单栏效果
Bind threads to run on a specific CPU logical kernel
小心transmittable-thread-local的这个坑
Tidb v6.0.0 (DMR): initial test of cache table - tidb Book rush
Redis design and Implementation (VI) | cluster (sharding)
Summary of common pytoch APIs
Anchorgenerator for mmdet line by line interpretation
【NVMe2.0b 14】NVMe Admin Command Set
Interpretation of source code demand:a rotation equivariant detector for aerial object detection
Unity 基础光照模型
将线程绑定在某个具体的CPU逻辑内核上运行
mysql基础入门 day3 动力节点[老杜]课堂笔记
关于Lombok的@Data注解