serhmarch / ModbusTools

ModbusTools are cross-platform (Windows, Linux) Modbus simulator tools (client and server) with GUI to work with Modbus protocol (TCP,RTU,ASCII)
GNU General Public License v3.0
54 stars 8 forks source link

Failed to run build.sh on Rocky Linux 9.4 #16

Open snowuyl opened 10 hours ago

snowuyl commented 10 hours ago

git clone https://github.com/serhmarch/ModbusTools.git cd ModbusTools chmod +x ./build.sh ./build.sh CMake Error: Could not read presets from /home/snowuyl/samba/workspace_BASH/ModbusTools: File not found CMake Error: Could not read presets from /home/snowuyl/samba/workspace_BASH/ModbusTools: File not found

serhmarch commented 10 hours ago

Hello. You can copy CMakePresets.json from examples folder into ModbusTools source code root folder and then exec build.sh once again. CMakePresets.json contains individual settings for build such as output bin folder etc so its not included in repository by default.

snowuyl commented 10 hours ago

Thanks for your reply! cp examples/CMakePresets.json . ./build.sh Preset CMake variables:

CMAKE_BUILD_TYPE="Release" CMAKE_CXX_COMPILER="/usr/bin/g++" CMAKE_C_COMPILER="/usr/bin/gcc"

-- The C compiler identification is GNU 11.4.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done MB: QT is enabled! MB: Try to link QT library: Qt5::Core MBTOOLS: Start configure library 'core' CMake Error at /usr/lib64/cmake/Qt5/Qt5Config.cmake:28 (find_package): Could not find a package configuration file provided by "Qt5Help" with any of the following names:

Qt5HelpConfig.cmake
qt5help-config.cmake

Add the installation prefix of "Qt5Help" to CMAKE_PREFIX_PATH or set "Qt5Help_DIR" to a directory containing one of the above files. If "Qt5Help" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): src/core/CMakeLists.txt:18 (find_package)

-- Configuring incomplete, errors occurred! gmake: Makefile: No such file or directory gmake: *** No rule to make target 'Makefile'. Stop.

serhmarch commented 10 hours ago

Try to built step by step: https://github.com/serhmarch/ModbusTools/tree/main/src#building-modbustools-from-source-on-linux