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

cmake error while generating build files. #377

Open
ghost opened this issue Feb 3, 2024 · 2 comments
Open

cmake error while generating build files. #377

ghost opened this issue Feb 3, 2024 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 3, 2024

I ran the following commands to generate buildfiles for OBK :

cmake -Bbuild-ibus-src -GNinja -DCPACK_GENERATOR=RPM -DCMAKE_INSTALL_PREFIX="/usr" -DENABLE_IBUS=ON

but it results in the following error:

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


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

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

    Qt5CoreConfig.cmake
    qt5core-config.cmake

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


-- Configuring incomplete, errors occurred!

My experience with cmake/c++ is limited, so I am unable the troubleshoot this issue.
Note that this error has only appeared recently, as this afternoon I ran the same command without any issues, generating valid build files.

@mominul
Copy link
Member

mominul commented Feb 6, 2024

Is this error still occurring for you? Have you installed QT5 development libraries?

@ghost
Copy link
Author

ghost commented Feb 6, 2024

Is this error still occurring for you? Have you installed QT5 development libraries?

I was trying to make a copr repo for OBK, I do remember I copy-pasted the dependency list from make-pkgs so everything needed for compiling OBK should've been there, it can also be an issue with Fedora's chroot/infra. I will retest and see if I can reproduce it.

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

1 participant