[XviD-users] Building on an IMac Intel

Tate Jones tate at bluedog.com.au
Tue Feb 21 21:42:58 CET 2006


I have added the -DPREFIX to platform.inc.  What are the required  
changes for the makefile?

#  
======================================================================== 
====
# Assembler
#  
======================================================================== 
====

AS=nasm
AFLAGS=-I$(<D)/ -f macho -DPREFIX=_
ASSEMBLY_EXTENSION=asm



On 22/02/2006, at 6:32 AM, Michael Militzer wrote:

> Hi,
>
> there's a macro used in all nasm files to handle the underscore  
> problem.
> If you need all functions to be prefixed by underscores you should  
> call
> nasm with -DPREFIX as additional parameter (and change your makefile
> accordingly).
>
> The 'no symbols' warning seems to be no issue. The timer.c file will
> be empty if you compile in non-profiling mode (which is ok). So  
> should be
> nothing to worry about...
>
> Regards,
> Michael
>
>
> Quoting Tate Jones <tate at bluedog.com.au>:
>
>> Correction.  The nasm files requires attention on OSX
>>
>> On OSX, the assembly name of the function begins with an underscore
>> e.g. _uyvy_to_yv12_xmm for uyvy_to_yv12_xmm.
>>
>> But the assembly names of the assembly functions in xvidcore do not
>> begin with an underscore. This means, to really link afterwards  you
>> have to add that underscore to every coded function in the file.
>>
>> Any suggestions, other than adding _ to all nasm symbols?
>>
>> On 21/02/2006, at 8:15 PM, Tate Jones wrote:
>>
>>> Recently tried to build libxvidcore.a on an IMac Intel.  The 'has no
>>> symbols' message appears, which to my limited knowledge indicates I
>>> cannot import the library elsewhere.    I am trying to build a xvid
>>> quicktime component which relies on this http://n.ethz.ch/student/
>>> naegelic/ .
>>>
>>> Has anyone had any luck with this?
>>>
>>>
>>>    A: quant/x86_asm/quantize_mpeg_mmx.asm
>>>    A: utils/x86_asm/mem_transfer_mmx.asm
>>>    A: utils/x86_asm/mem_transfer_3dne.asm
>>>    A: utils/x86_asm/interlacing_mmx.asm
>>>    A: utils/x86_asm/cpuid.asm
>>>    L: libxvidcore.a
>>> ranlib: file: libxvidcore.a(timer.o) has no symbols
>>> ranlib: file: libxvidcore.a(timer.o) has no symbols
>>>    L: libxvidcore.so.4
>>>
>>> ---------------------------------------------------------------
>>> XviD has been successfully built.
>>>
>>> * Binaries are currently located in the '=build' directory
>>> * To install them on your system, you can run '# make install'
>>>     as root.
>>> ---------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> XviD-users mailing list
>>> XviD-users at xvid.org
>>> http://list.xvid.org/mailman/listinfo/xvid-users
>>
>> _______________________________________________
>> XviD-users mailing list
>> XviD-users at xvid.org
>> http://list.xvid.org/mailman/listinfo/xvid-users
>>
>
>
>
>
> _______________________________________________
> XviD-users mailing list
> XviD-users at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-users



More information about the XviD-users mailing list