Toolchain to crosscompile Applications for BBB

喜欢而已 提交于 2019-12-22 15:11:26

问题


My native machine is ubuntu based 14.04 LTS x86_64 system, I want to cross-compile applications and QT programs for Beaglebone black, which is an armv7 based system running on Debian 2015 distribution.

Which toolchain I should install on my native system, to get this done?


回答1:


Here is a very usefull link how to set up the crosscompiler, uboot, kernel and the filesystem for a beaglebone black. If you only want to crosscompiler, then just follow the few code lines in the Crosscompiler chapter https://eewiki.net/display/linuxonarm/BeagleBone+Black




回答2:


To cross-compile applications you need to use the ' arm-linux-gnueabihf ' compiler in the Ubuntu. Ubuntu 14.04 LTS was released with gcc-4.8.2. It is really important that the version of this GCC compiler matches the version deployed on the beaglebone black image. The reason for this is that different compilers have different libc versions, and version mismatching causes linker errors that are very tricky to solve. You can try running,

gcc --version

on both your native Ubuntu system and the Beaglebone Black and see if the gcc version matches. If yes, you are good to go. Otherwise, install the appropriate toolchains.



来源:https://stackoverflow.com/questions/41918210/toolchain-to-crosscompile-applications-for-bbb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!