You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,38 @@ Based on libraop by philippe44 (all rights reserved). See upstream repo for more
6
6
7
7
## Building
8
8
9
+
**IMPORTANT:** Always use `STATIC=1` to statically link OpenSSL from crosstools. This ensures the binary is self-contained and doesn't depend on system OpenSSL libraries.
**IMPORTANT:** Always use `STATIC=1` to statically link OpenSSL from crosstools. This ensures the binary is self-contained and doesn't depend on system OpenSSL libraries.
25
+
### Development Workflow
26
+
27
+
When working on the code and testing changes:
28
+
29
+
```sh
30
+
# Clean previous build
31
+
make clean
32
+
33
+
# Rebuild with static OpenSSL (REQUIRED)
34
+
make HOST=macos PLATFORM=arm64 STATIC=1 -j4
35
+
36
+
# Test the binary
37
+
./bin/cliraop-macos-arm64 -pair <device_ip>
38
+
```
39
+
40
+
**Common Mistakes:**
41
+
- ❌ `make` without `STATIC=1` - will link against system OpenSSL (broken)
42
+
- ❌ `CC=cc make HOST=macos PLATFORM=arm64` - will link against system OpenSSL (broken)
43
+
- ✅ `make HOST=macos PLATFORM=arm64 STATIC=1` - correct way with static OpenSSL
0 commit comments