Skip to content

[libx264] build failure on linux #14993

@sandro-qiang

Description

@sandro-qiang

Host Environment

  • OS: Alpine Linux
  • Compiler: gcc 9.3.0

To Reproduce
Steps to reproduce the behavior:
./vcpkg install ffmpeg[avresample,bzip2,core,avcodec,avdevice,avformat,avfilter,postproc,swresample,swscale,openssl,mp3lame,x264]

Additional context
It's a minor error in ports/x264/portfile.cmake

line17

set(ENV{PATH} "$ENV{PATH};${NASM_EXE_PATH}")

should be

if(VCPKG_TARGET_IS_WINDOWS)
    set(ENV{PATH} "$ENV{PATH};${NASM_EXE_PATH}")
else()
    set(ENV{PATH} "$ENV{PATH}:${NASM_EXE_PATH}")
endif()

and another minor error in installed/x64-linux/share/mp3lame/mp3lame-config.cmake

line6 and line 7

set(_mp3lame_rel_lib "${_mp3lame_root}/lib/libmp3lame..a")
set(_mp3lame_dbg_lib "${_mp3lame_root}/debug/lib/libmp3lame..a")

should be

set(_mp3lame_rel_lib "${_mp3lame_root}/lib/libmp3lame.a")
set(_mp3lame_dbg_lib "${_mp3lame_root}/debug/lib/libmp3lame.a")

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions