Unknown CMake command "_qt5_Core_check_file_exists". #1

Open
opened 2024-12-09 20:03:37 +03:00 by L29Ah · 8 comments

Trying to build it on my Gentoo Lignux:

checks-parser ‰ cmake .
-- The CXX compiler identification is GNU 14.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /usr/lib64/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Found XKB: /usr/lib64/libxkbcommon.so (found suitable version "1.7.0", minimum required is "0.5.0")
CMake Error at /usr/lib64/cmake/Qt5/Qt5Config.cmake:51 (_qt5_Core_check_file_exists):
  Unknown CMake command "_qt5_Core_check_file_exists".
Call Stack (most recent call first):
  CMakeLists.txt:16 (find_package)


-- Configuring incomplete, errors occurred!
Trying to build it on my Gentoo Lignux: ``` checks-parser ‰ cmake . -- The CXX compiler identification is GNU 14.2.1 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Performing Test HAVE_STDATOMIC -- Performing Test HAVE_STDATOMIC - Success -- Found WrapAtomic: TRUE -- Found OpenGL: /usr/lib64/libOpenGL.so -- Found WrapOpenGL: TRUE -- Found XKB: /usr/lib64/libxkbcommon.so (found suitable version "1.7.0", minimum required is "0.5.0") CMake Error at /usr/lib64/cmake/Qt5/Qt5Config.cmake:51 (_qt5_Core_check_file_exists): Unknown CMake command "_qt5_Core_check_file_exists". Call Stack (most recent call first): CMakeLists.txt:16 (find_package) -- Configuring incomplete, errors occurred! ```
Owner

Can you please specify the distro you are using?

If it's debian-based or arch-based, did you run all the commands listed in Building section before actual building?

Can you please specify the distro you are using? If it's debian-based or arch-based, did you run all the commands listed in Building section before actual building?
Owner

Oh sorry didn't notice that you are using Gentoo. This program needs the qt5-base package to compile. Did you install gentoo alternative for it?

Oh sorry didn't notice that you are using Gentoo. This program needs the qt5-base package to compile. Did you install gentoo alternative for it?
Owner

бля первый раз я с другой стороны в issue :D

бля первый раз я с другой стороны в issue :D
Author

Dunno what's qt5-base, i have qtcore-5.15.16 installed among other things, and all the other qt5 software builds fine here. Also seems like e-mail notifications don't get sent from your gitea instance.

Dunno what's qt5-base, i have qtcore-5.15.16 installed among other things, and all the other qt5 software builds fine here. Also seems like e-mail notifications don't get sent from your gitea instance.
Owner

@L29Ah

I suppose qtcore is a basic library which does not include tools like linguistics, which is required to build the application. I'll look forward to make it an optional build target

As for emails, if you use popular email provider, it's most likely that it has rejected my e-mail because of DNS and rDNS are different for my server for some sad reason. I'm sorry for that inconvinience

@L29Ah I suppose qtcore is a basic library which does not include tools like linguistics, which is required to build the application. I'll look forward to make it an optional build target As for emails, if you use popular email provider, it's most likely that it has rejected my e-mail because of DNS and rDNS are different for my server for some sad reason. I'm sorry for that inconvinience
Owner

@L29Ah Try installing this packet.

I'll make it an optional dependency

@L29Ah Try installing [this packet](https://packages.gentoo.org/packages/dev-qt/linguist-tools). I'll make it an optional dependency
Author

It's already installed.

It's already installed.
Owner

Sorry for being slow, there were some circumstances.

I've separated translations as a new make target in the latest commit. Please, update and try again.

Anyways, the fact that it can't find linguist tools is pretty strange. Did you try building another Qt5 application that uses translations?

Sorry for being slow, there were some circumstances. I've separated translations as a new make target in the latest commit. Please, update and try again. Anyways, the fact that it can't find linguist tools is pretty strange. Did you try building another Qt5 application that uses translations?
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: leca/checks-parser#1
No description provided.