Thanks a ton David !! I will give a try. BTW, you mentioned that build, host and target options to be in "platform-vendor-os" format. But here, I observed that in "os" it is prefixing gnu. I am not sure what is the rational behind by doing this - may be directfb is open source.
Regards Vidya. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2008 7:09 PM To: Vidyadhara Talya (WT01 - Embedded & Product Engineering); [EMAIL PROTECTED]; davinci-linux-open-source@linux.davincidsp.com Subject: RE: cross-compiling DirectFB and others Vidya, Actually you should set this variable to the root of the target board filesystem that either you're exporting via NFS for development. For example, here's my setting: export CROSS_COMPILE_PREFIX=/onq/davinci/workdir/filesys Where filesys is a copy of the /onq/software/montavista/pro/devkit/arm/v5t_le/target directory as per montavista's instructions. If you're not sure if it will work, you can look inside any *.la file in the target file system under somewhere like <target>/usr/lib At the bottom of the file is an entry telling libtool where it should be looking for the library and if it has that environment variable then you're set. Also, more modern autoconf and automake expect the --build --host --target options to be in the platform-vendor-os format. For montavista, this is: armv5tl-montavista-linuxeabi The only catch is that montavista named all of their cross tools with the arm_v5t_le- prefix which won't be picked up by configure. The easy solution to this is to make symlinks to all the cross tools under /opt/montavista/pro/devkit/arm/v5t_le/bin with the proper prefix. Although you could do this with a find/sed/ln -s combination, I just chose to dump the file names to a script and use textpad's regex functionality to generate the script. I've attached the script to this email... for those reading from a listserv list gmane or nabble, remember to change the extension to .sh because I think they all default to .bin. Remember to run the script in the /opt/montavista/pro/devkit/arm/v5t_le/bin or whereever 'where arm_v5t_le-gcc' points to. Regards, David (See attached file: make_links.sh) DAVID A. KONDRAD Software Design Engineer On-Q/Legrand Telephone (800) 321-2343 x311 www.onqlegrand.com <vidyadhara.talya @wipro.com> To 03/06/2008 10:59 <[EMAIL PROTECTED]>, PM <[EMAIL PROTECTED]>, <[EMAIL PROTECTED] vincidsp.com> cc Subject RE: cross-compiling DirectFB and others Hi David Thanks for the info. You have mentioned to set the CROSS_COMPILE_PREFIX to root. Does this apply for Windows environment too ? Montavista installs Cygwin and actual montavista lies in the directory "/opt/montavista". So should I set CROSS_COMPILE_PREFIX to "/" or "/opt/montavista" ? Regards Vidya. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, March 07, 2008 3:18 AM To: [EMAIL PROTECTED]; davinci-linux-open-source@linux.davincidsp.com Subject: cross-compiling DirectFB and others Greetings, I've bounced this to both DirectFB Dev (which people trying to get it working on davinci should hop over to) and the davinci open source list. With the risk of sounding foolish, I admit that I've spent more and a few hours trying to cross compile DirectFB among other things for the montavista toolchain. Most answers to fix this involve setting all the LDFLAGS and such. I guess I should have read the docs better, because there is a variable referenced in all of the libtool .la files that makes this extremely easy: CROSS_COMPILE_PREFIX If you export this as your root filesystem path, cross compiles work just fine. This includes the frustrating "libtool picks up the wrong libs" issue. Again, this is probably common knowledge, but if I overlooked it then maybe some others did too. Regards, David DAVID A. KONDRAD Software Design Engineer On-Q/Legrand www.onqlegrand.com _______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com _______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source