Page MenuHomePhabricator

"Dependency "libopenjp2" not found," despite being installed [opensuse]
Closed, InvalidPublic

Description

I'm not certain what happens here, but with current openSuse efl will not compile because of 8ec6e28b7cc568a8bb636de90b2dd10f19db2be3 by @raster

when I revert this commit I'm able to build efl again.

zypper tells me libopenjp2 is installed and a couple of days ago I actually set up my current work place to build efl/enlightenment from git:

n@cret:/ > zypper se libopenjp2
Loading repository data...
Reading installed packages...

S | Name               | Summary                                   | Type
--+--------------------+-------------------------------------------+--------
i | libopenjp2-7       | Opensource JPEG 2000 Codec Implementation | package
  | libopenjp2-7-32bit | Opensource JPEG 2000 Codec Implementation | package
Library Xcomposite found: YES
Library Xdamage found: YES
Library Xext found: YES
Library Xfixes found: YES
Library Xinerama found: YES
Library Xrandr found: YES
Library Xrender found: YES
Library Xtst found: YES
Library Xss found: YES
Library Xi found: YES
Library Xi found: YES
Header <X11/XKBlib.h> has symbol "XkbSetDetectableAutoRepeat" with dependencies x11, xcb: YES (cached)
Library Xcursor found: YES
Header <X11/Xcursor/Xcursor.h> has symbol "XcursorSupportsARGB" with dependencies x11, xcb: YES (cached)
Message: ecore_fb disabled!
Message: ecore_wl2 disabled!
Message: ecore_sdl disabled!
Message: ecore_buffer disabled!
Message: elput disabled!
Message: ecore_drm2 disabled!
Message: ecore_cocoa disabled!
Dependency libpng found: YES 1.6.37 (cached)
Dependency libtiff-4 found: YES 4.1.0 (cached)
Library gif found: YES
Dependency libwebp found: YES 1.0.3 (cached)
Run-time dependency libopenjp2 found: NO (tried pkgconfig and cmake)

src/lib/evas/meson.build:11:0: ERROR: Dependency "libopenjp2" not found, tried pkgconfig and cmake

A full log can be found at /mount/media42/compile/e/efl/build/meson-logs/meson-log.txt
FAILED: build.ninja
/usr/bin/meson --internal regenerate /mount/media42/compile/e/efl /mount/media42/compile/e/efl/build --backend ninja
ninja: error: rebuilding 'build.ninja': subcommand failed
ProhtMeyhet triaged this task as Showstopper Issues priority.
ProhtMeyhet updated the task description. (Show Details)Jan 29 2020, 8:57 AM

have you thought of providing the openjpeg devel pkgs like all other devel pkgs for deps... or disabling the jp2k loader? :)

have you thought of providing the openjpeg devel pkgs like all other devel pkgs for deps... or disabling the jp2k loader? :)

no, first there is no devel package for it (that's why I posted the zypper se search) and it says "Run-time dependency" from which I think does not mean a devel package:

Run-time dependency libopenjp2 found: NO (tried pkgconfig and cmake)

ProhtMeyhet closed this task as Invalid.Jan 29 2020, 3:52 PM
ProhtMeyhet added a subscriber: simotek.

meh [insert profanity]

the devel package for libopenjp2 is called openjpeg2-devel and I only installed - on a hunch - openjpeg-devel. I missed the 2 there...

Sorry for the inconvenience, but @simotek

zypper se openjpeg
Loading repository data...
Reading installed packages...

S  | Name                 | Summary                                    | Type
---+----------------------+--------------------------------------------+--------
i+ | libopenjpeg1         | An open-source JPEG 2000 codec             | package
   | libopenjpeg1-32bit   | An open-source JPEG 2000 codec             | package
i  | openjpeg             | An open-source JPEG 2000 codec             | package
i  | openjpeg-devel       | Development files for the OpenJPEG library | package
   | openjpeg-devel-32bit | Development files for the OpenJPEG library | package
   | openjpeg2            | Opensource JPEG 2000 Codec Implementation  | package
   | openjpeg2-devel      | Development files for openjpeg2            | package

I see suse has an odd package naming scenario there... :) but yeah - missing devel pkg :)