Open cederom opened 1 year ago
you can add the search to HOSTCFLAGS here: https://github.com/apache/nuttx/blob/master/arch/sim/src/Makefile#L142-L156 But it's strange that /usr/local/include/ isn't on your default toolchain search path.
Thank you @xiaoxiang781216 that should provide a quickfix :-)
Here on BSD we usually include .include <bsd.prog.mk>
that holds all defaults.. but NuttX uses GNU make so this won't work.. unless I find elegant workaround to use both BSD and GNU make files :-P
Its alive! :-)
% gmake
LD: nuttx
ld: warning: arch_setjmp_x86_64.o: missing .note.GNU-stack section implies executable stack
ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
% ./nuttx
nxwm_main: Initialize the NSH library
createTaskbar: Create CTaskbar instance
createTaskbar: Connect CTaskbar instance to the NX server
createTaskbar: Initialize CTaskbar instance
createStartWindow: Start the start window application
createNxTerm: Creating the NxTerm application
createNxTerm: Adding the NxTerm application to the start window
createHexCalculator: Creating the hex calculator application
createHexCalculator: Adding the hex calculator application to the start window
startWindowManager: Start the window manager
@cederom Congrats! Do we need any patch to NuttX or that is purely host system tuning?
Thanks @pkarashchenko :-)
tools/configure.sh
) that would tune the tools on BSD.-B
switch) but more needs to follow :-Pnxwm
example, that also uses custom includes/libs location for macOS, the same can be done for BSD, or we can simply add this location top level so it is visible to all applications and none of them needs to be updated separately.
Hello world :-)
I have tried to build the
sim:nxwm
example, but got this on FreeBSD:This file exist but in the
/usr/local
include prefix:What would be the best way to add this path to global includes? :-)