Skip to content

OpenCV does not look in lib64 directories for dependencies #8160

@mcneish1

Description

@mcneish1

Recently (#8102), libjpeg-turbo started building libraries to lib64 instead of lib on my machine.

I believe this is the culprit (in opencv's package.py):

        if '+jpeg' in spec:
            libjpeg = spec['jpeg']
            args.extend([
                '-DBUILD_JPEG:BOOL=OFF',
                '-DJPEG_LIBRARY:FILEPATH={0}'.format(
                    join_path(libjpeg.prefix.lib,
                              'libjpeg.{0}'.format(dso_suffix))),
                '-DJPEG_INCLUDE_DIR:PATH={0}'.format(libjpeg.prefix.include)
            ])

This does not consider the possibility that the path should be libjpeg.prefix.lib64.

I'm currently manually symlinking lib64/libjpeg.so to lib/libjpeg.so, as a stopgap.

  • Does libjpeg.prefix.lib64 exist, in the context above? Can it? Should it?
  • Is there some way to get libjpeg-turbo to install to lib instead of lib64? None of the changes in libjpeg-turbo stood out as the reason it changed directories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions