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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rafaelcaricio
Copy link
Collaborator

Reverts #173

@rafaelcaricio rafaelcaricio enabled auto-merge (rebase) June 19, 2024 15:51
@AlixANNERAUD
Copy link

AlixANNERAUD commented Jun 29, 2024

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).

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

Successfully merging this pull request may close these issues.

2 participants