Linux下如何编译安装libjpeg Sunday, December 3, 2023 本文共125字 1分钟阅读时长 posts , Linux , 库 杂谈 , libjpeg 订阅 ⚠️本文是作者P3troL1er原创,首发于https://peterliuzhi.top/posts/linux%E4%B8%8B%E5%A6%82%E4%BD%95%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85libjpeg/。商业转载请联系作者获得授权,非商业转载请注明出处! Every great dream begins with a dreamer. Always remember, you have within you the strength, the patience, and the passion to reach for the stars to change the world. — Harriet Tubman sudo apt install dos2unix build-essential # 下载源码 wget http://www.ijg.org/files/jpegsr9d.zip # 解压源码并进入目录 unzip jpegsr9d.zip cd jpeg-9d # 修正编码 dos2unix * tr -d '\015' < libtool > libtool_new mv libtool libtool_saved mv libtool_new libtool # 授予可执行权限 chmod +x libtool chmod +x config* mkdir build # 配置,最后会安装进build目录下 ./configure --enable-shared --enable-static --prefix=$PWD/build # 构建安装 make && make install 点此订阅P3troL1er的博客! 点此复制分享二维码! 点此复制分享信息! 扫码阅读此文章 点击按钮复制分享信息 点击订阅