[Poppler-bugs] [Bug 107063] New: ld: library not found for -lopenjp2 on MacOS

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 28 15:06:46 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=107063

            Bug ID: 107063
           Summary: ld: library not found for -lopenjp2 on MacOS
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: tomduck at tomduck.ca

The following error occurs during `make` on MacOS High Sierra 10.13.5:

    ld: library not found for -lopenjp2

The library is in /usr/local/lib and was installed from source:

    $ cd /usr/local/lib
    $ ls -1 *libopenjp2*
    libopenjp2.2.3.0.dylib*
    libopenjp2.7.dylib@
    libopenjp2.a
    libopenjp2.dylib@

Inspection of CMakeFiles/poppler.dir/link.txt in the poppler build directory
shows lots of fully resolved paths, and two references to `-lopenjp2`.  I
removed them both and added the following path instead:

    /usr/local/lib/libopenjp2.dylib

After this the build and install complete successfully.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20180628/b674fa4b/attachment.html>


More information about the Poppler-bugs mailing list