Hello! I’m trying to build firmware with my additional modules. I’m expiremeting with fake_gps example. I deleted it from /src/modules and to build firmware as if it is my module. I followed instrustions written here
Module Template for Full Applications.
I created folder mymodules, src in it. “src” contains CMakeLists.txt, and directory “modules”. List of cmakeklists:
set(config_module_list_external
modules/fake_gps
PARENT_SCOPE
)
In modules/fake_gps there is CMakeLists:
px4_add_module(
MODULE modules__fake_gps
MAIN fake_gps
COMPILE_FLAGS
SRCS
FakeGps.cpp
FakeGps.hpp
DEPENDS
px4_work_queue
EXTERNAL
)
I’m building firmware using next command as written in link:
make px4_fmu-v3 EXTERNAL_MODULES_LOCATION=“./…/mymodules”
However, I’m getting next Error list:
CMake Error at /home/work/Firmware_my/cmake/px4_add_module.cmake:235 (get_target_property):
get_target_property() called with non-existent target "px4_work_queue".
Call Stack (most recent call first):
/home/work/mymodules/src/modules/fake_gps/CMakeLists.txt:34 (px4_add_module)
CMake Error at /home/work/Firmware_my/cmake/px4_add_module.cmake:236 (if):
if given arguments:
"(" "STREQUAL" "STATIC_LIBRARY" ")" "OR" "(" "STREQUAL" "INTERFACE_LIBRARY" ")"
Unknown arguments specified
Call Stack (most recent call first):
/home/work/mymodules/src/modules/fake_gps/CMakeLists.txt:34 (px4_add_module)
If I try to build without depending on “px4_work_queue”, it doesnt give such error. Original CMakeLists.txt file in “/src/examples/fake_gps/” contains that line. So it should work I guess…
Can anyone please help me with that trouble?