mirror of
https://github.com/hasherezade/bearparser
synced 2026-06-08 14:32:38 +00:00
43 lines
793 B
Bash
Executable File
43 lines
793 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Trying to build bearparser..."
|
|
|
|
#QT check
|
|
|
|
QT_VER=$(qmake -v)
|
|
str="$QT_VER"
|
|
substr="Qt version 6"
|
|
|
|
echo $QT_VER
|
|
if [[ $str == *"$substr"* ]]; then
|
|
echo "[+] Qt6 found!"
|
|
else
|
|
str2=$(whereis qt6)
|
|
substr2="/qt6"
|
|
if [[ $str2 == *"$substr2"* ]]; then
|
|
echo "[+] Qt6 found!"
|
|
else
|
|
echo "Install Qt6 SDK first"
|
|
exit -1
|
|
fi
|
|
fi
|
|
|
|
CMAKE_VER=$(cmake --version)
|
|
CMAKEV="cmake version"
|
|
if echo "$CMAKE_VER" | grep -q "$CMAKEV"; then
|
|
echo "[+] CMake found!"
|
|
else
|
|
echo "[-] CMake NOT found!"
|
|
echo "Install cmake first"
|
|
exit -1
|
|
fi
|
|
echo $CMAKE_VER
|
|
mkdir build_qt6
|
|
echo "[+] build directory created"
|
|
cd build_qt6
|
|
cmake -G"CodeLite - Unix Makefiles" -DCMAKE_INSTALL_PREFIX:PATH=$(pwd) ..
|
|
cmake --build . --target install
|
|
make
|
|
cd ..
|
|
|