Hi
I need to build QGC from source using a custom repo/branch for GSP drivers.
You can find out how I do it below, I don’t think it’s the most efficient way to proceed but we’re here to discuss it
I have changed the makefile to set my own repo :
include(CPM)
CPMAddPackage(
NAME px4-gpsdrivers
GITHUB_REPOSITORY Louis-max-H/PX4-GPSDrivers
GIT_TAG pr-base
SOURCE_SUBDIR src
)
It works well, but if I made a change to my branch, it seems I need to delete the build/ directory to refresh the result, and build again the whole project.
Actually, I am editing directly files in
build/cpm_modules/px4-gpsdrivers/ccfdbb49177cbc391dab9c11c763e23d4fb6a4a0/src/
.
And then, build QGC has usual using :
docker run --privileged --rm -v ${PWD}:/project/source -v ${PWD}/build:/project/build qgc-linux-docker
I just need root permission to edit files, and I copy past changes to GPS driver repo when I am done editing my files.
Feel free to share your workflow here