Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Version not set properly in pkgconfig kvazaar.pc #381

@wader

Description

@wader

Hello, tried to build ffmpeg using version 2.3.0 and got a build error that looks like the version number somehow is not set:

...
2024-01-17T16:35:00.4050041Z #124 13.85 require_pkg_config libkvazaar kvazaar >= 2.0.0 kvazaar.h kvz_api_get
2024-01-17T16:35:00.4050284Z #124 13.85 check_pkg_config libkvazaar kvazaar >= 2.0.0 kvazaar.h kvz_api_get
2024-01-17T16:35:00.4050527Z #124 13.85 test_pkg_config libkvazaar kvazaar >= 2.0.0 kvazaar.h kvz_api_get
2024-01-17T16:35:00.4050768Z #124 13.85 pkg-config --exists --print-errors kvazaar >= 2.0.0
2024-01-17T16:35:00.4051117Z #124 13.85 Package dependency requirement 'kvazaar >= 2.0.0' could not be satisfied.
2024-01-17T16:35:00.4051551Z #124 13.85 Package 'kvazaar' has version '@PROJECT_VERSION@', required version is '>= 2.0.0'
2024-01-17T16:35:00.4051783Z #124 13.85 ERROR: kvazaar >= 2.0.0 not found using pkg-config

This is a diff of kvazaar.pc between version 2.2.0 and 2.30 after running ./autogen.sh && ./configure:

--- kvazaar-2.2.0/src/kvazaar.pc
+++ kvazaar-2.3.0/src/kvazaar.pc
@@ -1,11 +1,12 @@
-prefix=/usr/local
+prefix=@CMAKE_INSTALL_PREFIX@
 exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+libdir=${prefix}/lib
 incdir=${prefix}/include

 Name: libkvazaar
-Description: Open-source HEVC encoder
-Version: 2.2.0
+Description: @CMAKE_PROJECT_DESCRIPTION@
+URL: @CMAKE_PROJECT_HOMEPAGE_URL@
+Version: @PROJECT_VERSION@
 Libs: -L${libdir} -lkvazaar
 Libs.private: -lpthread   -lrt
 Cflags: -I${incdir}

I guess the commit changing this was f9587f2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions