[英]Building libjepeg-turbo from source doesn't build the library libturbojpeg.so*
I'm trying to build libjpeg-turbo from source to include 12 bit support. 我正在尝试从源代码构建libjpeg-turbo,以包括12位支持。 I downloaded the source code from here (2.0.1) then followed instruction given in Building.md 我从此处 (2.0.1)下载了源代码,然后按照Building.md中给出的说明进行操作
cd libjpeg-turbo-2.0.1
mkdir build && cd build
cmake -G"Unix Makefiles" -D WITH_12BIT=1 -D WITH_TURBOJPEG=1 ..
make -j8
sudo make install
The compilation is successful and generates only libjpeg.so
, libjpeg.so.62
and libjpeg.so.62.3.0
along with bunch of other binary files. 编译成功,仅生成libjpeg.so
, libjpeg.so.62
和libjpeg.so.62.3.0
以及其他一堆二进制文件。 But its not building the lib files libturbojpeg.so.0.2.0
, libturbojpeg.a
and libturbojpeg.so
which i need. 但是它没有建立我需要的lib文件libturbojpeg.so.0.2.0
, libturbojpeg.a
和libturbojpeg.so
。 I'm not sure where I am going wrong. 我不确定我要去哪里。 i have also tried without the -D WITH_TURBOJPEG
flag. 我也尝试过不带-D WITH_TURBOJPEG
标志。
I'm trying this on Ubuntu 16.04 on Nvidia Tx2. 我正在Nvidia Tx2的Ubuntu 16.04上尝试此操作。
Any help is greatly appreciated. 任何帮助是极大的赞赏。
Thanks 谢谢
Line 201 of CMakeLists.txt
turns WITH_TURBOJPEG
off when building with WITH_12BIT
enabled. 在启用WITH_TURBOJPEG
下构建时, CMakeLists.txt
第201行会关闭WITH_12BIT
。
Don't enable WITH_12BIT
and then WITH_TURBOJPEG
will be default enabled and should build those libraries. 不要启用WITH_12BIT
,然后WITH_TURBOJPEG
将被默认启用,并应构建这些库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.