flipperdevices / flipperzero-ufbt

Compact tool for building and debugging applications for Flipper Zero.
https://pypi.org/project/ufbt/
GNU General Public License v3.0
598 stars 40 forks source link

No such file or directory #33

Closed jpitz31 closed 9 months ago

jpitz31 commented 9 months ago

Navigate to the Applications folder and run ufbt create APPID Run ufbt

get several errors that no such file or directory exist:

/home/binshift/Code/flipperzero-firmware/applications/debug/battery_test_app/views/battery_info.c:4:10: fatal error: assets_icons.h: No such file or directory 4 | #include

I then try to run ufbt with the --file option <location of .h file>

I then get a different error:

cons: warning: Calling missing SConscript without error is deprecated. Transition by adding must_exist=False to SConscript calls. Missing SConscript '/home/binshift/.ufbt/current/scripts/build/f7-firmware-D/assets/compiled/assets_icons.h' File "", line 88, in _run_code scons: `.' is up to date.

More than likely I am not doing something right. but cannot find anything in the several docs I have read online.

Running on firmware 0.98.3

Please point me in the correct direction.

Thanks

hedger commented 9 months ago

assets_icons.h is not a part of Flipper's SDK. Apps making use of it only work when being built from full firmware source tree - and using that header is discouraged for that reason.

Copy the icons you need to your app's sources and specify fap_icon_assets parameter in application.fam.