View previous topic :: View next topic |
Author |
Message |
ShanaXXII Apprentice
Joined: 29 Jun 2014 Posts: 283 Location: Canada
|
Posted: Sat Sep 07, 2019 9:58 pm Post subject: cmake (and potentially other tools) not working after 17.1? |
|
|
After migrating from 17.0 to 17.1, it feels like some of my system is inconsistent.
Today I tried compiling qimgv manually from their github repo.
And I was given this error:
Code: |
qimgv/qimgv $ cmake .
CMake Error at CMakeLists.txt:12 (QT5_ADD_RESOURCES):
Unknown CMake command "QT5_ADD_RESOURCES".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.14)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "~/qimgv/qimgv/CMakeFiles/CMakeOutput.log".
|
But I have cmake installed:
Code: | eix -I cmake
[I] dev-util/cmake
Available versions: ~3.13.5 3.14.6 ~3.15.2 ~3.15.3 {doc emacs ncurses qt5 system-jsoncpp test}
Installed versions: 3.14.6(11:05:49 AM 09/07/2019)(-doc -emacs -ncurses -qt5 -system-jsoncpp -test)
Homepage: https://cmake.org/
Description: Cross platform Make
|
Any idea what is going on?
Thanks |
|
Back to top |
|
|
Phoenix591 Guru
Joined: 17 Sep 2007 Posts: 487
|
Posted: Sun Sep 08, 2019 8:56 am Post subject: |
|
|
Code: | Unknown CMake command "QT5_ADD_RESOURCES". |
This isn't saying cmake isn't installed, its saying it's missing a QT cmake function.
on my 17.1 system this is provided by /usr/lib64/cmake/Qt5Core/Qt5CoreMacros.cmake,
Code: |
grep -r QT5_ADD_RESOURCES /usr/lib64/cmake
/usr/lib64/cmake/Qt5Core/Qt5CoreMacros.cmake:function(QT5_ADD_RESOURCES outfiles )
|
owned by dev-qt/qtcore
Don't hesitate to rebuild anything that build's fail complaining about, or letting a emerge -e world --keep-going run overnight if you feel LOTS of your system is inconsistent.(you should be able to rebuild most of anything that fails by running emerge --keep-going -1 list of failing packages, and slowly trimming down the list) |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8938
|
Posted: Sun Sep 08, 2019 9:16 am Post subject: |
|
|
Rebuilding dependencies of failing packages should get you quickly back on track. |
|
Back to top |
|
|
ShanaXXII Apprentice
Joined: 29 Jun 2014 Posts: 283 Location: Canada
|
Posted: Tue Sep 10, 2019 12:26 am Post subject: |
|
|
I tried re-emerging qtcore but I'm still getting the same error :/
How do I know which dependencies to recompile? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30966 Location: here
|
Posted: Tue Sep 10, 2019 5:10 am Post subject: |
|
|
ShanaXXII wrote: | How do I know which dependencies to recompile? |
With equery you can see the cmake dependencies
Code: | $ equery g dev-util/cmake-3.14.6
* Searching for cmake3.14.6 in dev-util ...
* dependency graph for dev-util/cmake-3.14.6
`-- dev-util/cmake-3.14.6 amd64
`-- app-crypt/rhash-1.3.6-r1 (app-crypt/rhash) amd64
`-- app-arch/libarchive-3.3.3 (>=app-arch/libarchive-3.0.0) amd64
`-- dev-libs/expat-2.2.7 (>=dev-libs/expat-2.0.1) amd64
`-- dev-libs/libuv-1.28.0 (>=dev-libs/libuv-1.10.0) amd64
`-- net-misc/curl-7.65.0 (>=net-misc/curl-7.21.5) amd64 [ssl]
`-- sys-libs/zlib-1.2.11-r2 (sys-libs/zlib) amd64
`-- virtual/pkgconfig-1 (virtual/pkgconfig) amd64
`-- virtual/emacs-26 (virtual/emacs) amd64
`-- sys-libs/ncurses-6.1_p20181020 (sys-libs/ncurses) amd64
`-- dev-qt/qtcore-5.12.4 (dev-qt/qtcore) ~amd64
`-- dev-qt/qtgui-5.12.4 (dev-qt/qtgui) ~amd64
`-- dev-qt/qtwidgets-5.12.4-r2 (dev-qt/qtwidgets) ~amd64
`-- dev-libs/jsoncpp-1.9.1 (>=dev-libs/jsoncpp-0.6.0_rc2) amd64
`-- dev-util/desktop-file-utils-0.23 (dev-util/desktop-file-utils) amd64
`-- x11-misc/shared-mime-info-1.10 (x11-misc/shared-mime-info) amd64
[ dev-util/cmake-3.14.6 stats: packages (16), max depth (1) ] |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
|