Custom QGC Error "No space left on device"

Hello,

I am following the custom QGC tutorial here.

However I run into this issue on step:

Copy libraries cp -r build-qgroundcontrol-Android_for_armeabi_v7a_Clang_Qt_5_11_0_for_Android_armv72_fd6ff4-Debug/android-build/libs/armeabi-v7a/ QGroundControl/lib/arm/

I get the following issue

sudo cp -r QgroundControl oem/app/QgroundControl
cp: error writing 'oem/app/QgroundControl/lib/arm/libQGroundControl_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libQt5Core_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libQt5AndroidExtras_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libQt5Bluetooth_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libQt5Gui_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libQt5Widgets_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libplugins_platforms_qtforandroid_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libplugins_iconengines_qsvgicon_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libplugins_imageformats_qgif_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libplugins_imageformats_qicns_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libplugins_imageformats_qico_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libplugins_imageformats_qjpeg_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libplugins_imageformats_qsvg_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libplugins_imageformats_qtga_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libplugins_imageformats_qtiff_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libplugins_imageformats_qwbmp_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libplugins_imageformats_qwebp_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libplugins_styles_qandroidstyle_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libQt5Charts_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libQt5Concurrent_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libQt5Network_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libQt5Positioning_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libQt5Qml_armeabi-v7a.so': No space left on device
cp: error writing 'oem/app/QgroundControl/lib/arm/libplugins_qmltooling_qmldbg_debugger_armeabi-v7a.so': No space left on device

Can I expand the .img using qemu? Or will that mess things up. Thank you

It does not matter how large I expand it, it still seems to run out of space.
I expanded it up to 5GB and it is still failing

build the release version, i asume your debug version is over weight

Thank you Michael. Also, is there a reason why CubePilot has not moved to the most recent version of QGC 4.2?

Should we expect any problems from using that version?

our version is custom for joystick,video and mavlink messages. so not currently viable

the oem paritition is 300mb. expanding it to 5gb will do nothing. if you install to the data partition via adb install, then it would work. but the oem is not designed as a debugging target, its meant for release