hx-esp32-cam-fpv: Cannot compile ground station

when trying to build the ground station it always errors at imgui, no such file or directory. I tried the original jeanlemotan ground station and it runs so its something with your version.

what version of raspi OS are you using?

Successfully installed Cython-0.29.37 PySDL2-0.9.16 cocos2d-0.6.10 glfw-2.7.0 imgui-2.0.0 pyglet-1.5.28 pi@ESP32FPV:/esp32-cam-fpv/gs $ make -j4 g++ -MT .o/src/main.o -MD -MP -MF .d/src/main.Td -std=c++17 sdl2-config --cflags -O3 -DNDEBUG -ffast-math -funroll-loops -Wall -Isrc -Isrc/utils -I…/components/common -I/usr/include/ -I/usr/include/freetype2 -Isrc/imgui/ -Isrc/imgui//backends -DIMGUI_IMPL_OPENGL_ES2 -c -o .o/src/main.o src/main.cpp g++ -MT .o/src/HUD.o -MD -MP -MF .d/src/HUD.Td -std=c++17 sdl2-config --cflags -O3 -DNDEBUG -ffast-math -funroll-loops -Wall -Isrc -Isrc/utils -I…/components/common -I/usr/include/ -I/usr/include/freetype2 -Isrc/imgui/ -Isrc/imgui//backends -DIMGUI_IMPL_OPENGL_ES2 -c -o .o/src/HUD.o src/HUD.cpp g++ -MT .o/src/PI_HAL.o -MD -MP -MF .d/src/PI_HAL.Td -std=c++17 sdl2-config --cflags -O3 -DNDEBUG -ffast-math -funroll-loops -Wall -Isrc -Isrc/utils -I…/components/common -I/usr/include/ -I/usr/include/freetype2 -Isrc/imgui/ -Isrc/imgui//backends -DIMGUI_IMPL_OPENGL_ES2 -c -o .o/src/PI_HAL.o src/PI_HAL.cpp g++ -MT .o/src/Comms.o -MD -MP -MF .d/src/Comms.Td -std=c++17 sdl2-config --cflags -O3 -DNDEBUG -ffast-math -funroll-loops -Wall -Isrc -Isrc/utils -I…/components/common -I/usr/include/ -I/usr/include/freetype2 -Isrc/imgui/ -Isrc/imgui//backends -DIMGUI_IMPL_OPENGL_ES2 -c -o .o/src/Comms.o src/Comms.cpp In file included from src/PI_HAL.h:3, from src/PI_HAL.cpp:1: src/IHAL.h:3:10: fatal error: imgui.h: No such file or directory 3 | #include “imgui.h” | ^~~~~~~~~ compilation terminated. make: *** [Makefile:131: .o/src/PI_HAL.o] Error 1 make: *** Waiting for unfinished jobs… In file included from src/HUD.cpp:2: src/IHAL.h:3:10: fatal error: imgui.h: No such file or directory 3 | #include “imgui.h” | ^~~~~~~~~ compilation terminated. make: *** [Makefile:131: .o/src/HUD.o] Error 1 In file included from src/main.cpp:14: src/IHAL.h:3:10: fatal error: imgui.h: No such file or directory 3 | #include “imgui.h” | ^~~~~~~~~ compilation terminated. make: *** [Makefile:131: .o/src/main.o] Error 1 src/Comms.cpp: In member function ‘void Comms::process_rx_packets()’: src/Comms.cpp:1103:14: warning: unused variable ‘coding_n’ [-Wunused-variable] 1103 | uint32_t coding_n = m_rx_descriptor.coding_n; | ^~~~~~~~ src/Comms.cpp: At global scope: src/Comms.cpp:34:16: warning: ‘IEEE_HEADER’ defined but not used [-Wunused-variable] 34 | static uint8_t IEEE_HEADER[] = | ^~~~~~~~~~~ mv -f .d/src/Comms.Td .d/src/Comms.d pi@ESP32FPV:~/esp32-cam-fpv/gs $

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 23 (10 by maintainers)

Most upvoted comments

Release branch updated, closes resolution is selected automatically, Closing this thread because issues are solved.

I guess it fails because it can not set 1280x720 resolution. Please try adding -w 1280 -h 800 to gs command line:https://github.com/RomanLut/esp32-cam-fpv/blob/fd70638ed10efec0b8fdd9faf8e61d49eec45f03/gs/launch.sh#L12

what is the current process for installing the groundstation?

Please use release branch and this instruction https://github.com/RomanLut/esp32-cam-fpv/blob/master/doc/building_gs_image.md

Air unit pinout is here https://github.com/RomanLut/esp32-cam-fpv?tab=readme-ov-file#air-unit

Now it looks more like a product.

Mavlink RC and DisplayportMSP OSD do work.

There is no OSD for GPIO joystick yet, but REC keys do work and joystick left/right changes resolution.

I had to install the aircrack tools for monitor mode to work correctly but its now working super smooth with the realtek adapter, the signal was really bad on the ar9271 I never realised til I have seen how much better the RSSI is on the realtek.

sudo apt update && sudo apt upgrade sudo apt install libdrm-dev libgbm-dev libgles2-mesa-dev libpcap-dev libturbojpeg0-dev libts-dev libsdl2-dev libfreetype6-dev sudo apt-get install -y aircrack-ng sudo apt-get install dkms sudo apt install -y raspberrypi-kernel-headers build-essential bc dkms git

mkdir -p ~/src cd ~/src git clone https://github.com/morrownr/8812au-20210629.git cd ~/src/8812au-20210629 sudo ./install-driver.sh

config = NO restart = YES

git clone https://github.com/RomanLut/esp32-cam-fpv.git cd ./esp32-cam-fpv/gs git submodule update --init --recursive make -j4

sudo nano /home/pi/fpv.sh

#!/bin/bash

echo “ESP32-FPV STARTUP” cd /home/pi/esp32-cam-fpv cd gs sudo airmon-ng check kill sudo ip link set wlan1 down sudo iw dev wlan1 set type monitor sudo ip link set wlan1 up sudo ./gs -fullscreen 1 -sm 1 -rx wlan1 -tx wlan1

save

sudo chmod +x /home/pi/fpv.sh

mkdir /home/pi/.config/autostart nano /home/pi/.config/autostart/fpv.desktop

[Desktop Entry] Type=Application Name=FPV
Exec=/usr/bin/bash /home/pi/fpv.sh

save

now runs on startup

Currently I do not remember how I installed it, I checked my old notes and found: “svpcom driver does not work, https://github.com/morrownr/8812au-20210629 works”

  1. I am using bluetooth mouse
  2. Create .sh script with lines above and add it to autostart: https://learn.sparkfun.com/tutorials/how-to-run-a-raspberry-pi-program-on-startup/method-2-autostart

Its working! im running into the issue here: https://github.com/jeanlemotan/esp32-cam-fpv/issues/40#issuecomment-1578830862

but im right next to an access point so I will test outside to see if it improves.

Screenshot 2024-04-05 165154

  1. With built-in wifi/nexmon drivers and 2db dipole, I have range ~20m

  2. On the field I am using single rtl8812au card with wfb-ng drivers https://github.com/svpcom/rtl8812au

  3. I am starting it like this:

cd /home/pi/esp32-cam-fpv
cd gs
sudo airmon-ng check kill
sudo ip link set wlan1 down
sudo iw dev wlan1 set type monitor
sudo ip link set wlan1 up
sudo ./gs -fullscreen 1 -sm 1 -rx wlan1 -tx wlan1

Fixed repo references, please try again.

I am using 5.10.103-v7+ but this error is not related to os version:

src/IHAL.h:3:10: fatal error: imgui.h: No such file or directory

You have to fetch dependent mgui repository:

git submodule update --init --recursive git pull