Arm 環境上面libgdiplus的簡單安裝配置


1. 下載libgdiplus的包

wget http://download.mono-project.com/sources/libgdiplus/libgdiplus0-6.0.4.tar.gz

2. 解壓縮執行簡單的configure

tar -zxvf libgdiplus0-6.0.4.tar.gz

cd libgdiplus-6.0.4

./configure --prefix=/usr

執行安裝
make && make install

3. 安裝過程中可能會出錯比如

testjpegcodec.c:24:21: fatal error: jpeglib.h: 沒有那個文件或目錄
compilation terminated.
Makefile:1112: recipe for target 'testjpegcodec.o' failed
make[2]: *** [testjpegcodec.o] Error 1
make[2]: Leaving directory '/libgdi/libgdiplus-6.0.4/tests'
Makefile:483: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/libgdi/libgdiplus-6.0.4'
Makefile:390: recipe for target 'all' failed
make: *** [all] Error 2

以及還有一個 這個時候需要使用一個網站查找是那些deb的包存在這些文件

https://packages.debian.org/search?searchon=contents&keywords=tiffio.h&mode=path&suite=stable&arch=any

效果為:

 

 本次需要安裝的兩個deb包為

apt-get install libjpeg62-dev
apt-get install libtiff-dev

4. 安裝完成之后再次進行安裝. 

5. 可能進行文件鏈接.才能夠使用. 

ln /usr/lib/libgdiplus.so /usr/lib/libgdiplus
ln /usr/lib/libgdiplus.so /usr/lib/libgdiplus.dll

 6. 有時候deb包下載不下來, 可以找一個能用的機器 安裝在

/var/cache/apt/archives

這個目錄里面根據缺少的deb包一個一個的添加來處理

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM