rdp / ffmpeg-windows-build-helpers

Helper script for cross compiling some media tools for windows, like customizable ffmpeg.exe (with or without non-free components, etc), and some other bonuses like mplayer, mp4box, mxf, etc.
GNU General Public License v3.0
1.09k stars 414 forks source link

Getting undefined reference to `pthread_mutex_lock' #389

Closed garkpit closed 5 years ago

garkpit commented 5 years ago

It runs for a while then spews out the error below + several hundred similar. Doesn't seem to matter which options I use. Have tried sudo ./cross_compile_ffmpeg.sh and sudo ./cross_compile_ffmpeg.sh --disable-nonfree=n --compiler-flavors=win64 --high-bitdepth=y

Error message: /home/jay/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld: ./.libs/libharfbuzz.a(libharfbuzz_la-hb-blob.o):/home/jay/ffmpeg-windows-build-helpers/sandbox/win64/harfbuzz_git/src/hb-mutex.hh:133: undefined reference to `pthread_mutex_lock'

On Ubuntu Desktop 19.04 fresh install

Might be my limited Linux knowledge, and this is obvious, but not to me :)

Thanks, Jay

rdp commented 5 years ago

try latest?

On Tue, May 28, 2019 at 7:02 AM garkpit notifications@github.com wrote:

It runs for a while then spews out the error below + several hundred similar. Doesn't seem to matter which options I use. Have tried sudo ./cross_compile_ffmpeg.sh and sudo ./cross_compile_ffmpeg.sh --disable-nonfree=n --compiler-flavors=win64 --high-bitdepth=y

Error message: /home/jay/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld: ./.libs/libharfbuzz.a(libharfbuzz_la-hb-blob.o):/home/jay/ffmpeg-windows-build-helpers/sandbox/win64/harfbuzz_git/src/hb-mutex.hh:133: undefined reference to `pthread_mutex_lock'

On Ubuntu Desktop 19.04 fresh install

  • Followed your instructions (after installing git)
  • Did this first after first run said to do it: sudo apt-get install subversion ragel curl texinfo g++ bison flex cvs yasm automake libtool autoconf gcc cmake git make pkg-config zlib1g-dev mercurial unzip pax nasm gperf autogen bzip2 autoconf-archive p7zip-full python3-distutils -y
  • Did sudo hoping it would help...

Might be my limited Linux knowledge, and this is obvious, but not to me :)

Thanks, Jay

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rdp/ffmpeg-windows-build-helpers/issues/389?email_source=notifications&email_token=AAADBUEX2DNBIGRX5YZ5BO3PXUUNNA5CNFSM4HQDFCZ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GWHDUZA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAADBUCWITFF5SLIGGEAHADPXUUNNANCNFSM4HQDFCZQ .

garkpit commented 5 years ago

Yes! Works now. Many thanks! Jay

garkpit commented 5 years ago

Hi again. So a little PS: After getting it working on a fresh Ubuntu 19.04 I returned to my regular Linux VM which is Linux Mint 19. The warning message "Could not find the following execs (etc)" appears as if for non-Ubuntu flavours of Linux. I suggest putting the Ubuntu message instead, as it is 100% accurate on latest Linux Mint 19 (with updates applied). Great tool. Thanks again :) (pps. Am now trying to get it running on Fedora Astronomy 30 but having an issue. If I don't solve it soon I will post a fresh Issue here.)

eyahalomi commented 4 years ago

Hi guys , I am not sure why that fix is not on the latest. I had to merge this manually to pass the build - 0fef12b

rdp commented 4 years ago

Please try latest, thanks!

On Sun, May 3, 2020 at 11:53 PM eyahalomi notifications@github.com wrote:

Hi guys , I am not sure why that fix is not on the latest. I had to merge this manually to pass the build - 0fef12b https://github.com/rdp/ffmpeg-windows-build-helpers/commit/0fef12b450127d9f2e9bf6aa629559fcf3b97fae

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/rdp/ffmpeg-windows-build-helpers/issues/389#issuecomment-623271091, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADBUGEKHKL7HAXG7Q35TTRPZJ6TANCNFSM4HQDFCZQ .