tiny fix
This commit is contained in:
parent
deb87fab6d
commit
16b5449e3d
3 changed files with 7 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
cmake_minimum_required(VERSION 3.18)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
|
|
||||||
project(
|
project(
|
||||||
esp32_bluetooth_classic_sniffer
|
esp32_bluetooth_classic_sniffer
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
PLUGIN_VERSION=2.0.0
|
PLUGIN_VERSION=2.0.0
|
||||||
WIRESHARK_INCLUDES=$(pkg-config wireshark --cflags-only-I)
|
WIRESHARK_INCLUDES=$(pkg-config wireshark --cflags-only-I)
|
||||||
|
WIRESHARK_PLUGINS_FOLDER="/home/$USER/.local/lib/wireshark/plugins/3.4/epan/"
|
||||||
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
|
|
||||||
|
@ -38,5 +39,6 @@ clang -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DHAVE_PLUGINS -DPLUGIN
|
||||||
echo "Building h4bcm.so"
|
echo "Building h4bcm.so"
|
||||||
clang --std=gnu11 -fPIC -w -O3 -shared -o h4bcm.so build/packet-btbrlmp.c.o build/packet-h4bcm.c.o build/plugin.c.o -lwireshark -lwiretap -lwsutil
|
clang --std=gnu11 -fPIC -w -O3 -shared -o h4bcm.so build/packet-btbrlmp.c.o build/packet-h4bcm.c.o build/plugin.c.o -lwireshark -lwiretap -lwsutil
|
||||||
|
|
||||||
echo "Copying h4bcm.so to /usr/local/lib/wireshark/plugins/3.4/epan/"
|
mkdir -p $WIRESHARK_PLUGINS_FOLDER
|
||||||
sudo cp h4bcm.so /usr/local/lib/wireshark/plugins/3.4/epan/
|
echo "Copying h4bcm.so to $WIRESHARK_PLUGINS_FOLDER"
|
||||||
|
sudo cp h4bcm.so $WIRESHARK_PLUGINS_FOLDER
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo -e "\nInstalling cmake, clang and software-properties-common"
|
echo -e "\nInstalling cmake, clang, zstd and software-properties-common"
|
||||||
sudo apt install cmake clang software-properties-common -y
|
sudo apt install cmake clang zstd software-properties-common -y
|
||||||
|
|
||||||
|
|
||||||
echo -e "\n\nInstalling latest stable wireshark"
|
echo -e "\n\nInstalling latest stable wireshark"
|
||||||
|
|
Loading…
Reference in a new issue