Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

ffmpeg v5.1.4 for DOS (Announce)

posted by roytam, 12.03.2024, 03:21

> >
> > Don't know for sure yet what's going on with v6.x
> > Will get back to it sometime later to get more 'into it'.
> >
>
> Found the problem.
> Tried building v6.1.1 for Linux but without pthreads.
> _________________________________________________________
>
> root@glennmcc-i7:~/build/ffmpeg-6.1.1# ./configure --disable-pthreads
>
> root@glennmcc-i7:~/build/ffmpeg-6.1.1# time make
>
> Even tho I disabled pthreads.... it still got these errors and it did not
> build ffmpeg, ffprobe, ffplay for Linux.
>
> In file included from libavcodec/vulkan.c:19:
> ./libavutil/vulkan.c: In function 'ff_vk_exec_pool_free':
> ./libavutil/vulkan.c:267:9: error: implicit declaration of function
> 'pthread_mutex_destroy'; did you mean 'ff_mutex_destroy'?
> [-Werror=implicit-function-declaration]
> 267 | pthread_mutex_destroy(&e->lock);
> | ^~~~~~~~~~~~~~~~~~~~~
> | ff_mutex_destroy
> ./libavutil/vulkan.c: In function 'ff_vk_exec_pool_init':
> ./libavutil/vulkan.c:410:15: error: implicit declaration of function
> 'pthread_mutex_init' [-Werror=implicit-function-declaration]
> 410 | err = pthread_mutex_init(&e->lock, NULL);
> | ^~~~~~~~~~~~~~~~~~
> ./libavutil/vulkan.c: In function 'ff_vk_exec_wait':
> ./libavutil/vulkan.c:507:5: error: implicit declaration of function
> 'pthread_mutex_lock' [-Werror=implicit-function-declaration]
> 507 | pthread_mutex_lock(&e->lock);
> | ^~~~~~~~~~~~~~~~~~
> ./libavutil/vulkan.c:510:5: error: implicit declaration of function
> 'pthread_mutex_unlock'; did you mean 'ff_mutex_unlock'?
> [-Werror=implicit-function-declaration]
> 510 | pthread_mutex_unlock(&e->lock);
> | ^~~~~~~~~~~~~~~~~~~~
> | ff_mutex_unlock
> cc1: some warnings being treated as errors
> make: *** [ffbuild/common.mak:81: libavcodec/vulkan.o] Error 1
> ___________________________________________________________________
>
> Conculsion:
>
> Even for Linux the 6.x branch REQUIRES the current implementation of
> pthreads.
>
> ____________
>
> And since the only thing I can find for DJGPP
> is a 7yr old port of the 23.5yr old version of the prthreads source
> code.....
> that's it.... we're noe 'frozen' at ffmpeg/ffprobe v5.1.4
>
> [until someone ports the _current_ pthreads source code for use on DJGPP]
> ;)
>
> __________________
>
> As we see, v5.1.4 does _not_ require pthreads.
>
>
> root@glennmcc-i7:~/build/ffmpeg-6.1.1# ./configure --enable-pthreads
>
> root@glennmcc-i7:~/build/ffmpeg-6.1.1# time make
>
> real 16m9.759s
> user 15m1.857s
> sys 0m47.397s
> root@glennmcc-i7:~/build/ffmpeg-6.1.1# ls -l ffmpeg
> -rwxr-xr-x 1 root root 23139936 Mar 11 21:53 ffmpeg*
>
> root@glennmcc-i7:~/build/ffmpeg-6.1.1# ls -l ffprobe
> -rwxr-xr-x 1 root root 23013856 Mar 11 21:54 ffprobe*

you may report this to ffmpeg ML since it looks like a bug that pthreads can't be disabled in compilation time.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 171 users online (1 registered, 170 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum