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

fatal error: utility/LTR553_Class.hpp: No such file or directory #35

Open
TheMiner203 opened this issue Nov 3, 2024 · 2 comments
Open

Comments

@TheMiner203
Copy link

I'm trying to compile the firmware according to the instructions, but after entering the command

make flash_all BOARD=M5STACK_StickC_PLUS2

this appears:

[ 92%] Building CXX object esp-idf/M5Unified/CMakeFiles/__idf_M5Unified.dir/mpy_m5unified.cpp.obj
/home/miner203/uiflow_workspace/uiflow_micropython/m5stack/components/M5Unified/mpy_m5als.cpp:7:10: fatal error: utility/LTR553_Class.hpp: No such file or directory
    7 | #include <utility/LTR553_Class.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [esp-idf/M5Unified/CMakeFiles/__idf_M5Unified.dir/build.make:930: esp-idf/M5Unified/CMakeFiles/__idf_M5Unified.dir/mpy_m5als.cpp.obj] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /home/miner203/uiflow_workspace/uiflow_micropython/m5stack/components/M5Unified/mpy_m5unified.cpp:39:
/home/miner203/uiflow_workspace/esp-idf/components/driver/deprecated/driver/periph_ctrl.h:7:2: warning: #warning driver/periph_ctrl.h header is no longer used, and will be removed in future versions. [-Wcpp]
    7 | #warning driver/periph_ctrl.h header is no longer used, and will be removed in future versions.
      |  ^~~~~~~
/home/miner203/uiflow_workspace/uiflow_micropython/m5stack/components/M5Unified/mpy_m5unified.cpp:58:56: error: 'class m5::M5Unified' has no member named 'Als'
   58 |       als_obj_t m5_als     = {&mp_als_type,       &(M5.Als)    };
      |                                                        ^~~
make[3]: *** [esp-idf/M5Unified/CMakeFiles/__idf_M5Unified.dir/build.make:1042: esp-idf/M5Unified/CMakeFiles/__idf_M5Unified.dir/mpy_m5unified.cpp.obj] Error 1
make[3]: Leaving directory '/home/miner203/uiflow_workspace/uiflow_micropython/m5stack/build-M5STACK_StickC_PLUS2'
make[2]: *** [CMakeFiles/Makefile2:4854: esp-idf/M5Unified/CMakeFiles/__idf_M5Unified.dir/all] Error 2
make[2]: Leaving directory '/home/miner203/uiflow_workspace/uiflow_micropython/m5stack/build-M5STACK_StickC_PLUS2'
make[1]: *** [Makefile:136: all] Error 2
make[1]: Leaving directory '/home/miner203/uiflow_workspace/uiflow_micropython/m5stack/build-M5STACK_StickC_PLUS2'
make failed with exit code 2, output of the command is in the /home/miner203/uiflow_workspace/uiflow_micropython/m5stack/build-M5STACK_StickC_PLUS2/log/idf_py_stderr_output_21876 and /home/miner203/uiflow_workspace/uiflow_micropython/m5stack/build-M5STACK_StickC_PLUS2/log/idf_py_stdout_output_21876
make: *** [Makefile:183: build] Error 2

Before this there was an error related to import imp, but I fixed it by replacing imp with importlib

@imliubo
Copy link
Member

imliubo commented Nov 4, 2024

Maybe you don't execute “make patch” command?

@TheMiner203
Copy link
Author

Maybe you don't execute “make patch” command?

I think I execute all the commands, but now I don't need it anymore. I simply removed all references to this file because I don't use this module and it's not important to me, and everything compiled :D

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

2 participants