LedgerHQ / app-monero

Monero wallet application for Ledger Nano S & X
Apache License 2.0
273 stars 101 forks source link

Ubuntu 16.04 compile: error: use of undeclared identifier 'C_badge_back' #11

Closed plavirudar closed 6 years ago

plavirudar commented 6 years ago

I managed to setup all of the dependencies following the guide http://ledger.readthedocs.io/en/latest/userspace/getting_started.html , however the compile fails with the following errors:

src/monero_ux_nanos.c:295:77: error: use of undeclared identifier 'C_badge_back'
  {NULL,   ui_menu_main_display,   0,                                      &C_badge_back, "Abort",         NULL...
                                                                            ^
src/monero_ux_nanos.c:336:38: error: use of undeclared identifier 'C_badge_back'
  {NULL,   ui_menu_main_display, 0, &C_badge_back, "No",         NULL, 61, 40},
                                     ^
src/monero_ux_nanos.c:353:47: error: use of undeclared identifier 'C_badge_back'
  {NULL,        ui_menu_main_display,     2, &C_badge_back, "Back",         NULL, 61, 40},
                                              ^
src/monero_ux_nanos.c:370:38: error: use of undeclared identifier 'C_badge_back'
  {NULL,  ui_menu_main_display,  3, &C_badge_back, "Back",                     NULL, 61, 40},
                                     ^
src/monero_ux_nanos.c:383:43: error: use of undeclared identifier 'C_icon_dashboard'
  {NULL,              os_sched_exit,  0, &C_icon_dashboard, "Quit app" ,   NULL, 50, 29},

........

4 warnings and 5 errors generated.
/home/pseud/bolos-devenv/nanos-1.4.2/Makefile.rules_generic:51: recipe for target 'obj/monero_ux_nanos.o' failed
make: *** [obj/monero_ux_nanos.o] Error 1

Google did not help and this seemed to be a variable unique to Ledger.

Also, would it be possible to provide a binary build for directly loading into the Ledger?

plavirudar commented 6 years ago

Looks like it's something weird with the Windows Bash Ubuntu, tried it on a bare metal Ubuntu and the compile was successful.