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

lvgl:arm-ostl-linux-gnueabi-gcc compile error!fatal error: lvgl/lvgl.h: No such file or directory #include "lvgl/lvgl.h" #12

Open
MY201314MY opened this issue Aug 6, 2021 · 6 comments
Labels

Comments

@MY201314MY
Copy link

When I compile the LVGL by gcc, everything is OK.
But when I compile it with arm-ostl-linux-gnueabi-gcc for my STM32MP157-DK2,compilation terminated.
fatal error: lvgl/lvgl.h: No such file or directory #include "lvgl/lvgl.h"
I trid to replace "lvgl/lvgl.h" with "lvgl.h", but It doesn't work.
echo 'main(){}'| arm-ostl-linux-gnueabi-gcc -E -v -
`Using built-in specs.
COLLECT_GCC=arm-ostl-linux-gnueabi-gcc
Target: arm-ostl-linux-gnueabi
Configured with: ../../../../../../work-shared/gcc-8.2.0-r0/gcc-8.2.0/configure --build=x86_64-linux --host=x86_64-ostl_sdk-linux --target=arm-ostl-linux-gnueabi --prefix=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/usr --exec_prefix=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/usr --bindir=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi --sbindir=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-linux-gnueabi --libexecdir=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/usr/libexec/arm-ostl-linux-gnueabi --datadir=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/usr/share --sysconfdir=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/etc --sharedstatedir=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/com --localstatedir=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/var --libdir=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/usr/lib/arm-ostl-linux-gnueabi --includedir=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/usr/include --oldincludedir=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/usr/include --infodir=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/usr/share/info --mandir=/opt/st/stm32mp1/2.6-openstlinux-20-02-19/sysroots/x86_64-ostl_sdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/opt/STM/workspace/workdir/openstlinux/build-stm32mp1/tmp-glibc/work/x86_64-nativesdk-ostl_sdk-linux/gcc-cross-canadian-arm/8.2.0-r0/recipe-sysroot --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-ostl-linux-gnueabi- --without-local-prefix --enable-lto --disable-libssp --enable-libitm --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --without-isl --with-gxx-include-dir=/not/exist/usr/include/c++/8.2.0 --with-build-time-tools=/opt/STM/workspace/workdir/openstlinux/build-stm32mp1/tmp-glibc/work/x86_64-nativesdk-ostl_sdk-linux/gcc-cross-canadian-arm/8.2.0-r0/recipe-sysroot-native/usr/arm-ostl-linux-gnueabi/bin --with-sysroot=/not/exist --with-build-sysroot=/opt/STM/workspace/workdir/openstlinux/build-stm32mp1/tmp-glibc/work/x86_64-nativesdk-ostl_sdk-linux/gcc-cross-canadian-arm/8.2.0-r0/recipe-sysroot --without-long-double-128 libgcc_cv_powerpc_float128=no --enable-poison-system-directories --disable-static --enable-nls --enable-initfini-array
Thread model: posix
gcc version 8.2.0 (GCC)
COLLECT_GCC_OPTIONS='-E' '-v' '-mcpu=arm10tdmi' '-mtls-dialect=gnu' '-marm' '-march=armv5t'
/home/pi/stm32mp157/sdk/sysroots/x86_64-ostl_sdk-linux/usr/libexec/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/8.2.0/cc1 -E -quiet -v - -mcpu=arm10tdmi -mtls-dialect=gnu -marm -march=armv5t
ignoring nonexistent directory "/not/exist/usr/lib/gcc/arm-ostl-linux-gnueabi/8.2.0/include"
ignoring nonexistent directory "/not/exist/usr/local/include"
ignoring nonexistent directory "/home/pi/stm32mp157/sdk/sysroots/x86_64-ostl_sdk-linux/usr/lib/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/8.2.0/../../../../../arm-ostl-linux-gnueabi/include"
ignoring nonexistent directory "/not/exist/usr/include/"
#include "..." search starts here:
#include <...> search starts here:
/home/pi/stm32mp157/sdk/sysroots/x86_64-ostl_sdk-linux/usr/lib/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/8.2.0/include
/home/pi/stm32mp157/sdk/sysroots/x86_64-ostl_sdk-linux/usr/lib/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/8.2.0/include-fixed
End of search list.

1 ""

1 ""

1 ""

1 ""

main(){}
COMPILER_PATH=/home/pi/stm32mp157/sdk/sysroots/x86_64-ostl_sdk-linux/usr/libexec/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/8.2.0/:/home/pi/stm32mp157/sdk/sysroots/x86_64-ostl_sdk-linux/usr/libexec/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/8.2.0/:/home/pi/stm32mp157/sdk/sysroots/x86_64-ostl_sdk-linux/usr/libexec/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/:/home/pi/stm32mp157/sdk/sysroots/x86_64-ostl_sdk-linux/usr/lib/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/8.2.0/:/home/pi/stm32mp157/sdk/sysroots/x86_64-ostl_sdk-linux/usr/lib/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/
LIBRARY_PATH=/home/pi/stm32mp157/sdk/sysroots/x86_64-ostl_sdk-linux/usr/lib/arm-ostl-linux-gnueabi/gcc/arm-ostl-linux-gnueabi/8.2.0/
COLLECT_GCC_OPTIONS='-E' '-v' '-mcpu=arm10tdmi' '-mtls-dialect=gnu' '-marm' '-march=armv5t'
`
Could you please give me some advise?

@kisvegabor
Copy link
Member

From the log, I can't see from which file does the error comes.
Do you know it?

@bigbearishappy
Copy link

I have met this error too when I add lvgl demo to my yocto project.
It's because that you compiler(eg: gcc) can not find the lvgl.h in it's include dir list.
maybe you can fix it with -Ixx/xx/... in Makefile

@MY201314MY
Copy link
Author

MY201314MY commented Aug 28, 2021

I have met this error too when I add lvgl demo to my yocto project.
It's because that you compiler(eg: gcc) can not find the lvgl.h in it's include dir list.
maybe you can fix it with -Ixx/xx/... in Makefile

Thank you!
Yor are right so much!
I also tried :
1、delete the "lv_demos/",only a few errors left.
2、replace "lvgl/lvgl.h" with absolute "/home/pi/lv_linux_frame_buffer/lvgl/lvgl.h".
This way seems a little stupid, and yours is more flexible.

@stale
Copy link

stale bot commented Apr 16, 2022

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 16, 2022
@kisvegabor
Copy link
Member

As the issue seems to be solved I close it.

If it's still not working as expected please comment here and reopen the issue.

@stale stale bot removed the stale label Apr 16, 2022
@stale
Copy link

stale bot commented Apr 20, 2023

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants