libPVRTC.a link errors on OSX

I’m trying to link to libPVRTC.a (from PVRTC_REL_2.10@863987.tar) on OS X (10.7.3) using Xcode (Version 4.3.2 (4E2002)). And I’m getting these undefined symbols errors:





Undefined symbols for architecture x86_64:


“_endian_init”, referenced from:


      _new_bitmap in libPVRTC.a(bitmap.o)


      _new_empty_bitmap in libPVRTC.a(bitmap.o)


      _zio_file_open in libPVRTC.a(zio.o)


      _zio_file_open_stdout in libPVRTC.a(zio.o)


      _zio_file_open_stdin in libPVRTC.a(zio.o)


“_endian_convert_u16_le”, referenced from:


      _zio_file_read in libPVRTC.a(zio.o)


      _zio_file_write in libPVRTC.a(zio.o)


“_endian_convert_u16_be”, referenced from:


      _zio_file_read in libPVRTC.a(zio.o)


      _zio_file_write in libPVRTC.a(zio.o)


“_endian_convert_u32_le”, referenced from:


      _zio_file_read in libPVRTC.a(zio.o)


      _zio_file_write in libPVRTC.a(zio.o)


“_endian_convert_u32_be”, referenced from:


      _zio_file_read in libPVRTC.a(zio.o)


      _zio_file_write in libPVRTC.a(zio.o)


ld: symbol(s) not found for architecture x86_64





Does anyone know what I’m doing wrong?





Thanks.

Hi Gary,

This looks like a problem with the way the library has been compiled, I’ll look into it and let you know if there’s a workaround, and when a fix is released.

Thanks,

Tobias



Hi Tobias,





Thank you for getting back to me so quickly. I appreciate your efforts in helping me with this. It’ll be great to get a fix.





Cheers,





- Gary

Hi Gary,

Looks like I’ve found the problem - it was indeed a missing object file, so I’ve fixed that and I’ll push an update to the website asap.

Thanks,

Tobias



Hi Tobias,





That’s good news. Thank you.





Is this where it will be available?


     https://www.imgtec.com/downloadconfirmation.asp?Utility=PVRTC&Title=PVRTC





Also, do you think it will be pushed to the website sometime next week?





Cheers,


-Gary

Hi Gary,

That will be the location - it’ll have a new build number when it’s up so you should be able to recognise it. I’ll also post here when the new version is up - it should be some time this week.

Thanks,

Tobias



Hi Tobias,





It looks like there’s not a new version available this week. I do need this library. I hope you’ll be able to post it up here early next week. Do you think that will be possible? I’d like to know so that I can better set expectations here on my side.





Cheers,





- Gary


It’s there! :slight_smile:


PVRTC_REL_2.10@874981.tar


And it’s working well for me.





Thank you, Tobias.





Cheers,


- Gary

Hi Gary,

I was about to post and let you know, but it seems that you found it already :slight_smile: Let me know if you have any further issues with this.

Thanks,

Tobias