zimbatm / ffmpeg-static

Scripts to build ffmpeg with all the deps statically (webm + h264 included)
ISC License
494 stars 245 forks source link

ERROR: x265 not found using pkg-config #67

Closed Vuzrak closed 6 years ago

Vuzrak commented 6 years ago

Getting the error "ERROR: x265 not found using pkg-config" when it trys to build ffmpeg.

This is on Ubuntu 17.10, I'm able to build it fine with x265 if I do it manually from the instructions from "https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu".

r4dius commented 6 years ago

Same issue on ubuntu 18.04 when building static version with --extra-ldexeflags="-static" in the config.log we get : /usr/bin/x86_64-linux-gnu-ld: cannot find -lgcc_s /usr/bin/x86_64-linux-gnu-ld: cannot find -lgcc_s not sure why yet

Update: Well just removed "-lgcc_s -lgcc -lgcc_s -lgcc" from my x265.pc file, now it compiles ... btw just compared with my previous build on ubuntu 16.04 and this was not present in the x265.pc file, not sure if it the new ubuntu or the new x265 (I had 2.7 on my old ubuntu and 2.8 on 18.04)

Zalewa commented 6 years ago

PR #79 fixes this.

zimbatm commented 6 years ago

thanks @Zalewa !