[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mjpeg-users
Subject:    Re: [Mjpeg-users] Manually setting host CPU for mjpegtools
From:       Bernhard Praschinger <shadowlord () utanet ! at>
Date:       2011-02-12 7:06:06
Message-ID: 4D56315E.3040103 () utanet ! at
[Download RAW message or body]

Hallo

>> LRN wrote:
>>> I'm building mjpegtools with mingw32 gcc 4.5.2 and msys.
>>> When i configure it as-is, it detects my cpu as core2 (which is correct)
>>> and compiles with -mcpu=core2 -mtune=core2
>>> It is commendable. However, i would like to compile a version that will
>>> run on any more-or-less contemporary device, which means either
>>> -mtune=i686 or -mtune=generic
>>> I've tried building with --host=i686-pc-mingw32 (that is how mingw32
>>> often identifies itself), but hit the problem with sigjmp_buf being
>>> undefined (googling for it didn't do any good), and generic-pc-mingw32
>>> fails outright, since `generic' is not a correct cpu.
>>> So, in the end i want two things:
>>> 1) -mtune=generic
>>> 2) undefined HAVE_X86_CPU, which will prevent sigjmp_buf-related code
>>> from being compiled
>>
>> Export the compiler options, that should work on Linux boxes:
>> export CFLAGS="-march=core2 -mtune=core2"
>>
>> adding the options to the configure script should also work:
>> ./configure CFLAGS="-mtune=generic -O2
[...]
> That answers the (1). What about (2)? CFLAGS certainly won't affect
> pre-processor definitions.
Sorry, but I have no Idea how to solve the sigjmp_buf problem.

auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: shadowlord@utanet.at
www: http://www.lysator.liu.se/~gz/bernhard

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic