portapack-mayhem / mayhem-firmware

Custom firmware for the HackRF+PortaPack H1/H2
GNU General Public License v3.0
3.3k stars 540 forks source link

Build Custom Firmware Error #2185

Closed d0ra1mon closed 3 months ago

d0ra1mon commented 3 months ago

What happened?

Hi everyone, I'm trying to make a custom firmware for my portapack, but I get this error when copying the examples that the guide proposes (https://github.com/portapack-mayhem/mayhem-firmware/wiki/Create-a-simple-app):

(.text+0x0): multiple definition of `ui::button_widget'; CMakeFiles/application.elf.dir/ui_navigation.cpp.obj (symbol from plugin):(.text+0x0): first defined here 2024-06-28 12:39:05 collect2: error: ld returned 1 exit status 2024-06-28 12:39:05 firmware/application/CMakeFiles/application.elf.dir/build.make:8552: recipe for target 'firmware/application/application.elf' failed 2024-06-28 12:39:05 make[2]: [firmware/application/application.elf] Error 1 2024-06-28 12:39:05 CMakeFiles/Makefile2:883: recipe for target 'firmware/application/CMakeFiles/application.elf.dir/all' failed 2024-06-28 12:39:05 make[1]: [firmware/application/CMakeFiles/application.elf.dir/all] Error 2 2024-06-28 12:39:05 make: *** [all] Error 2 2024-06-28 12:39:05 Makefile:94: recipe for target 'all' failed

can anyone help me?

Your hardware

No response

Tests