Rawtherapee cmake failed due to "required package not found"

System: Ubuntu 16.10
Main issue (?!): 16.10 does not have any installation candidate for libpng12-dev.
I then installed this file using ubuntu software instead:
http://packages.ubuntu.com/xenial/amd64/libpng12-0/download
Also, »libexpat1-dev« was installed instead »libexpat-dev«.
See message:
Hinweis: »libexpat1-dev« wird an Stelle von »libexpat-dev« gewählt.

Is one of the two files the cause for the following error message (“A required package was not found”)?:

cmake -DCMAKE_CXX_FLAGS="-std=c++11 -Wno-deprecated-declarations -Wno-unused-result"       -DWITH_LTO="OFF"       -DCMAKE_BUILD_TYPE="release"       -DPROC_TARGET_NUMBER="2"       -DBUILD_BUNDLE="ON"       -DBINDIR="."       -DDATADIR="."       -DCACHE_NAME_SUFFIX="4" ..
-- CMAKE_BUILD_TYPE: release
-- Checking for module 'gtk+-2.0>=2.12'
--   
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
  CMakeLists.txt:229 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/home/tom/repo-rt/build/CMakeFiles/CMakeOutput.log".

I also checked that CMakeOutput.log - much info there but none that I can use.
Please Help - thank you!

CMake usually says, what it is checking for, and that’s the case here, too:

-- Checking for module 'gtk+-2.0>=2.12'

Obviously you are missing the libgtk2.0-dev package.

As for the libpng12-dev issue: Is there a libpng-dev package available? Some package names changed in Debian since RawPedia was last updated. Usually, they are named quite similar to those given on RawPedia.

When you succeed, please post those renamed packages here, so that @Morgan_Hardwood can update RawPedia for others. Thanks!

HTH
Flössie

The package libpng-dev is available. I have it installed.
I also got that gtk package installed by:

sudo apt-get install gtk2.0
sudo apt-get install build-essential libgtk2.0-dev

No success, since now cmake fails like the following:

– CMAKE_BUILD_TYPE: release
– Checking for module ‘gtk±2.0>=2.12’
– Found gtk±2.0, version 2.24.30
– Checking for module ‘glib-2.0>=2.16’
– Found glib-2.0, version 2.50.0
– Checking for module ‘glibmm-2.4>=2.16’

CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
CMakeLists.txt:231 (pkg_check_modules)

– Configuring incomplete, errors occurred!
See also “/home/tom/repo-rt/build/CMakeFiles/CMakeOutput.log”.

OK, the package glibmm-2.4 was missing, next was the gtkmm-2.4, next was lcms2, what I could not install - need more googling on that module…

liblcms2-2 and liblcms2-dev

@Viennatom fresh off the press:
http://rawpedia.rawtherapee.com/Linux#Ubuntu_16.10

Delete your “build” folder and restart by following the instructions from the beginning.

For the time being, until further notice, instead of using the “gtk3” branch, use the “gtk3-bugfix” branch.

1 Like

Thanks for the help - I can continue this investigation about a week from now.

issue now is libcanberra-gtk. need to check where to get that.

libcanberra-gtk-module

I’m general, sudo apt search <package name> should find the package; all of these are pretty standard GTK3 packages.

libcanberra issue solved by using “gtk3-bugfix” instead “master”.

Formal notice: you should now use the gtk3 branch.