From ffd745f446b94ae5b6db3b242c5399e71d4bc1fc Mon Sep 17 00:00:00 2001 From: mrbesen Date: Wed, 20 Apr 2022 23:29:40 +0200 Subject: [PATCH] XInputSimulator staticly linked --- .gitmodules | 3 +++ Readme.md | 1 + lolautoaccept.pro | 2 +- makeXInputSimulator.sh | 7 +++++++ thirdparty/XInputSimulator | 1 + 5 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 makeXInputSimulator.sh create mode 160000 thirdparty/XInputSimulator diff --git a/.gitmodules b/.gitmodules index 5fd23c8..ad6c722 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "thirdparty/Log"] path = thirdparty/Log url = https://git.okaestne.de/okaestne/Log.git +[submodule "thirdparty/XInputSimulator"] + path = thirdparty/XInputSimulator + url = https://git.mrbesen.de/MrBesen/XInputSimulator.git diff --git a/Readme.md b/Readme.md index 77938db..3b63b5d 100644 --- a/Readme.md +++ b/Readme.md @@ -7,6 +7,7 @@ It works by taking a screenshot every second, analysing it using opencv and clic ### Dependencies - opencv4 - [XInputSimulator](https://github.com/a3f/XInputSimulator.git) + - Qt5 ### Running just execute it. diff --git a/lolautoaccept.pro b/lolautoaccept.pro index c26ae6c..bc6ee78 100644 --- a/lolautoaccept.pro +++ b/lolautoaccept.pro @@ -3,7 +3,7 @@ QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++17 -unix:LIBS += -lX11 -lXext `pkg-config opencv4 --libs` -lXInputSimulator +unix:LIBS += thirdparty/XInputSimulator/build/libXInputSimulator.a -lX11 -lXtst -lXext -lxcb -lXau -pthread -lXdmcp -lrt `pkg-config opencv4 --libs` # The following define makes your compiler emit warnings if you use # any Qt feature that has been marked deprecated (the exact warnings diff --git a/makeXInputSimulator.sh b/makeXInputSimulator.sh new file mode 100755 index 0000000..1270dce --- /dev/null +++ b/makeXInputSimulator.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +rm -rf thirdparty/XInputSimulator/build +mkdir -p thirdparty/XInputSimulator/build +cd thirdparty/XInputSimulator/build/ +cmake ../XInputSimulator/ +make -j diff --git a/thirdparty/XInputSimulator b/thirdparty/XInputSimulator new file mode 160000 index 0000000..0151c34 --- /dev/null +++ b/thirdparty/XInputSimulator @@ -0,0 +1 @@ +Subproject commit 0151c34bd261bc8b28cc20bc5fcf4d6447d0128d