Closed RunningDroid closed 1 year ago
--- a/dfu/device/stm32wb55/infotable.h
+++ b/dfu/device/stm32wb55/infotable.h
@@ -52,6 +52,7 @@ struct FUSDeviceInfoTable
uint32_t reserved2;
uint64_t UID64;
uint16_t deviceID;
+ uint32_t padding_ /* padding for 32 bits build */;
};
struct DeviceInfoTable {
This fixes build for 1.1.3, I didn't try with master.
@RunningDroid Unfortunately, qFlipper was never tested on 32-bit hardware. Please use sgn's patch, test it with your package and file a pull request in case of a satisfactory result. There should be no difference between 1.1.3 and dev branches because there were no changes to those files.
Describe the bug Building with the
-m32
argument in CFLAGS & CXXFLAGS causes the build to throw a struct packing assertionTo Reproduce Steps to reproduce the behavior:
mkdir build && cd build
qmake ../qFlipper.pro 'QMAKE_CFLAGS=-m32' 'QMAKE_CXXFLAGS=-m32'
make qmake_all && make
Expected behavior The build should either fail and say 32-bit builds are unsupported or compile successfully
Actual behavior The build fails with this error:
Additional context I came across this while updating the Void Linux package, so for now I've disabled building the package for i686: https://github.com/void-linux/void-packages/pull/39325