Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 交叉编译库--curlpp_Linux_Gcc_G++_Cross Compiling - Fatal编程技术网

Linux 交叉编译库--curlpp

Linux 交叉编译库--curlpp,linux,gcc,g++,cross-compiling,Linux,Gcc,G++,Cross Compiling,我用curlpp编写了一个程序,并在intel机器上成功运行。 现在我想用一个叫做arm-linux-g的arm编译器来编译它++ 我需要做的是使用arm编译器重新编译库curlpp。但奇怪的是,输出中有.a、.la文件,但是.so文件丢失了 我的步骤如下: 1.重新编译卷曲 ./configure --host=arm-linux --prefix=/root/curl/build/target/ make make install 2.重新编译curlpp env CPPFLAGS="-I

我用curlpp编写了一个程序,并在intel机器上成功运行。 现在我想用一个叫做arm-linux-g的arm编译器来编译它++ 我需要做的是使用arm编译器重新编译库curlpp。但奇怪的是,输出中有.a、.la文件,但是.so文件丢失了

我的步骤如下:

1.重新编译卷曲

./configure --host=arm-linux --prefix=/root/curl/build/target/
make
make install
2.重新编译curlpp

env CPPFLAGS="-I/root/curl/build/target/include" LDFLAGS="-
L/root/curl/build/target/lib" ./configure --host=arm-linux --prefix=/root/curlpp/build/target --build=i586
make
make install
3
move/root/curlpp/build/target/,root/curl/build/target/to/root/usr/local/

4。编译我的程序
arm-linux-g++-I/root/usr/local/include-L/root/usr/local/lib abc.cpp-lcurlpp-o abc

编译器抱怨lcurlpp找不到(因为.so文件是 缺失)

请教我如何使用交叉编译器进行编译。 多谢各位