lvgl / lv_binding_rust

LVGL bindings for Rust. A powerful and easy-to-use embedded GUI with many widgets, advanced visual effects (opacity, antialiasing, animations) and low memory requirements (16K RAM, 64K Flash).
MIT License
689 stars 73 forks source link

Revert "feat: accept additional cflags from LVGL_CFLAGS env var" #174

Open rafaelcaricio opened 5 months ago

rafaelcaricio commented 5 months ago

Reverts lvgl/lv_binding_rust#173

AlixANNERAUD commented 4 months ago

I'm getting this build error :

warning: lvgl-sys@0.6.2: <command-line>: error: no macro name given in #define directive

error: failed to run custom build command for `lvgl-sys v0.6.2 (https://github.com/lvgl/lv_binding_rust.git#3b3abb30)`

Caused by:
  process didn't exit successfully: `/home/alix_anneraud/Git/Personnel/Xila/New-Code/target/debug/build/lvgl-sys-58bbe2930e8cd3ca/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=/home/alix_anneraud/Git/Personnel/Xila/New-Code/Modules/Graphics/include/lv_conf.h
  cargo:rerun-if-changed=/home/alix_anneraud/Git/Personnel/Xila/New-Code/Modules/Graphics/include/lv_drv_conf.h
  cargo:rerun-if-env-changed=LVGL_INCLUDE
  cargo:rerun-if-env-changed=LVGL_LINK
  OUT_DIR = Some(/home/alix_anneraud/Git/Personnel/Xila/New-Code/target/debug/build/lvgl-sys-ac65fed92ae33c25/out)
  TARGET = Some(x86_64-unknown-linux-gnu)
  OPT_LEVEL = Some(0)
  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(false)
  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" "-m64" "-I" "/home/alix_anneraud/.cargo/git/checkouts/lv_binding_rust-d86feb7597e107b7/3b3abb3/lvgl-sys/vendor/lvgl/src" "-I" "/home/alix_anneraud/.cargo/git/checkouts/lv_binding_rust-d86feb7597e107b7/3b3abb3/lvgl-sys/vendor" "-I" "/home/alix_anneraud/Git/Personnel/Xila/New-Code/Modules/Graphics/include" "-I" "/home/alix_anneraud/.cargo/git/checkouts/lv_binding_rust-d86feb7597e107b7/3b3abb3/lvgl-sys/vendor/lv_drivers" "-I" "/usr/include" "-I" "/usr/local/include" "-DLV_CONF_INCLUDE_SIMPLE=1" "-D=" "-o" "/home/alix_anneraud/Git/Personnel/Xila/New-Code/target/debug/build/lvgl-sys-ac65fed92ae33c25/out/a2902a6420bc3e84-lv_indev.o" "-c" "/home/alix_anneraud/.cargo/git/checkouts/lv_binding_rust-d86feb7597e107b7/3b3abb3/lvgl-sys/vendor/lvgl/src/core/lv_indev.c" with args cc did not execute successfully (status code exit status: 1).

warning: build failed, waiting for other jobs to finish...
The following warnings were emitted during compilation:

warning: lvgl-sys@0.6.2: <command-line>: error: no macro name given in #define directive

error: failed to run custom build command for `lvgl-sys v0.6.2 (https://github.com/lvgl/lv_binding_rust.git#3b3abb30)`

Caused by:
  process didn't exit successfully: `/home/alix_anneraud/Git/Personnel/Xila/New-Code/target/debug/build/lvgl-sys-58bbe2930e8cd3ca/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=/home/alix_anneraud/Git/Personnel/Xila/New-Code/Modules/Graphics/include/lv_conf.h
  cargo:rerun-if-changed=/home/alix_anneraud/Git/Personnel/Xila/New-Code/Modules/Graphics/include/lv_drv_conf.h
  cargo:rerun-if-env-changed=LVGL_INCLUDE
  cargo:rerun-if-env-changed=LVGL_LINK
  OUT_DIR = Some(/home/alix_anneraud/Git/Personnel/Xila/New-Code/target/debug/build/lvgl-sys-3c3aeceff70a05f2/out)
  TARGET = Some(x86_64-unknown-linux-gnu)
  OPT_LEVEL = Some(z)
  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" "-Os" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "/home/alix_anneraud/.cargo/git/checkouts/lv_binding_rust-d86feb7597e107b7/3b3abb3/lvgl-sys/vendor/lvgl/src" "-I" "/home/alix_anneraud/.cargo/git/checkouts/lv_binding_rust-d86feb7597e107b7/3b3abb3/lvgl-sys/vendor" "-I" "/home/alix_anneraud/Git/Personnel/Xila/New-Code/Modules/Graphics/include" "-I" "/home/alix_anneraud/.cargo/git/checkouts/lv_binding_rust-d86feb7597e107b7/3b3abb3/lvgl-sys/vendor/lv_drivers" "-I" "/usr/include" "-I" "/usr/local/include" "-DLV_CONF_INCLUDE_SIMPLE=1" "-D=" "-o" "/home/alix_anneraud/Git/Personnel/Xila/New-Code/target/debug/build/lvgl-sys-3c3aeceff70a05f2/out/a2902a6420bc3e84-lv_indev.o" "-c" "/home/alix_anneraud/.cargo/git/checkouts/lv_binding_rust-d86feb7597e107b7/3b3abb3/lvgl-sys/vendor/lvgl/src/core/lv_indev.c" with args cc did not execute successfully (status code exit status: 1).