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

[SOLVED] Unable to run demo example #182

Open
C47D opened this issue Nov 21, 2024 · 1 comment
Open

[SOLVED] Unable to run demo example #182

C47D opened this issue Nov 21, 2024 · 1 comment

Comments

@C47D
Copy link
Collaborator

C47D commented Nov 21, 2024

Hi,

First time trying to get the demo example running, I followed the README instructions (also copied lv_conf.h and lv_drivers_conf.h to this repo root dir) but ended up with this error (similar to #152). There seems to be an empty -D after DLV_CONF_INCLUDE_SIMPLE:

$ DEP_LV_CONFIG_PATH=`pwd` cargo run --example demo --features="alloc"
   Compiling lvgl-sys v0.6.2 (/home/d3bug/Desktop/lv_binding_rust/lvgl-sys)
The following warnings were emitted during compilation:

warning: [email protected]: <command-line>: error: no macro name given in #define directive

error: failed to run custom build command for `lvgl-sys v0.6.2 (/home/d3bug/Desktop/lv_binding_rust/lvgl-sys)`

Caused by:
  process didn't exit successfully: `/home/d3bug/Desktop/lv_binding_rust/target/debug/build/lvgl-sys-3e9d9eb4b2672d68/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=/home/d3bug/Desktop/lv_binding_rust/fonts
  cargo:rerun-if-changed=/home/d3bug/Desktop/lv_binding_rust/examples/include/lv_conf.h
  cargo:rerun-if-changed=/home/d3bug/Desktop/lv_binding_rust/examples/include/lv_drv_conf.h
  cargo:rerun-if-env-changed=LVGL_INCLUDE
  cargo:rerun-if-env-changed=LVGL_LINK
  OUT_DIR = Some(/home/d3bug/Desktop/lv_binding_rust/target/debug/build/lvgl-sys-3bb4c439822ae584/out)
  OPT_LEVEL = Some(0)
  TARGET = Some(x86_64-unknown-linux-gnu)
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
  CC_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
  CC_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(true)
  CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
  CFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
  CFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=<command-line>: error: no macro name given in #define directive

  --- stderr


  error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "/home/d3bug/Desktop/lv_binding_rust/lvgl-sys/vendor/lvgl/src" "-I" "/home/d3bug/Desktop/lv_binding_rust/lvgl-sys/vendor" "-I" "/home/d3bug/Desktop/lv_binding_rust/examples/include" "-I" "/home/d3bug/Desktop/lv_binding_rust/fonts" "-I" "/home/d3bug/Desktop/lv_binding_rust/lvgl-sys/vendor/lv_drivers" "-I" "/usr/include" "-I" "/usr/local/include" "-DLV_CONF_INCLUDE_SIMPLE=1" "-D=" "-o" "/home/d3bug/Desktop/lv_binding_rust/target/debug/build/lvgl-sys-3bb4c439822ae584/out/99299a8c29a71c18-fonts_noto_sans_numeric_80.o" "-c" "/home/d3bug/Desktop/lv_binding_rust/fonts/fonts_noto_sans_numeric_80.c" with args cc did not execute successfully (status code exit status: 1).
@C47D
Copy link
Collaborator Author

C47D commented Nov 23, 2024

Fixed with #177 and #165

@C47D C47D changed the title Unable to run demo example [SOLVED] Unable to run demo example Nov 23, 2024
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

1 participant