How to build JpegV6 in 64 bit linux
2009-04-30 15:59
141 查看
How to build jpegsrc.v6b on 64-bit Linux machines
jpegsrc is no longer maintained and has not been updated since the Clinton administration. This is odd considering how critical this library is to so many applications.
If you are trying to build on a 64-bit Linux machine you will probably get this error during the ./configure step:
checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
The fix is simple -- just copy '/usr/share/libtool/config.guess' and '/usr/share/libtool/config.sub' to the same directory as the jpeg-6b ./configure script. You can also copy from from /usr/share/automake-1.9/.
cp /usr/share/libtool/config.guess .
cp /usr/share/libtool/config.sub .
./configure --enable-shared --enable-static
One site suggests that you also need tell the jpegsrc build where the 64-bit libdir is located:
make libdir=/usr/lib64
make libdir=/usr/lib64 install
That will change the directory where 'make install' puts the libjpeg library files, but you may not want that if you are installing libjpeg to a custom path (in other words, if you used the --prefix option for configure).
jpegsrc is no longer maintained and has not been updated since the Clinton administration. This is odd considering how critical this library is to so many applications.
If you are trying to build on a 64-bit Linux machine you will probably get this error during the ./configure step:
checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
The fix is simple -- just copy '/usr/share/libtool/config.guess' and '/usr/share/libtool/config.sub' to the same directory as the jpeg-6b ./configure script. You can also copy from from /usr/share/automake-1.9/.
cp /usr/share/libtool/config.guess .
cp /usr/share/libtool/config.sub .
./configure --enable-shared --enable-static
One site suggests that you also need tell the jpegsrc build where the 64-bit libdir is located:
make libdir=/usr/lib64
make libdir=/usr/lib64 install
That will change the directory where 'make install' puts the libjpeg library files, but you may not want that if you are installing libjpeg to a custom path (in other words, if you used the --prefix option for configure).
相关文章推荐
- A matlab bug in 64-bit Linux
- 【ThinkingInC++】64、重载new和delete,来模仿内存的分配
- get system call table in x86-64 Linux
- (OK) run my script at boot time in android-x86_64 (Chih-Wei Huang)
- [转]Invalid character in a Base-64 string
- 安装 Adobe Flash Player 11 64-bit in Ubuntu 11.04/11.10
- GOD like 64 - Apache+PHP+MySQL in win 7 64bits - Apache-64
- Ubuntu 16.04使用NASM编译时用ld链接程序出现:i386 架构于输入文件 sandbox.o 与 i386:x86-64 输出不兼容(I386 architecture in the input file sandbox.o is not compatible with i386: x86-64 output)
- go build 时报错 cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
- PCL-1.8.0 All In One安装配置(win10 64 vs2013)
- check file size without opening file in c++ (windows, 64 bit file size )
- 解决:cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
- duplicate symbol _xxx in:ld: 1 duplicate symbol for architecture x86_64 clang: error: linker command
- CentOS 64位安装Memcached(Memcached installed in CentOS 64-bit systems)
- Subverting Vista UAC in Both 32 and 64 bit Architectures
- GOD like 64 - Apache+PHP+MySQL in win 7 64bits - PHP-64
- Install Google Chrome in Slackware 13.1 x86_64
- building for iOS simulator, but linking in object file built for tvOS, for architecture x86_64
- Nginx RTMP 服务器出现 "RTMP in chunk stream too big: 64 >= 32" 后断开连接的解决方案
- Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bi