I m 使用 WSO2 CPP 开发一个在 ARM 处理器上运行的应用程序。 当我在编译时发现错误时, 我正试图在基于 Linux 的 PC 计算机中交叉调试库。 我将 WSO2 配置为 :
export CXXFLAGS="-O2 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -ffast-math -mfloat-abi=softfp"
export CXXFLAGS=${CXXFLAGS}" -I/home/logic/Logic_BSPs/Linux_3.0/1021559_LogicPD_Linux_BSP_2.0-5p1/rootfs/usr/include"
export LDFLAGS=" -L/home/logic/Logic_BSPs/Linux_3.0/1021559_LogicPD_Linux_BSP_2.0-5p1/rootfs/usr/lib"
INSTALL_DIR=/home/logic/Logic_BSPs/Linux_3.0/1021559_LogicPD_Linux_BSP_2.0-5p1/rootfs/usr
CC=/opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc
CXX=/opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++
AR=/opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-ar
RANLIB=/opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-ranlib
./configure --prefix=${INSTALL_DIR}
--build=i686-linux --host=arm-none-linux-gnueabi
--target=arm-none-linux-gnueabi --with-apache2=no
在汇编时,报告的错误是:
/opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../include -I../../../../../src/core/transport -I../../../../../src/core/transport/http -I../../../../../src/core/transport/http/sender/libcurl -I../../../../../src/core/description -I../../../../../src/core/context -I../../../../../src/core/phaseresolver -I../../../../../src/core/engine -I../../../../../src/core/deployment -I../../../../../util/include -I../../../../../axiom/include -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_SVR_MULTI_THREADED -DAXIS2_SSL_ENABLED -MT ssl_stream.lo -MD -MP -MF .deps/ssl_stream.Tpo -c ssl/ssl_stream.c -fPIC -DPIC -o .libs/ssl_stream.o In file included from http_client.c:32: ssl/ssl_stream.h:26:25: error: openssl/ssl.h: No such file or directory make[11]: *** [http_client.lo] Error 1 make[11]: *** Waiting for unfinished jobs.... In file included from ssl/ssl_stream.c:21: ssl/ssl_stream.h:26:25: error: openssl/ssl.h: No such file or directory In file included from ssl/ssl_stream.c:22: ssl/ssl_utils.h:33: error: expected = , , , ; , asm or __attribute__ before * token ssl/ssl_utils.h:40: error: expected = , , , ; , asm or __attribute__ before * token ssl/ssl_utils.h:49: error: expected declaration specifiers or ... before SSL_CTX ssl/ssl_utils.h:50: error: expected declaration specifiers or ... before SSL [...]
看起来有错误的库没有配置 CXXFLAGS 变量:您可以看到,在编译命令中不包括 / home/log/logic/logic。
你能解决这个问题吗?
Thanks and Best Regards, Joaquim Duran