edisionnano / QDiskInfo

CrystalDiskInfo alternative for Linux
GNU General Public License v3.0
87 stars 6 forks source link

Help newbies compile #15

Open gnarlin opened 1 week ago

gnarlin commented 1 week ago

In order to compile on Ubuntu 24.04 I needed to install qt6-base-dev and libxkbcommon-dev. Maybe mention the name of the packages required to compile in the compilation instructions for common distributions.

edisionnano commented 1 week ago

You shouldn't need qt6-base-dev if you compile with Qt5 (-DQT_VERSION_MAJOR=5)

gnarlin commented 1 week ago

I tried that too but I was also missing the qt5 version.

CMake Error at CMakeLists.txt:17 (find_package): By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5", but CMake did not find one.

Could not find a package configuration file provided by "Qt5" with any of the following names:

Qt5Config.cmake
qt5-config.cmake

Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR" to a directory containing one of the above files. If "Qt5" provides a separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!

edisionnano commented 1 week ago

I'm not opposed to adding the command to install dependencies to compile and run the app on common distros (arch, ubuntu, debian, fedora, suse) but I would need people to test on a clean install which are needed.

edisionnano commented 2 days ago

I booted up an Ubuntu VM, I needed these packages build-essential cmake libgl1-mesa-dev libxkbcommon-dev qt6-base-dev qt6-wayland smartmontools I will create VMs for fedora and suse too