Yes, it does. It generates the nuttx-export.zip. Then I set cmake to:
include_directories:
nuttx-export/include
nuttx-export/include/libcxx
nuttx-export/arch/chip
target_link_libraries:
libs under nuttx-export/libs
And set the compiler and linker flags at nuttx-export/scripts/Make.defs
Nuno
E
Hi Nuno,
So when you run 'make export' the build runs correctly, right?
Best regards,
Flavio
Em qui., 11 de nov. de 2021 às 21:14, Nuno Barcellos
escreveu:
>
> Hey Flavio :)
>
> Yes, I can build and run the helloxx example when it is inside the
> nuttx/apps tree (I've been using sim:libcxxtest
Hey Flavio :)
Yes, I can build and run the helloxx example when it is inside the
nuttx/apps tree (I've been using sim:libcxxtest configuration).
I'm having problems when trying to build it outside the nuttx tree by using
the nuttx-as-library (make export).
I followed the C++ CMake example in the
Hello Nuno,
Before starting working with cmake, it is important that the C++
configuration in nuttx is building and running.
Did you get this part working?
Best regards,
Flavio
Em qui., 11 de nov. de 2021 19:17, Nuno Barcellos
escreveu:
> Hello!
>
> Could anyone get the C++ CMake HelloWorld
Hello!
Could anyone get the C++ CMake HelloWorld example working for the simulator?
I'm using the sim:libcxxtest config but am getting the following error:
nuttx-export/include/libcxx/cstdlib:154:9: error: ‘::at_quick_exit’ has not
been declared
154 | using ::at_quick_exit;
Thanks,
Nuno