CMake Error: A required package was not found
Created by: T-oasterO-ven
CMakeOutput.log So when I followed the build instructions I got an error:
Cloning into 'adriconf'...
remote: Enumerating objects: 51, done.
remote: Counting objects: 100% (51/51), done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 851 (delta 27), reused 31 (delta 16), pack-reused 800
Receiving objects: 100% (851/851), 2.75 MiB | 1.16 MiB/s, done.
Resolving deltas: 100% (549/549), done.
Checking connectivity... done.
user@484033:~$ cd adriconf
user@484033:~/adriconf$ mkdir build-dir
user@484033:~/adriconf$ cd build-dir
user@484033:~/adriconf/build-dir$ cmake ..
-- The C compiler identification is GNU 6.5.0
-- The CXX compiler identification is GNU 6.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- Checking for module 'gtkmm-3.0'
-- No package 'gtkmm-3.0' found
CMake Error at /usr/local/share/cmake-3.14/Modules/FindPkgConfig.cmake:457 (message):
A required package was not found
Call Stack (most recent call first):
/usr/local/share/cmake-3.14/Modules/FindPkgConfig.cmake:642 (_pkg_check_modules_internal)
CMakeLists.txt:14 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
See also "/home/user/adriconf/build-dir/CMakeFiles/CMakeOutput.log".
It said I was missing 'gtkmm-3.0' so I installed it:
user@484033:~/adriconf/build-dir$ sudo apt-get install gtkmm-3.0
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libgtkmm-3.0-dbg' for regex 'gtkmm-3.0'
Note, selecting 'libgtkmm-3.0-dev' for regex 'gtkmm-3.0'
Note, selecting 'libgtkmm-3.0-doc' for regex 'gtkmm-3.0'
Note, selecting 'libgtkmm-3.0-1' for regex 'gtkmm-3.0'
Note, selecting 'libgtkmm-3.0-1v5' for regex 'gtkmm-3.0'
libgtkmm-3.0-1v5 is already the newest version (3.18.0-1).
libgtkmm-3.0-1v5 set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libgtkmm-3.0-1 : Depends: libatkmm-1.6-1 (>= 2.22.1) but it is not going to be installed
Depends: libcairomm-1.0-1 (>= 1.6.4) but it is not going to be installed
Depends: libglibmm-2.4-1c2a (>= 2.33.13) but it is not going to be installed
Depends: libpangomm-1.4-1 (>= 2.27.1) but it is not going to be installed
Depends: libsigc++-2.0-0c2a (>= 2.0.2) but it is not going to be installed
libgtkmm-3.0-1v5 : Conflicts: libgtkmm-3.0-1 but 3.6.0-0ubuntu1 is to be installed
libgtkmm-3.0-dev : Depends: libgtk-3-dev (>= 3.18.0) but it is not going to be installed
Depends: libcairomm-1.0-dev (>= 1.12.0) but it is not going to be installed
Depends: libpangomm-1.4-dev (>= 2.38.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
And now I don't know what to do. Any help would be appreciated. Thanks.