Steven M. Schultz wrote:
> On Tue, 18 Sep 2007, mike wrote:
>
>   
>> i try to compile mjpegtools-1.9.0rc2 on my x86_64 multilib enviroment. 
>>     
>
>       I am not sure if that's enough information (it'd be nice to know
>       the distribution, version of gcc, etc) but I think a workaround
>       for the problem can be produced.
>
>   
>> but i get a strange error from make:
>> configure:     - MMX/3DNow!/SSE enabled      : true
>> configure:   - arch/cpu compiler flags       : -march=pentium-m 
>> -mtune=pentium-m
>>     
>
>       Isn't the "pentium-m" model the portable/notebook variant?  It's
>       been a long time since I've given much attention to the cpu model
>       info bits.
>
>   
>> how can i change the '-march' and 'mtune' option to generic or core2 or 
>> athlon64? CC="gcc -mtune=generic" dosn't work. how can i compile without 
>> this error?
>> has anyone a idea?
>>     
>
>       --with-extra-cflags=flags
>
>       So you specify 
>
>          --with-extra-cflags="-mtune=k8 -mcpu=k8"
>
>       (or whatever value you want to use).
>
>       The values you specify will override the values from cpuinfo.sh
>
>       Cheers,
>       Steven Schultz
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Mjpeg-users mailing list
> Mjpeg-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mjpeg-users
>
>   
hi,

sorry for my spartan informations
i have no distribution. its a linuxfromscratch with gcc4.1.
and my cpu is a INTEL core2 t7600

cpuinfo.sh was a god tip. i modified a little bit.
and now it works, thank you.

my modification on cpuinfo.sh:
...
                        6) iproc=686
                           if test "$pmodel" -ge 15; then      #this is new
                                proc=nocona                            
#this is new
                           elif test "$pmodel" -ge 13; then
                                proc=pentium-m
                           elif test "$pmodel" -ge 7; then
                                proc=pentium3
                           elif test "$pmodel" -ge 3; then
                                proc=pentium2
                           else
                                proc=i686
                           fi
....


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to