Jon, Thank you for the inputs - I was only thinking how to fix the libmpeg4.a. for quite some time :) I just added the -lm to LDflags of application and its working now.
Thanks a lot for the response. Best Regards, Deepak Shankar V -----Original Message----- From: Jon Povey [mailto:[email protected]] Sent: Thursday, March 11, 2010 7:35 AM To: Deepak Shankar-ERS,HCLTech. Cc: [email protected] Subject: RE: libmpeg4.a math.h dependency. Deepak Shankar-ERS,HCLTech. wrote: > I tried to update the png library to the v1.4(latest from libpng). > However after updating this when I tried to rebuild the dvsdk the > libmpeg4enc.a is not linking. I did a diff and found that the math.h > related operations are removed from the latest pnglibrary(which Im > not able to reason out - separately). > > Now since the code libraries are dependent on the math.h why is it > include through the libpng shared object instead of directly from > libmpeg4.a > > Is there a way the libmpeg4.a could be locally rebuilt? > ********** > /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../target/usr/lib /libpng. > so: undefined reference to `pow' ************** Rest of dump: > ************** > > /home/avalon/dvsdk_1_30_00_40/dm355_codecs_1_13_000/packages/ti/sdo/code cs/mpeg4 > enc/dm355/lib/libmp4enc.a(mp4venc_rate_cnt.o)(.text+0x30): In > function `MP4VENC_ > TI_DM350_calc_d0': > mp4venc_rate_cnt.c: undefined reference to `floor' Looks like you need to link against the math library libm, is "-lm" in your CFLAGS? If that doesn't help please paste the compiler command line which is failing (you may need to turn on verbose output with a switch, maybe V=1) -- Jon Povey [email protected] Racelogic is a limited company registered in England. Registered number 2743719 . Registered Office Unit 10, Swan Business Centre, Osier Way, Buckingham, Bucks, MK18 1TB . The information contained in this electronic mail transmission is intended by Racelogic Ltd for the use of the named individual or entity to which it is directed and may contain information that is confidential or privileged. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email so that the sender's address records can be corrected. The views expressed by the sender of this communication do not necessarily represent those of Racelogic Ltd. Please note that Racelogic reserves the right to monitor e-mail communications passing through its network DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ----------------------------------------------------------------------------------------------------------------------- _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
