English 中文(简体)
编集图书馆用于武装建筑
原标题:compiling library for arm architecture

I want to know how i can cross compile a library for ARM architecture. Suppose i have libcurl library for Intel architecture and now i want to run the application in ARM architecture using this library. What are the steps i need to perform for this cross compilation. I am using Ubuntu 32-bit machine. I have gone through the basic steps like

./configure --host= ...
make 
make install 

但不能得到完整的想法。 请提供一些有用的链接,或任何人能够解释这些事情。 任何帮助都将受到高度赞赏。

我知道在SO中有一个已经“http://stackoverflow.com/questions/5832734/ Cross-compiling-a-library- from-intel-to-arm”的职位,但没有得到这一澄清。

平台:轴心

问题回答

您需要为您的结构提供工具链,例如arm-1808,因为后者基本上有一个武装结构,东道方的参数将是装甲-非铁。 我为我的建筑使用了以下组合指挥系统,并成功地进行了汇编,我得以在我的武装委员会上管理申请。

<>0>。

如果工具链不是在你的太平洋建筑工程公司,那么你就能够把这个链列起来。

 export PATH=/home/user/CodeSourcery/Sourcery_G++_Lite/bin/:$PATH

<>1>。

./configure --host=arm-none-linux-gnueabi --build=i686-linux CFLAGS= -Os  --with-ssl=/usr/bin/openssl --enable-smtp

<>2>。

make

<>3>。

sudo make install  

<>4>。 现在是你提出申请的时候了。

  arm-none-linux-gnueabi-gcc -o email smtp-multi.c -I/usr/local/include -L/usr/local/lib -lcurl

基本上,你在汇编你的申请时,必须给人民党和自由党旗帜,以便发现你可以分别使用以下指挥系统:

curl-config --cflags  

curl-config --libs

如果以上指挥部门不工作,则:

arm-none-linux-gnueabi-gcc -o email smtp-multi.c -lcurl




相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

热门标签