openh264 icon indicating copy to clipboard operation
openh264 copied to clipboard

Duplicate symbols in assembly

Open ekr opened this issue 12 years ago • 5 comments

Trying to link the assembly version of the encoder and decoder together gets you:

duplicate symbol _DeblockLumaLt4H_sse2 in: ../../../openh264//libencoder.a(deblocking.o) ../../../openh264//libdecoder.a(deblocking.o) duplicate symbol _DeblockLumaEq4H_sse2 in: ../../../openh264//libencoder.a(deblocking.o) ../../../openh264//libdecoder.a(deblocking.o) duplicate symbol _WelsI4x4LumaPredH_sse2 in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsI16x16LumaPredPlane_sse2 in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsI16x16LumaPredH_sse2 in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsI16x16LumaPredV_sse2 in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsIChromaPredPlane_sse2 in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsI4x4LumaPredDDR_mmx in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsI4x4LumaPredDc_sse2 in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsIChromaPredH_mmx in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsI4x4LumaPredHD_mmx in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsI4x4LumaPredHU_mmx in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsI4x4LumaPredVR_mmx in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsI4x4LumaPredDDL_mmx in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsI4x4LumaPredVL_mmx in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsIChromaPredDc_sse2 in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) duplicate symbol _WelsI16x16LumaPredDc_sse2 in: ../../../openh264//libdecoder.a(intra_pred.o) ../../../openh264//libencoder.a(intra_pred.o) ld: 17 duplicate symbols for architecture x86_64

ekr avatar Jan 05 '14 04:01 ekr

OK, just renaming all the decoder functions seems to solve this problem. I can now do 640x480 at about 110% on my air.

It's probably worth seeing which functions are really redundant and can be removed and which can be renamed.

I can provide a hacky patch to do the rename, but I figure someone from Cisco (volvet?) will probably just want to fix it in a better way. Let me know.

ekr avatar Jan 05 '14 05:01 ekr

The prototype of intra-prediction in decoder & encoder is different. I will rename it and send a pull request to fix it.

licaiguo avatar Jan 06 '14 02:01 licaiguo

Thanks Licai & Ekr. The confliction is in intra-pred and deblocking. the intra-pred in decoder will reconstruct the pixel into the dec-picture, the one in encoder will reconstruct the pixel into mb cache for mode decision. Maybe rename is the fast way to fix it.
the deblocking assembly function is common module, we need to build it into libcommon.a, not encoder or decoder lib, so it should not be conflicted.
Ekr, after Licai push his change, could you try again and let us know the result?

volvet avatar Jan 06 '14 02:01 volvet

Volvet:

Yes, I will be around for another 3 hrs or so, or I can check tomorrow AM.

If you just want to try it experimentally, push it to a private branch and I willl do a pull and check,

ekr avatar Jan 06 '14 02:01 ekr

The issues should be fixed since the conflict symbol have been to move to common.

volvet avatar Jan 14 '14 03:01 volvet