Hi everyone,
I tried to compile mjpegtools-1.8.0 and I got a problem with cpuinfo.sh. When configuring, I got :
configure: - arch/cpu compiler
flags : Your does not even
support "i386" for '-march' and -mtune.
At compile time, the flags were used and I got this error :
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../utils Your
does not even support i386 for -march and -mtune. -g -O2 -pthread -Wall
-Wunused -MT build_sub22_mests.lo -MD -MP -MF
.deps/build_sub22_mests.Tpo -c build_sub22_mests.c -fPIC -DPIC -o
.libs/build_sub22_mests.o
gcc: Your: No such file or directory
gcc: does: No such file or directory
gcc: not: No such file or directory
gcc: even: No such file or directory
gcc: support: No such file or directory
gcc: i386: No such file or directory
gcc: for: No such file or directory
gcc: and: No such file or directory
cc1: error: invalid option 'arch'
cc1: error: invalid option 'tune.'
make[3]: *** [build_sub22_mests.lo] Error 1
To correct this, I modified cpuinfo.sh :
RogueProsys:/home/jfl/download# diff mjpegtools-1.8.0/cpuinfo.sh mjpegtools-1.8.0.compiled/cpuinfo.sh
232,233c232,234
< echo "Your $_cc does not even support \"i386\" for '-march' and $_opt_mcpu."
< _mcpu=""
---
> #echo "Your $_cc does not even support \"i386\" for '-march' and $_opt_mcpu."
> echo ""
> _mcpu=""
RogueProsys:/home/jfl/download#
My OS : Linux RogueProsys 2.6.12-1-em64t-p4-smp #1 SMP Wed Sep 28 03:50:13 CEST 2005 x86_64 GNU/Linux
My CPU : Intel(R) Pentium(R) D CPU 2.80GHz
Hope this help,
Jean-François