Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find gps_helper.cpp source file #9124

Closed
Jai-GAY opened this issue Mar 21, 2018 · 3 comments
Closed

Cannot find gps_helper.cpp source file #9124

Jai-GAY opened this issue Mar 21, 2018 · 3 comments

Comments

@Jai-GAY
Copy link

Jai-GAY commented Mar 21, 2018

make px4fmu-v2_default

Firmware/src/drivers/gps/devices [is an empty folder]

CMake Error at cmake/common/px4_base.cmake:547 (add_library):
Cannot find source file:
devices/src/gps_helper.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
Call Stack (most recent call first):
cmake/common/px4_base.cmake:201 (px4_add_library)
src/drivers/gps/CMakeLists.txt:36 (px4_add_module)
CMake Error: CMake can not determine linker language for target: drivers__gps
-- Generating done

px4_add_module(
MODULE drivers__gps
MAIN gps
STACK_MAIN 1200
SRCS
gps.cpp
devices/src/gps_helper.cpp

make distclean will remove the following files added manually:
devices/src/gps_helper.cpp
devices/src/mtk.cpp
devices/src/ashtech.cpp
devices/src/ubx.cpp

@ndepal
Copy link
Contributor

ndepal commented Mar 21, 2018

Maybe the git submodule initialization during make is not working correctly.
Run make submodulesclean and try again.

What is the output of git status?

@Jai-GAY
Copy link
Author

Jai-GAY commented Mar 22, 2018

thanks, with make submodulesclean before i call make px4fmu-v2_default, the output is different and these files are there (no complaint any more), but now i have new set of problem.
devices/src/gps_helper.cpp
devices/src/mtk.cpp
devices/src/ashtech.cpp
devices/src/ubx.cpp

File "/home/user/px4/github/Firmware/src/lib/mixer/geometries/tools/px_generate_mixers.py", line 155, in thrust_matrix
ax = axis / np.linalg.norm(axis, axis=1)[:, np.newaxis]
TypeError: norm() got an unexpected keyword argument 'axis'
ninja: build stopped: subcommand failed.
make[1]: *** [px4io-v2_default] Error 1

another thing different i notice compared to yesterday built is
-- CONFIG: nuttx_px4fmu-v2_default (Yesterday)
-- CONFIG: nuttx_px4io-v2_default (Today with make submodulesclean)

make_submodulesclean.log

but if i do a make distclean + make submodulesclean then make px4fmu-v2_default i could reproduce the first portion of yesterday built.

make px4fmu-v2_default.pdf

@Jai-GAY
Copy link
Author

Jai-GAY commented Mar 23, 2018

It seems like make distclean and make submodulesclean are "interfering" each other.

distclean after submodulesclean old problem re-surface
submodulesclean after distclean TypeError: norm() got an unexpected keyword argument 'axis'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants