diff --git a/BUILD.md b/BUILD.md new file mode 100644 index 0000000..26f224b --- /dev/null +++ b/BUILD.md @@ -0,0 +1,22 @@ +# Building +## Debian-based Linux + +Get QT5 development files +``` +apt install qtbase5-dev-tools qtbase5-dev libqt5svg5-dev qt5-qmake +``` + +Use `qmake` and `make` to build + +``` +qmake -o SAC-build/Makefile StandaloneClient/SAC.pro +make -C SAC-build + +# run +SAC-build/SAC +``` + + +> [!NOTE] +> Tested 2025-06-15 on debian 12 "bookworm" with QMake version 3.1 Using Qt version 5.15.8 + diff --git a/Client/rds_exechelper.cpp b/Client/rds_exechelper.cpp index 3d19592..95750f4 100644 --- a/Client/rds_exechelper.cpp +++ b/Client/rds_exechelper.cpp @@ -52,7 +52,16 @@ bool rdsExecHelper::run(QString cmdLine, QString nativeArguments) ti.start(); timeoutTimer.start(); if (!nativeArguments.isEmpty()){ + // https://www.qthub.com/static/doc/qt5/qtcore/qprocess.html#setNativeArguments + // > Note: This function is available only on the Windows platform. + // 2025-06-15 debian Qt 5.15.8 + // error: ‘class QProcess’ has no member named ‘setNativeArguments’; did you mean ‘setArguments’? + #ifdef Q_OS_WIN myProcess->setNativeArguments(nativeArguments); + #else + // splitting on space is going to be a problem for e.g. "quoted arguments with space"! + myProcess->setArguments(nativeArguments.split(' ')); + #endif } // else { // myProcess->start(cmdLine, arguments); diff --git a/NetLogger/netlog_events.h b/NetLogger/netlog_events.h index 5b62483..a4fc302 100644 --- a/NetLogger/netlog_events.h +++ b/NetLogger/netlog_events.h @@ -9,7 +9,7 @@ #define NETLOG_POST_TIMEOUT 30000 #define NETLOG_EVENT_TIMEOUT 5000 #define NETLOG_NSLOOKUP_TIMEOUT 10000 - +#include // Event definitions namespace EventInfo diff --git a/README.md b/README.md index 1c4f233..365beb3 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,7 @@ The Yarra framework, including all of its software components, comes without any The source is released under the GNU General Public License, GPL (http://www.gnu.org/copyleft/gpl.html). The source code is provided without warranties of any kind. ## More Information -More information can be found on the project website https://yarra-framework.org. \ No newline at end of file +More information can be found on the project website https://yarra-framework.org. + +## Building +See [BUILD.md](BUILD.md) diff --git a/StandaloneClient/main.cpp b/StandaloneClient/main.cpp index d47c160..da8a2a8 100644 --- a/StandaloneClient/main.cpp +++ b/StandaloneClient/main.cpp @@ -1,6 +1,6 @@ #include "sac_mainwindow.h" #include -#include +#include #include #include #include "sac_batchdialog.h"