C library for the ScienceMode 4 protocol
Please download the QT-Installer from https://www.qt.io/download-open-source and install Qt Creator and Qt5 / Qt6. Besides QT, Qt Serial Port is necessary.
Open ScienceMode.pro with Qt Creator and go to Projects. Select your Compiler and QT-Version and then go to Builds Steps and add the following to the addional arguments field:
Possible settings for windows (Release):
- For a MingGW-based compiler:
"CONFIG+=myRelease smpt_all mingw"
- For a x86 visual studio compiler:
"CONFIG+=myRelease smpt_all windows_static_x86"
- For a amd64 visual studio compiler:
"CONFIG+=myRelease smpt_all windows_static_amd64"
Possible settings for windows (Debug):
- For a MingGW-based compiler:
"CONFIG+=myDebug smpt_all mingw"
- For a x86 visual studio compiler:
"CONFIG+=myDebug smpt_all windows_static_x86"
- For a amd64 visual studio compiler:
"CONFIG+=myDebug smpt_all windows_static_amd64"
When selecting mingw, it is possible to build the library for 32bit or for 64bit, depending on the installed MinGW. windows_static_x86 or windows_static_amd64 requires an installed visual studio c++ compiler and a fitting Qt version.
Qt5 Core and qmake needs to be installed first. Then the library can be build by:
sudo apt install libqt5core5a qt5-qmake
qmake -r "CONFIG+=myRelease smpt_all linux_x86_amd64_static" ScienceMode.pro
make
Qt5 Core and qmake needs to be installed first. Then the library can be build by:
qmake -r "CONFIG+=myRelease smpt_all macos" ScienceMode.pro
make