libeccodes-dev problems with cmake

Bug #1714565 reported by Alexander Bürger MET Norway
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
eccodes (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Using FIND_PACKAGE(eccodes) in CMakeLists.txt produces an error message (below, empty lines removed). As the codes_info program is included in the libeccodes-tools package, libeccodes-dev should maybe depend on libeccodes-tools or recommend it?

In addition, linking with libeccodes seems to require installation of libopenjp-2-7-dev. The cmake files distributed with libeccodes-dev apparently refer to a 3rd-party-library "libopenjp2.so".

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/eccodes/eccodes-targets.cmake:211 (message):
  The imported target "codes_info" references the file
     "/usr/bin/codes_info"
  but this file does not exist. Possible reasons include:
  * The file was deleted, renamed, or moved to another location.
  * An install or uninstall procedure did not complete successfully.
  * The installation package was faulty and contained
     "/usr/lib/x86_64-linux-gnu/cmake/eccodes/eccodes-targets.cmake"
  but not all the files it references.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/eccodes/eccodes-config.cmake:78 (include)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in eccodes (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.