[XviD-devel] libxvidcore OS4 port (source code changes)

Michael Militzer michael at xvid.org
Tue Jun 9 09:56:00 CEST 2009


Hi,

you're right. The semantics of gcc's -maltivec is different to Apple's
-faltivec. I've tried to change autoconf/Makefile on xvid HEAD to
consider this as you suggested. I have no PPC available to test though...

Regards,
Michael


Quoting Fredrik Wikstrom <fredrik at a500.org>:

> Hi,
>
> Thanks for including my code changes.
>
> I just build the CVS version and it compiled without problems.
>
> I've also had to change the Makefile and platform.inc so that the
> -maltivec -mabi=altivec flags are only used on files with altivec,
> otherwise gcc 4.2.4 generates altivec code by itself in other files
> breaking the build on non-altivec systems. My system has an AMCC 440EP
> CPU, which doesn't have an Altivec unit.
>
> My solution was to remove these flags from SPECIFIC_CFLAGS, create a
> variable ALTIVEC_CFLAGS with them in the platform.inc file and then add
> the following rule to the Makefile:
>
> $(PPC_ALTIVEC_OBJECTS): CFLAGS+= $(ALTIVEC_CFLAGS)
>
> AFAIK this problem should also affect other PPC-based platforms.
>
> Regards,
> Fredrik Wikstrom
>
> Michael Militzer wrote:
>> Hi,
>>
>> thanks for the port. I've committed your patch (with some modifications)
>> to the xvid HEAD branch. So you may want to recheck whether xvid HEAD now
>> properly compiles on AmigaOS 4.
>>
>> Regards,
>> Michael
>>
>>
>> Quoting Fredrik Wikstrom <fredrik at a500.org>:
>>
>>
>>> Hi,
>>>
>>> I have ported the libxvidcore library to AmigaOS 4.
>>>
>>> I've attached diffs of the source code changes I made. Would be nice if
>>> they were included in the official xvidcore sources.
>>>
>>> The diffs are made against the version 1.2.2 release.
>>>
>>> Best Regards,
>>> Fredrik Wikstrom
>>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Xvid-devel mailing list
>> Xvid-devel at xvid.org
>> http://list.xvid.org/mailman/listinfo/xvid-devel
>>
>
> _______________________________________________
> Xvid-devel mailing list
> Xvid-devel at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-devel
>
>





More information about the Xvid-devel mailing list