oguzhaninan / Stacer

Linux System Optimizer and Monitoring - https://oguzhaninan.github.io/Stacer-Web
GNU General Public License v3.0
8.88k stars 601 forks source link

Qt5LinguistTools's missing to compile (Ubuntu LTS) #341

Open tukoz opened 4 years ago

tukoz commented 4 years ago

Ubuntu 18.04 (i686) up-to-date.
Having installed libqt5svg5-dev and qttools5-dev-tools as paulo discovered in #192 I'm stuck at compiling by another dependandy 'Qt5LinguistTools'. Problem, I can't find the Ubuntu package that provides it. Any hint please?

~/Stacer/build$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/qt/path/bin ..
-- [cxxbasics][✓] CMAKE_C_COMPILER(/usr/bin/cc)'s linker is set to: GNU gold linker
-- [cxxbasics][✓] CMAKE_CXX_COMPILER(/usr/bin/c++)'s linker is set to: GNU gold linker
-- [cxxbasics][✓] Compiler cache tool "ccache" set for the C compiler
-- [cxxbasics][✓] Compiler cache tool "ccache" set for the CXX compiler
CMake Warning at stacer/CMakeLists.txt:28 (find_package):
  By not providing "FindQt5LinguistTools.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "Qt5LinguistTools", but CMake did not find one.

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

    Qt5LinguistToolsConfig.cmake
    qt5linguisttools-config.cmake

  Add the installation prefix of "Qt5LinguistTools" to CMAKE_PREFIX_PATH or
  set "Qt5LinguistTools_DIR" to a directory containing one of the above
  files.  If "Qt5LinguistTools" provides a separate development package or
  SDK, be sure it has been installed.
alexmyczko commented 4 years ago

https://sources.debian.org/src/stacer/1.1.0-1/debian/control/

it is listed in the Build-Depends: line

tukoz commented 4 years ago

And the Build-Depends for Debian/Ubuntu is: cmake, libqt5charts5-dev, libqt5svg5-dev, qttools5-dev, fonts-inter plus optional ccache. Thank you @alexmyczkom . @oguzhaninan want a pull request to show the dependancies on README? As this has been issued for years e.g. #192 . EDIT: Still can't build upon installing above deps:

~ $ make -j $(nproc)
...
[ 71%] Building CXX object stacer/CMakeFiles/stacer.dir/Pages/Services/service_item.cpp.o
/Stacer/stacer/Pages/Search/search_page.cpp: In member function ‘QList<QStandardItem*> SearchPage::createRow(const QString&)’:
/Stacer/stacer/Pages/Search/search_page.cpp:338:63: error: ‘class QFileInfo’ has no member named ‘metadataChangeTime’
     QStandardItem *i_lastChange = new QStandardItem(fileInfo->metadataChangeTime().toString(mSearchResultDateFormat));
                                                               ^~~~~~~~~~~~~~~~~~
/Stacer/stacer/Pages/Search/search_page.cpp:339:37: error: ‘class QFileInfo’ has no member named ‘metadataChangeTime’
     i_lastChange->setData(fileInfo->metadataChangeTime().toString(mSearchResultDateFormat), rowRole);
                                     ^~~~~~~~~~~~~~~~~~
/Stacer/stacer/Pages/Search/search_page.cpp:340:37: error: ‘class QFileInfo’ has no member named ‘metadataChangeTime’
     i_lastChange->setData(fileInfo->metadataChangeTime().toString(mSearchResultDateFormat), Qt::ToolTipRole);
                                     ^~~~~~~~~~~~~~~~~~
stacer/CMakeFiles/stacer.dir/build.make:392: recipe for target 'stacer/CMakeFiles/stacer.dir/Pages/Search/search_page.cpp.o' failed
make[2]: *** [stacer/CMakeFiles/stacer.dir/Pages/Search/search_page.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:180: recipe for target 'stacer/CMakeFiles/stacer.dir/all' failed
make[1]: *** [stacer/CMakeFiles/stacer.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
alexmyczko commented 4 years ago

@tukoz you're hit by the same bug as i with https://github.com/oguzhaninan/Stacer/issues/331

it works from debian sid / ubuntu 20.04 on