* Bernhard Praschinger on Friday, October 15, 2010 at 19:17:13 +0200
>>> I tested your better version. And it compiles here on my linux and Intel
>>> osx box. I did also a quick test with the new version on the linux box.
>>> And it works well.
>>>
>>> So I would appreciate a feedback if it works on a mac.
>>
>> Thanks for looking into this, but I get:
>>
>> gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../utils -O3 -funroll-all-loops
>> -ffast-math -march=nocona -mtune=nocona -g -O2 -I/sw/include -no-cpp-precomp
>> -D_THREAD_SAFE -Wall -Wunused -MT main.o -MD -MP -MF .deps/main.Tpo -c -o
>> main.o main.c
>> main.c: In function ‘main’:
>> main.c:1339: error: PIC register ‘ebx’ clobbered in ‘asm’
>> make: *** [main.o] Error 1
>>
>> $ sw_vers
>> ProductName: Mac OS X
>> ProductVersion: 10.5.8
>> BuildVersion: 9L30
> I have at home a OSX 10.4.11 (PowerPC) and 10.6.4 (Intel) with gcc 4.2.1
> and it compiles without problems on both computers.
>
> I did a "make clean" in the yuvdenoise directory and it compiled it
> (make) on both machines. So I'm a bit confused.
>
> I need to look if I can install a 10.5.x using a virtual machine.
No! Trent nudged me in the right direction I believe. By applying
the same fix to the other asm volatile line I was able to build
it here as well. This change makes it build, but of course I've
no idea what I was doing:
Index: yuvdenoise/main.c
===================================================================
RCS file: /cvsroot/mjpeg/mjpeg_play/yuvdenoise/main.c,v
retrieving revision 1.71
diff -u -r1.71 main.c
--- yuvdenoise/main.c 14 Oct 2010 16:57:54 -0000 1.71
+++ yuvdenoise/main.c 15 Oct 2010 17:58:13 -0000
@@ -1336,7 +1336,8 @@
mjpeg_info("SETTING SSE2 for standard Temporal-Noise-Filter");
temporal_filter_planes = temporal_filter_planes_sse2;
- __asm__ volatile("cpuid" : "=d"(d) : "a"(0x80000001) : "ebx",
"ecx");
+/* __asm__ volatile("cpuid" : "=d"(d) : "a"(0x80000001) :
"ebx", "ecx");*/
+ __asm__ volatile("movl %%ebx, %1; cpuid; movl %1, %%ebx" :
"=d"(d) : "a"(0x80000001) : "ecx");
if ((d & (1 << 29))) {
/* x86_64 processor */
mjpeg_info("SETTING SSE2 for Median-Filter");
--
\black\trash movie _SAME TIME SAME PLACE_
New York, in the summer of 2001
--->> http://www.blacktrash.org/underdogma/stsp.php
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Mjpeg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users