On 16/12/2009 10:52 AM, Paul Dorman wrote: > Hi all, > > I'm trying to get Fontmatrix built with Podofo support. I can't seem to > get the required JPEG symbols compiled into libpodofo.a: > > pd1...@athlux:/usr/local/lib$ nm libpodofo.a |grep jpeg > 000024bf T _ZN6PoDoFo15jpeg_memory_srcEP22jpeg_decompress_structPKhj > 000023fb t _ZN6PoDoFoL11init_sourceEP22jpeg_decompress_struct > 000024ba t _ZN6PoDoFoL11term_sourceEP22jpeg_decompress_struct > 0000245d t _ZN6PoDoFoL15skip_input_dataEP22jpeg_decompress_structl > 00002400 t _ZN6PoDoFoL17fill_input_bufferEP22jpeg_decompress_struct > U jpeg_CreateDecompress > U jpeg_destroy_decompress > U jpeg_read_header > U jpeg_read_scanlines > U jpeg_resync_to_restart > U jpeg_start_decompress > U jpeg_std_error > 0000154a t _ZN6PoDoFoL13JPegErrorExitEP18jpeg_common_struct > U jpeg_CreateDecompress > U jpeg_destroy_decompress > U jpeg_read_header > U jpeg_start_decompress > U jpeg_std_error > U jpeg_stdio_src
> I am running Ubuntu Karmic Koala with libjpeg62 (6b-14build1). Would > anyone have a workaround for this? You must add -ljpeg to FontMatrix's link command. libpodofo.a is a static library with dependencies on a shared library (libjpeg), but the .a format doesn't provide for a dependency manifest of any sort, so the linker doesn't know libpodofo.a needs libjpeg.so to be linked. You have to tell it so yourself. -- Craig Ringer ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
