curl-library
Re: Cross-compile libcurl for embedded arm target running freeRtos and LWIP stack
Date: Fri, 25 Aug 2017 11:11:35 +0000 (UTC)
I've tried a simple dumb compilation an linkage to see if I was messing up something in the cpplfags, libs and so on...and noticed that it works.
For this working example I did the following:
C source:
----------------------------------------------------------------------------------------
#include"lwip/netdb.h"
int main()
{char*name="www.google.it";
gethostbyname(name);
return 0;
}
----------------------------------------------------------------------------------------
compiler directives:
----------------------------------------------------------------------------------------
exportPATH=/usr/local/mcuxpressoide-10.0.2_411/ide/tools/bin:$PATH
PATH=/home/user/Documents/MCUXpresso_10.0.2_411/workspace/libProject_prova1/Release:$PATH exportPROJDIR=/home/user/Documents/MCUXpresso_10.0.2_411/workspace/libProject_prova1 exportCPPFLAGS="-DUSE_LWIPSOCK -D__REDLIB__ -DLWIP_DNS=1 -DUSE_RTOS=1 -DCR_INTEGER_PRINTF -DSDK_DEBUGCONSOLE=0 -D__MCUXPRESSO -D__USE_CMSIS -DNDEBUG -DFSL_RTOS_FREE_RTOS -DSDK_OS_FREE_RTOS -DCPU_LPC54608J512ET180 -DCPU_LPC54608J512ET180_cm4 -I${PROJDIR}/lwip/src/include/lwip -I${PROJDIR}/lwip/src/include/lwip/priv -I${PROJDIR}/lwip/src/include/lwip/prot -I${PROJDIR}/lwip/src/include/netif -I${PROJDIR}/lwip/src/include/netif/ppp -I${PROJDIR}/lwip/src/include/netif/ppp/polarssl -I${PROJDIR}/lwip/src/include/posix -I${PROJDIR}/lwip/src/include/posix/sys -I${PROJDIR}/lwip/port -I${PROJDIR}/lwip/port/arch -I${PROJDIR}/lwip/src -I${PROJDIR}/lwip/src/include -I${PROJDIR}/lwip/src/netif -I${PROJDIR} -I${PROJDIR}/drivers -I${PROJDIR}/utilities -I${PROJDIR}/freertos -I${PROJDIR}/CMSIS -I${PROJDIR}/startup"arm-none-eabi-gcc -O0 -fno-common -g3 -Wa
ll-c -fmessage-length=0-fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs main.c ${CPPFLAGS}-L${PROJDIR}/Release-lProject_prova1 -o main
----------------------------------------------------------------------------------------
**copying the entire compiler invocation from the log and run it by hand**Erik Janssen**
What do you mean with this sentence? Is there a way to pass to configure directly the compiler directives?
How can I do this? How can I set/unset all libcurl features doing this way?
I will kindly appreciate any help you may give me.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-08-25