Skip to content

package/xxhash: fix libxxhash.pc prefix to /usr - #1209

Open
RetroBoyCN wants to merge 1 commit into
batocera-linux:br2-externalfrom
RetroBoyCN:br2-external
Open

RetroBoyCN wants to merge 1 commit into
batocera-linux:br2-externalfrom
RetroBoyCN:br2-external

Conversation

@RetroBoyCN

Copy link
Copy Markdown
Contributor

Getting the following error when compiling shadps4 0.20.0:
CMake Error in CMakeLists.txt:
Imported target "PkgConfig::XXHASH" includes non-existent path
"/x86_64/host/x86_64-buildroot-linux-gnu/sysroot/usr/local/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.
  • An install or uninstall procedure did not complete successfully.
  • The installation package was faulty and references files it does not
    provide.

The libxxhash.pc file is generated during the build step, not during install. At that point PREFIX was not passed, so it defaulted to /usr/local, resulting in an incorrect pkg-config file pointing to /usr/local instead of /usr.

Pass PREFIX=/usr in XXHASH_BUILD_CMDS so that the .pc file is generated with the correct prefix from the start.

The libxxhash.pc file is generated during the build step, not during
install. At that point PREFIX was not passed, so it defaulted to
/usr/local, resulting in an incorrect pkg-config file pointing to
/usr/local instead of /usr.

Pass PREFIX=/usr in XXHASH_BUILD_CMDS so that the .pc file is
generated with the correct prefix from the start.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant