Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run on Momentum Firmware #5

Open
JDominator2010 opened this issue Apr 17, 2024 · 4 comments
Open

Unable to run on Momentum Firmware #5

JDominator2010 opened this issue Apr 17, 2024 · 4 comments

Comments

@JDominator2010
Copy link

Dont know if there is a way to fix these but there is a missing import warning when using this on Momentum firmware.

@pbek
Copy link
Owner

pbek commented Apr 17, 2024

So what's the warning? 😊
And did you try to fix it?

@djericjames
Copy link

Here's what I see when trying to fbt it.

momentum-source/Momentum-Firmware$ ./fbt fap_usb_hid_autofire

momentum-source/Momentum-Firmware/applications/external/mtp/application.fam' : Invalid appid '.f0_mtp'. Must match regex 're.compile('^[a-z0-9_]+$')'
LoadAppManifest, line 136, in file "/path/to/momentum-source/Momentum-Firmware/scripts/fbt_tools/fbt_apps.py"
        CC      applications_user/usb_hid_autofire/usb_hid_autofire.c
In file included from applications_user/usb_hid_autofire/usb_hid_autofire.c:7:
applications_user/usb_hid_autofire/tools.h:5:7: error: redundant redeclaration of 'itoa' [-Werror=redundant-decls]
    5 | char *itoa(int number, char *arr, int base);
      |       ^~~~
In file included from furi/furi.h:3,
                 from applications_user/usb_hid_autofire/usb_hid_autofire.c:2:
/path/to/momentum-source/Momentum-Firmware/toolchain/x86_64-linux/arm-none-eabi/include/stdlib.h:227:9: note: previous declaration of 'itoa' with type 'char *(int,  char *, int)'
  227 | char *  itoa (int, char *, int);
      |         ^~~~
cc1: all warnings being treated as errors
        PROTO   assets/protobuf/application.proto
scons: *** [build/f7-firmware-C/.extapps/usb_hid_autofire/usb_hid_autofire.o] Error 1

********** FBT ERRORS **********
build/f7-firmware-C/.extapps/usb_hid_autofire/usb_hid_autofire.o: Error 1
momentum-source/Momentum-Firmware$ 

Tested on momentum-source commit: c204ba944d4f985ffb2de9acd62c9d650ab0b3d2 from here: https://github.com/Next-Flip/Momentum-Firmware

What more information can I provide to help in debugging this issue?
(Ubuntu 24.04 is my OS, if that is helpful.)

@pbek
Copy link
Owner

pbek commented Oct 13, 2024

I have no experience with that firmware. ️🤷🏻

@pbek
Copy link
Owner

pbek commented Oct 13, 2024

I had to add itoa for #1, it's basically that commit: e7d19b5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants