flipperdevices / qFlipper

qFlipper — desktop application for updating Flipper Zero firmware via PC
https://update.flipperzero.one
GNU General Public License v3.0
1.17k stars 156 forks source link

fails to compile with nanopb-0.4.8 #213

Open blshkv opened 9 months ago

blshkv commented 9 months ago

nanopb has change the default location for headers:

-$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
+$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/nanopb>

it also provides *.cmake helpers to find it automatically.

However, qFlipper does not use cmake build system and unable to detect that change. Obviously, it would fail to find it with the following error:

"fatal error: pb.h: No such file or directory"

The solution: add the new path to INCLUDEPATH variable (I guess)