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 glennmcc Homepage E-mail, North Jackson, Ohio (USA), 12.03.2024, 02:47
(edited by glennmcc on 12.03.2024, 03:22)

>
> 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-5.1.4# ./configure --disable-pthreads

root@glennmcc-i7:~/build/ffmpeg-5.1.4# time make

real 15m19.259s
user 14m23.767s
sys 0m46.352s

root@glennmcc-i7:~/build/ffmpeg-5.1.4# ls -l ffmpeg
-rwxr-xr-x 1 root root 21394296 Mar 11 22:11 ffmpeg*

root@glennmcc-i7:~/build/ffmpeg-5.1.4# ls -l ffprobe
-rwxr-xr-x 1 root root 21304664 Mar 11 22:11 ffprobe*

---
--
http://glennmcc.org/

 

Complete thread:

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