jeanlemotan / esp32-cam-fpv

esp32 cam digital low latency fpv
MIT License
279 stars 68 forks source link

fatal error: crc.h: No such file or directory #4

Closed jeng37 closed 2 years ago

jeng37 commented 2 years ago

root@raspberrypi:~# git clone https://github.com/jeanlemotan/esp32-cam-fpv.git Cloning into 'esp32-cam-fpv'... remote: Enumerating objects: 277, done. remote: Counting objects: 100% (277/277), done. remote: Compressing objects: 100% (185/185), done. remote: Total 277 (delta 99), reused 238 (delta 74), pack-reused 0 Receiving objects: 100% (277/277), 905.21 KiB | 388.00 KiB/s, done. Resolving deltas: 100% (99/99), done. root@raspberrypi:~#cd esp32-cam-fpv root@raspberrypi:~/esp32-cam-fpv# cd gs/ root@raspberrypi:~/esp32-cam-fpv/gs# ls Makefile src root@raspberrypi:~/esp32-cam-fpv/gs# make g++ -MT .o/src/main.o -MD -MP -MF .d/src/main.Td -std=c++17 -O3 -DNDEBUG -ffast-math -funroll-loops -mcpu=cortex-a8 -mfpu=neon -Wall -DRASPBERRY_PI -Isrc -Isrc/utils -Isrc/imgui -Icomponents/common -I/opt/vc/include/ -I/usr/include/freetype2 -c -o .o/src/main.o src/main.cpp src/main.cpp:20:10: fatal error: crc.h: No such file or directory 20 | #include "crc.h" | ^~~ compilation terminated. make: *** [Makefile:126: .o/src/main.o] Error 1 root@raspberrypi:~/esp32-cam-fpv/gs# `

peteallenm commented 2 years ago

Looking at the Makefile, I would guess you have to change every line that has components/ to ../components/ Untested

jeanlemotan commented 2 years ago

There is a missing include in the Makefile, indeed. Unfortunately I don't really have time to fix and test this, but I'd be glad to accept a PR.

careyer commented 2 years ago

This issue still persists... can somebody please advice how to get rid of the

src/main.cpp:20:10: fatal error: crc.h: No such file or directory
   20 | #include "crc.h"
      |          ^~~~~~~

compile error?

JulesThuillier commented 1 year ago

@careyer : the answer is in the messages above.