This commit is contained in:
Matheus Eduardo Garbelini 2021-09-07 12:13:53 +08:00
parent deb87fab6d
commit 16b5449e3d
3 changed files with 7 additions and 5 deletions

View file

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.18)
cmake_minimum_required(VERSION 3.10)
project(
esp32_bluetooth_classic_sniffer

View file

@ -2,6 +2,7 @@
PLUGIN_VERSION=2.0.0
WIRESHARK_INCLUDES=$(pkg-config wireshark --cflags-only-I)
WIRESHARK_PLUGINS_FOLDER="/home/$USER/.local/lib/wireshark/plugins/3.4/epan/"
mkdir -p build
@ -38,5 +39,6 @@ clang -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DHAVE_PLUGINS -DPLUGIN
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
echo "Copying h4bcm.so to /usr/local/lib/wireshark/plugins/3.4/epan/"
sudo cp h4bcm.so /usr/local/lib/wireshark/plugins/3.4/epan/
mkdir -p $WIRESHARK_PLUGINS_FOLDER
echo "Copying h4bcm.so to $WIRESHARK_PLUGINS_FOLDER"
sudo cp h4bcm.so $WIRESHARK_PLUGINS_FOLDER

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
echo -e "\nInstalling cmake, clang and software-properties-common"
sudo apt install cmake clang software-properties-common -y
echo -e "\nInstalling cmake, clang, zstd and software-properties-common"
sudo apt install cmake clang zstd software-properties-common -y
echo -e "\n\nInstalling latest stable wireshark"