Build modalai/px4-firmware
-
I am trying to build px4 for the voxl2 mini.
I have managed to get https://gitlab.com/voxl-public/rb5-flight/rb5-flight-px4-build-docker setup with the hexagon sdk etc. (setup was performed on ubuntu 20.04)
I have pulled https://github.com/modalai/px4-firmware along with all its sub modules (master branch).boards/modalai/voxl2/scripts/clean.sh runs just fine
boards/modalai/voxl2/scripts/build-apps.sh also runs just fine
boards/modalai/voxl2/scripts/build-slpi.sh produces a wall of errorsroot@c23f7d469051:/usr/local/workspace# boards/modalai/voxl2/scripts/build-slpi.sh *** Starting qurt slpi build *** Setting up the Hexagon SDK environment locally HEXAGON_SDK_ROOT is : /home/4.1.0.4 Setting up the QAIC binary for the platform make: Entering directory '/home/4.1.0.4/ipc/fastrpc/qaic' make: 'bin/qaic' is up to date. make: Leaving directory '/home/4.1.0.4/ipc/fastrpc/qaic' Could not find Androd ndk at /home/4.1.0.4/tools/android-ndk-r19c Please refer to /home/4.1.0.4/docs/tools/setup.html for installing the missed components [145/321] Building CXX object src/lib/rc/CMakeFiles/rc.dir/ghst.cpp.o FAILED: src/lib/rc/CMakeFiles/rc.dir/ghst.cpp.o /usr/bin/ccache /home/4.1.0.4/tools/HEXAGON_Tools/8.4.05/Tools/bin/hexagon-clang++ -DCONFIG_ARCH_BOARD_MODALAI_VOXL2_SLPI -D__CUSTOM_FILE_IO__ -D__PX4_POSIX -D__PX4_QURT -D__STDC_FORMAT_MACROS -I../../boards/modalai/voxl2-slpi/src -I../../platforms/qurt/src/px4/common/include -I/home/4.1.0.4/incs -I/home/4.1.0.4/incs/stddef -I/home/4.1.0.4/rtos/qurt/computev66/include/qurt -I/home/4.1.0.4/rtos/qurt/computev66/include/posix -I. -Isrc/lib -I../../platforms/qurt/src/px4/generic/generic/include -I../../platforms/common -I../../platforms/common/include -I../../src -I../../src/include -I../../src/lib -I../../src/lib/matrix -I../../src/modules -I../../platforms/qurt/dspal/include -I../../platforms/qurt/dspal/sys -I../../platforms/qurt/dspal/sys/sys -I../../platforms/posix/include -I../../platforms/qurt/include -Iexternal/Install/include -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -O2 -g -DNDEBUG -D __QURT -D _PROVIDE_POSIX_TIME_DECLS -D _HAS_C9X -D restrict=__restrict__ -D noreturn_function= -D __QURT -D _PROVIDE_POSIX_TIME_DECLS -D _HAS_C9X -D restrict=__restrict__ -D noreturn_function= -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fcolor-diagnostics -fdiagnostics-absolute-paths -Qunused-arguments -Wno-c99-designator -Wno-unknown-warning-option -Wno-unused-const-variable -Wno-varargs -Wreorder -Wno-overloaded-virtual -fno-rtti -fPIC -fmath-errno -Wno-cast-align --include=/usr/local/workspace/platforms/qurt/include/qurt_reqs.h -Wno-unused-result -std=gnu++14 -MD -MT src/lib/rc/CMakeFiles/rc.dir/ghst.cpp.o -MF src/lib/rc/CMakeFiles/rc.dir/ghst.cpp.o.d -o src/lib/rc/CMakeFiles/rc.dir/ghst.cpp.o -c ../../src/lib/rc/ghst.cpp /usr/local/workspace/src/lib/rc/ghst.cpp:95:17: fatal error: variable has incomplete type 'struct termios' struct termios t; ^ /usr/local/workspace/src/lib/rc/ghst.cpp:95:9: note: forward declaration of 'termios' struct termios t; ^ 1 error generated. [146/321] Building CXX object src/lib/rc/CMakeFiles/rc.dir/dsm.cpp.o FAILED: src/lib/rc/CMakeFiles/rc.dir/dsm.cpp.o /usr/bin/ccache /home/4.1.0.4/tools/HEXAGON_Tools/8.4.05/Tools/bin/hexagon-clang++ -DCONFIG_ARCH_BOARD_MODALAI_VOXL2_SLPI -D__CUSTOM_FILE_IO__ -D__PX4_POSIX -D__PX4_QURT -D__STDC_FORMAT_MACROS -I../../boards/modalai/voxl2-slpi/src -I../../platforms/qurt/src/px4/common/include -I/home/4.1.0.4/incs -I/home/4.1.0.4/incs/stddef -I/home/4.1.0.4/rtos/qurt/computev66/include/qurt -I/home/4.1.0.4/rtos/qurt/computev66/include/posix -I. -Isrc/lib -I../../platforms/qurt/src/px4/generic/generic/include -I../../platforms/common -I../../platforms/common/include -I../../src -I../../src/include -I../../src/lib -I../../src/lib/matrix -I../../src/modules -I../../platforms/qurt/dspal/include -I../../platforms/qurt/dspal/sys -I../../platforms/qurt/dspal/sys/sys -I../../platforms/posix/include -I../../platforms/qurt/include -Iexternal/Install/include -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -O2 -g -DNDEBUG -D __QURT -D _PROVIDE_POSIX_TIME_DECLS -D _HAS_C9X -D restrict=__restrict__ -D noreturn_function= -D __QURT -D _PROVIDE_POSIX_TIME_DECLS -D _HAS_C9X -D restrict=__restrict__ -D noreturn_function= -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fcolor-diagnostics -fdiagnostics-absolute-paths -Qunused-arguments -Wno-c99-designator -Wno-unknown-warning-option -Wno-unused-const-variable -Wno-varargs -Wreorder -Wno-overloaded-virtual -fno-rtti -fPIC -fmath-errno -Wno-cast-align --include=/usr/local/workspace/platforms/qurt/include/qurt_reqs.h -Wno-unused-result -std=gnu++14 -MD -MT src/lib/rc/CMakeFiles/rc.dir/dsm.cpp.o -MF src/lib/rc/CMakeFiles/rc.dir/dsm.cpp.o.d -o src/lib/rc/CMakeFiles/rc.dir/dsm.cpp.o -c ../../src/lib/rc/dsm.cpp /usr/local/workspace/src/lib/rc/dsm.cpp:451:18: fatal error: variable has incomplete type 'struct termios' struct termios t; ^ /usr/local/workspace/src/lib/rc/dsm.cpp:451:10: note: forward declaration of 'termios' struct termios t; ^ 1 error generated. [147/321] Building CXX object src/lib/rc/CMakeFiles/rc.dir/crsf.cpp.o FAILED: src/lib/rc/CMakeFiles/rc.dir/crsf.cpp.o /usr/bin/ccache /home/4.1.0.4/tools/HEXAGON_Tools/8.4.05/Tools/bin/hexagon-clang++ -DCONFIG_ARCH_BOARD_MODALAI_VOXL2_SLPI -D__CUSTOM_FILE_IO__ -D__PX4_POSIX -D__PX4_QURT -D__STDC_FORMAT_MACROS -I../../boards/modalai/voxl2-slpi/src -I../../platforms/qurt/src/px4/common/include -I/home/4.1.0.4/incs -I/home/4.1.0.4/incs/stddef -I/home/4.1.0.4/rtos/qurt/computev66/include/qurt -I/home/4.1.0.4/rtos/qurt/computev66/include/posix -I. -Isrc/lib -I../../platforms/qurt/src/px4/generic/generic/include -I../../platforms/common -I../../platforms/common/include -I../../src -I../../src/include -I../../src/lib -I../../src/lib/matrix -I../../src/modules -I../../platforms/qurt/dspal/include -I../../platforms/qurt/dspal/sys -I../../platforms/qurt/dspal/sys/sys -I../../platforms/posix/include -I../../platforms/qurt/include -Iexternal/Install/include -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -O2 -g -DNDEBUG -D __QURT -D _PROVIDE_POSIX_TIME_DECLS -D _HAS_C9X -D restrict=__restrict__ -D noreturn_function= -D __QURT -D _PROVIDE_POSIX_TIME_DECLS -D _HAS_C9X -D restrict=__restrict__ -D noreturn_function= -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fcolor-diagnostics -fdiagnostics-absolute-paths -Qunused-arguments -Wno-c99-designator -Wno-unknown-warning-option -Wno-unused-const-variable -Wno-varargs -Wreorder -Wno-overloaded-virtual -fno-rtti -fPIC -fmath-errno -Wno-cast-align --include=/usr/local/workspace/platforms/qurt/include/qurt_reqs.h -Wno-unused-result -std=gnu++14 -MD -MT src/lib/rc/CMakeFiles/rc.dir/crsf.cpp.o -MF src/lib/rc/CMakeFiles/rc.dir/crsf.cpp.o.d -o src/lib/rc/CMakeFiles/rc.dir/crsf.cpp.o -c ../../src/lib/rc/crsf.cpp /usr/local/workspace/src/lib/rc/crsf.cpp:147:17: fatal error: variable has incomplete type 'struct termios' struct termios t; ^ /usr/local/workspace/src/lib/rc/crsf.cpp:147:9: note: forward declaration of 'termios' struct termios t; ^ 1 error generated. [148/321] Building CXX object src/drivers/rc/crsf_rc/CMakeFiles/drivers__rc__crsf_rc.dir/CrsfRc.cpp.o FAILED: src/drivers/rc/crsf_rc/CMakeFiles/drivers__rc__crsf_rc.dir/CrsfRc.cpp.o /usr/bin/ccache /home/4.1.0.4/tools/HEXAGON_Tools/8.4.05/Tools/bin/hexagon-clang++ -DCONFIG_ARCH_BOARD_MODALAI_VOXL2_SLPI -DMODULE_NAME=\"crsf_rc\" -DPX4_MAIN=crsf_rc_app_main -D__CUSTOM_FILE_IO__ -D__PX4_POSIX -D__PX4_QURT -D__STDC_FORMAT_MACROS -I../../boards/modalai/voxl2-slpi/src -I../../platforms/qurt/src/px4/common/include -I/home/4.1.0.4/incs -I/home/4.1.0.4/incs/stddef -I/home/4.1.0.4/rtos/qurt/computev66/include/qurt -I/home/4.1.0.4/rtos/qurt/computev66/include/posix -I. -Isrc/lib -I../../platforms/qurt/src/px4/generic/generic/include -I../../platforms/common -I../../platforms/common/include -I../../src -I../../src/include -I../../src/lib -I../../src/lib/matrix -I../../src/modules -I../../platforms/qurt/dspal/include -I../../platforms/qurt/dspal/sys -I../../platforms/qurt/dspal/sys/sys -I../../platforms/posix/include -I../../platforms/qurt/include -Iexternal/Install/include -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -O2 -g -DNDEBUG -D __QURT -D _PROVIDE_POSIX_TIME_DECLS -D _HAS_C9X -D restrict=__restrict__ -D noreturn_function= -D __QURT -D _PROVIDE_POSIX_TIME_DECLS -D _HAS_C9X -D restrict=__restrict__ -D noreturn_function= -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fcolor-diagnostics -fdiagnostics-absolute-paths -Qunused-arguments -Wno-c99-designator -Wno-unknown-warning-option -Wno-unused-const-variable -Wno-varargs -Wreorder -Wno-overloaded-virtual -fno-rtti -fPIC -fmath-errno -Wno-cast-align --include=/usr/local/workspace/platforms/qurt/include/qurt_reqs.h -D__KERNEL__ -std=gnu++14 -MD -MT src/drivers/rc/crsf_rc/CMakeFiles/drivers__rc__crsf_rc.dir/CrsfRc.cpp.o -MF src/drivers/rc/crsf_rc/CMakeFiles/drivers__rc__crsf_rc.dir/CrsfRc.cpp.o.d -o src/drivers/rc/crsf_rc/CMakeFiles/drivers__rc__crsf_rc.dir/CrsfRc.cpp.o -c ../../src/drivers/rc/crsf_rc/CrsfRc.cpp /usr/local/workspace/src/drivers/rc/crsf_rc/CrsfRc.cpp:38:10: fatal error: 'poll.h' file not found #include <poll.h> ^~~~~~~~ 1 error generated. [149/321] Building CXX object src/lib/rc/CMakeFiles/rc.dir/sbus.cpp.o FAILED: src/lib/rc/CMakeFiles/rc.dir/sbus.cpp.o /usr/bin/ccache /home/4.1.0.4/tools/HEXAGON_Tools/8.4.05/Tools/bin/hexagon-clang++ -DCONFIG_ARCH_BOARD_MODALAI_VOXL2_SLPI -D__CUSTOM_FILE_IO__ -D__PX4_POSIX -D__PX4_QURT -D__STDC_FORMAT_MACROS -I../../boards/modalai/voxl2-slpi/src -I../../platforms/qurt/src/px4/common/include -I/home/4.1.0.4/incs -I/home/4.1.0.4/incs/stddef -I/home/4.1.0.4/rtos/qurt/computev66/include/qurt -I/home/4.1.0.4/rtos/qurt/computev66/include/posix -I. -Isrc/lib -I../../platforms/qurt/src/px4/generic/generic/include -I../../platforms/common -I../../platforms/common/include -I../../src -I../../src/include -I../../src/lib -I../../src/lib/matrix -I../../src/modules -I../../platforms/qurt/dspal/include -I../../platforms/qurt/dspal/sys -I../../platforms/qurt/dspal/sys/sys -I../../platforms/posix/include -I../../platforms/qurt/include -Iexternal/Install/include -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -O2 -g -DNDEBUG -D __QURT -D _PROVIDE_POSIX_TIME_DECLS -D _HAS_C9X -D restrict=__restrict__ -D noreturn_function= -D __QURT -D _PROVIDE_POSIX_TIME_DECLS -D _HAS_C9X -D restrict=__restrict__ -D noreturn_function= -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fcolor-diagnostics -fdiagnostics-absolute-paths -Qunused-arguments -Wno-c99-designator -Wno-unknown-warning-option -Wno-unused-const-variable -Wno-varargs -Wreorder -Wno-overloaded-virtual -fno-rtti -fPIC -fmath-errno -Wno-cast-align --include=/usr/local/workspace/platforms/qurt/include/qurt_reqs.h -Wno-unused-result -std=gnu++14 -MD -MT src/lib/rc/CMakeFiles/rc.dir/sbus.cpp.o -MF src/lib/rc/CMakeFiles/rc.dir/sbus.cpp.o.d -o src/lib/rc/CMakeFiles/rc.dir/sbus.cpp.o -c ../../src/lib/rc/sbus.cpp /usr/local/workspace/src/lib/rc/sbus.cpp:193:18: fatal error: variable has incomplete type 'struct termios' struct termios t; ^ /usr/local/workspace/src/lib/rc/sbus.cpp:193:10: note: forward declaration of 'termios' struct termios t; ^ 1 error generated. [151/321] Building CXX object src/drivers/gps/CMakeFiles/drivers__gps.dir/gps.cpp.o FAILED: src/drivers/gps/CMakeFiles/drivers__gps.dir/gps.cpp.o /usr/bin/ccache /home/4.1.0.4/tools/HEXAGON_Tools/8.4.05/Tools/bin/hexagon-clang++ -DCONFIG_ARCH_BOARD_MODALAI_VOXL2_SLPI -DMODULE_NAME=\"gps\" -DPX4_MAIN=gps_app_main -D__CUSTOM_FILE_IO__ -D__PX4_POSIX -D__PX4_QURT -D__STDC_FORMAT_MACROS -I../../boards/modalai/voxl2-slpi/src -I../../platforms/qurt/src/px4/common/include -I/home/4.1.0.4/incs -I/home/4.1.0.4/incs/stddef -I/home/4.1.0.4/rtos/qurt/computev66/include/qurt -I/home/4.1.0.4/rtos/qurt/computev66/include/posix -I. -Isrc/lib -I../../platforms/qurt/src/px4/generic/generic/include -I../../platforms/common -I../../platforms/common/include -I../../src -I../../src/include -I../../src/lib -I../../src/lib/matrix -I../../src/modules -I../../platforms/qurt/dspal/include -I../../platforms/qurt/dspal/sys -I../../platforms/qurt/dspal/sys/sys -I../../platforms/posix/include -I../../platforms/qurt/include -Iexternal/Install/include -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -Wno-inconsistent-missing-override -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -mv66 -G0 -O3 -flto -O2 -g -DNDEBUG -D __QURT -D _PROVIDE_POSIX_TIME_DECLS -D _HAS_C9X -D restrict=__restrict__ -D noreturn_function= -D __QURT -D _PROVIDE_POSIX_TIME_DECLS -D _HAS_C9X -D restrict=__restrict__ -D noreturn_function= -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fcolor-diagnostics -fdiagnostics-absolute-paths -Qunused-arguments -Wno-c99-designator -Wno-unknown-warning-option -Wno-unused-const-variable -Wno-varargs -Wreorder -Wno-overloaded-virtual -fno-rtti -fPIC -fmath-errno -Wno-cast-align --include=/usr/local/workspace/platforms/qurt/include/qurt_reqs.h -Wno-stringop-overflow -D__KERNEL__ -std=gnu++14 -MD -MT src/drivers/gps/CMakeFiles/drivers__gps.dir/gps.cpp.o -MF src/drivers/gps/CMakeFiles/drivers__gps.dir/gps.cpp.o.d -o src/drivers/gps/CMakeFiles/drivers__gps.dir/gps.cpp.o -c ../../src/drivers/gps/gps.cpp /usr/local/workspace/src/drivers/gps/gps.cpp:439:4: fatal error: use of undeclared identifier 'clock_settime'; did you mean 'clock_gettime'? px4_clock_settime(CLOCK_REALTIME, &rtc_gps_time); ^~~~~~~~~~~~~~~~~ clock_gettime /usr/local/workspace/platforms/common/include/px4_platform_common/time.h:30:27: note: expanded from macro 'px4_clock_settime' #define px4_clock_settime system_clock_settime ^ /usr/local/workspace/src/include/visibility.h:65:30: note: expanded from macro 'system_clock_settime' #define system_clock_settime clock_settime ^ /home/4.1.0.4/tools/HEXAGON_Tools/8.4.05/Tools/target/hexagon/include/time.h:27:5: note: 'clock_gettime' declared here int clock_gettime(clockid_t clock_id, struct timespec *tp); ^ 1 error generated. [162/321] Building CXX object src/modules/control_allocator/A...tuatorEffectiveness.dir/ActuatorEffectivenessHelicopter.cpp.o ninja: build stopped: subcommand failed. make: *** [Makefile:232: modalai_voxl2-slpi] Error 1 cat: build/modalai_voxl2-slpi_default/src/lib/version/build_git_version.h: No such file or directory *** End of qurt slpi build ***
Im aware there is a warning about the missing android ndk but as its not mentiond in any of the setup instructions im asuming its not necesarry for the build.
Any help with this would be greatly appreciated -
@Matt-Holmes You have to be on the voxl-dev branch