Skip to content

Commit e428b25

Browse files
committed
Update README.md & Fix CI
1 parent cc26b1d commit e428b25

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
1616

1717
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
1818

19+
# To fix "error: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)'".
20+
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
21+
set(CMAKE_C_STANDARD 90)
22+
set(CMAKE_C_STANDARD_REQUIRED TRUE)
23+
endif ()
24+
1925
find_package(PkgConfig REQUIRED)
2026

2127
if (WIN32)

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ OpenIPC FPV ground station for Windows & Linux. Forked from [fpv4win](https://gi
1010

1111
![](tutorials/interface.jpg)
1212

13-
For now, only RTL8812AU Wi-Fi adapter is supported.
13+
> [!NOTE]
14+
> For now, only RTL8812AU Wi-Fi adapter is supported.
1415
1516
### Usage
17+
1618
1. (Only for Windows) Download [Zadig](https://zadig.akeo.ie/)
1719
2. (Only for Windows) Install the libusb driver for your adapter.
1820
Go *Options**List All Devices*.
@@ -27,22 +29,25 @@ For now, only RTL8812AU Wi-Fi adapter is supported.
2729

2830
### Common run issues
2931

30-
* If the application crashes at startup on Windows, try installing [Microsoft Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version).
32+
* If the application crashes at startup on Windows, install [Microsoft Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version) first.
3133

3234
### Latency test
35+
3336
![](tutorials/latency_test.jpg)
3437

3538
### TODOs
39+
3640
- Ground side OSD
3741

3842
### How to build on Windows
39-
1. Install vcpkg.
43+
44+
1. Install vcpkg somewhere else.
4045
```powershell
4146
git clone https://github.com/microsoft/vcpkg.git
4247
cd vcpkg
4348
.\bootstrap-vcpkg.bat
4449
```
45-
50+
4651
2. Install dependencies.
4752
```powershell
4853
.\vcpkg integrate install
@@ -54,7 +59,6 @@ For now, only RTL8812AU Wi-Fi adapter is supported.
5459

5560
4. Clone third-party library source.
5661
```powershell
57-
cd aviateur
5862
git submodule init
5963
git submodule update
6064
```
@@ -63,7 +67,14 @@ For now, only RTL8812AU Wi-Fi adapter is supported.
6367

6468
### How to build on Linux
6569

66-
(Needed to be updated)
70+
1. Install dependencies.
71+
```bash
72+
git submodule init
73+
git submodule update
74+
sudo apt-get install libusb-1.0-0-dev ffmpeg libsodium-dev libopencv-dev xorg-dev
75+
```
76+
77+
2. Open as a CMake project and build.
6778

6879
### Common build issues
6980

@@ -74,4 +85,5 @@ CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/I
7485
```
7586

7687
This is because the pre-installed vcpkg from Visual Studio installer overrides the PKG_ROOT environment variable.
77-
To fix this, find `set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake")` in CMakeLists.txt, replace `$ENV{VCPKG_ROOT}` with the vcpkg you cloned previously.
88+
To fix this, find `set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake")` in CMakeLists.txt,
89+
replace `$ENV{VCPKG_ROOT}` with the vcpkg you cloned previously.

0 commit comments

Comments
 (0)