Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building fails. "Could not find a package configuration file provided by "Qt5LinguistTools"" on KDE Neon. #818

Open
InkstainTheBat opened this issue Dec 20, 2024 · 6 comments

Comments

@InkstainTheBat
Copy link

Hello. I've followed the instructions however upon executing cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ../.. Cmake fails printing

  CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package):
  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.
Call Stack (most recent call first):
  CMakeLists.txt:116 (find_package)


-- Configuring incomplete, errors occurred!```

I've attempted installing "qt5linguisttools" through apt, however the closest package was "linguist-qt6".
@alerque
Copy link
Contributor

alerque commented Dec 20, 2024

I don't know what Ubuntu packages you need, but on Arch Linux it is qt5-base for runtime as well as qt5-tools and qt5-translations for buildtime. I amme you are missing some QT5 things, probably that you have QT6 for instead.

@alerque
Copy link
Contributor

alerque commented Dec 20, 2024

Also, did you use -D USE_SYSTEM_QT=ON?

@InkstainTheBat
Copy link
Author

I tried installed the qt6 versions of the packages you listed and added the option you suggested to the cmake command but the error remains the same.

@alerque
Copy link
Contributor

alerque commented Dec 20, 2024

I tried installed the qt6 versions of the packages you listed

You need the Qt5 versions. Do you my chance have some sort of QT5 compatibility layer package? This app hasn't been updated to Qt6 yet as far as I'm aware. See #428.

@InkstainTheBat
Copy link
Author

I gave that repo a look too, but although now it's correctly looking for the qt6 version of the linguisttools package, it still isn't found. I've searched a bit online too but I couldn't find a solution

@InkstainTheBat
Copy link
Author

I just found out about qt6-tools-dev-tools, which allowed me to continue, however building now fails at a later stage. During Ninja building, an error pops up that this time I can't understand. I'll post it here

FAILED: test/CMakeFiles/test_fileContextMenu.dir/fileContextMenu.cpp.o 
/usr/bin/c++ -DCURR_YEAR=2024 -DDEBUG_OUTPUT_GENERAL -DENABLE_UPDATE_OVER_GUI -DGITTYUP_DBUS_INTERFACE_NAME=\"com.github.Murmele.Gittyup.Application\" -DGITTYUP_DBUS_OBJECT_PATH=\"/com/github/Murmele/Gittyup/Application\" -DGITTYUP_IDENTIFIER=\"com.github.Murmele.Gittyup\" -DGITTYUP_NAME=\"Gittyup\" -DGITTYUP_VERSION=\"1.4.0\" -DGIT_EXECUTABLE=\"/usr/bin/git\" -DHUNSPELL_STATIC -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/home/simone/git/Gittyup/build/release/test\" -DQT_TESTCASE_SOURCEDIR=\"/home/simone/git/Gittyup/test\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSCINTILLA_QT -DSCI_LEXER -DSSH_CONFIG=\"/home/simone/git/Gittyup/test\" -I/home/simone/git/Gittyup/build/release/test/test_fileContextMenu_autogen/include -I/home/simone/git/Gittyup/src -I/home/simone/git/Gittyup/build/release/test -I/home/simone/git/Gittyup/l10n -I/home/simone/git/Gittyup/dep/lua/lua-5.4.0/src -I/home/simone/git/Gittyup/src/util -I/home/simone/git/Gittyup/dep/libgit2/libgit2/include -I/home/simone/git/Gittyup/dep/libssh2/libssh2/include -I/home/simone/git/Gittyup/dep/lpeg/lpeg-1.0.2 -I/home/simone/git/Gittyup/dep/scintilla/lexilla/src -I/home/simone/git/Gittyup/dep/scintilla/lexilla/lexlib -I/home/simone/git/Gittyup/dep/scintilla/lexilla/include -I/home/simone/git/Gittyup/dep/hunspell/hunspell/src/hunspell -I/home/simone/git/Gittyup/dep/cmark/cmark/src -I/home/simone/git/Gittyup/build/release/dep/cmark/cmark/src -I/home/simone/git/Gittyup/test/dep/zip/src -isystem /usr/include/x86_64-linux-gnu/qt6/QtCore -isystem /usr/include/x86_64-linux-gnu/qt6 -isystem /usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt6/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt6/QtGui -isystem /usr/include/x86_64-linux-gnu/qt6/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt6/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt6/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt6/QtTest -O3 -DNDEBUG -std=gnu++17 -MD -MT test/CMakeFiles/test_fileContextMenu.dir/fileContextMenu.cpp.o -MF test/CMakeFiles/test_fileContextMenu.dir/fileContextMenu.cpp.o.d -o test/CMakeFiles/test_fileContextMenu.dir/fileContextMenu.cpp.o -c /home/simone/git/Gittyup/test/fileContextMenu.cpp
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qiodevice.h:10,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qfiledevice.h:7,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qdirlisting.h:8,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qdir.h:9,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/QDir:1,
                 from /home/simone/git/Gittyup/src/app/Theme.h:13,
                 from /home/simone/git/Gittyup/src/app/Application.h:13,
                 from /home/simone/git/Gittyup/test/Test.h:13,
                 from /home/simone/git/Gittyup/test/fileContextMenu.cpp:1:
/usr/include/x86_64-linux-gnu/qt6/QtCore/qobject.h: In instantiation of ‘T QObject::findChild(QAnyStringView, Qt::FindChildOptions) const [with T = IgnoreDialog*; Qt::FindChildOptions = QFlags<Qt::FindChildOption>]’:
/usr/include/x86_64-linux-gnu/qt6/QtCore/qobject.h:178:28:   required from ‘T QObject::findChild(Qt::FindChildOptions) const [with T = IgnoreDialog*; Qt::FindChildOptions = QFlags<Qt::FindChildOption>]’
/home/simone/git/Gittyup/test/fileContextMenu.cpp:445:59:   required from here
/usr/include/x86_64-linux-gnu/qt6/QtCore/qobject.h:158:62: error: static assertion failed: No Q_OBJECT in the class passed to QObject::findChild
  158 |         static_assert(QtPrivate::HasQ_OBJECT_Macro<ObjType>::Value,
      |                                                              ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qobject.h:158:62: note: ‘QtPrivate::HasQ_OBJECT_Macro<IgnoreDialog>::Value’ evaluates to false
ninja: build stopped: subcommand failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants