New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mingw32, ffmpeg and others: libraries missing for mingw32 only #2593
Comments
libcjson was removed for mingw32, so that would at least explain that. I'm going to need to make a list of deps that are required for 32-bit but were removed soon. |
Another case: bmx
|
Could you provide any reason for compiling 32 bit binaries? |
In my case, just curiosity and testing. I just try now and then if it still works and tell you if not; the maintainers decide whether to try to find a solution or take it as a more serious reason to abandon the support. |
Building 32-bit ffmpeg with librist can be repaired by reenabling the use of the internal cJSON, see #2476 (comment) _check=(librist.{a,pc} librist/librist.h)
[[ $standalone = y ]] && _check+=(bin-global/rist{sender,receiver,2rist,srppasswd}.exe)
if enabled librist && do_vcs "$SOURCE_REPO_LIBRIST"; then
- do_pacman_install cjson
do_uninstall include/librist "${_check[@]}"
- extracommands=("-Dbuiltin_cjson=false")
+ extracommands=("-Dbuiltin_cjson=true")
[[ $standalone = y ]] || extracommands+=("-Dbuilt_tools=false")
do_mesoninstall global -Dhave_mingw_pthreads=true -Dtest=false "${extracommands[@]}"
do_checkIfExist
fi Regarding bmx, may it be suitable to build https://github.com/uriparser/uriparser from sources? |
Created VideoLAN/librist issue 175 |
The linker error does not seem related with librist. mbedcrypto should mention the bcrypt dependency somewhere. |
Then maybe it's another issue of MSYS2 pkgconfig enumerating dependencies? |
mbedtls does not have pkgconfig file. The bcrypt dependency is mentioned in MbedTLSTargets.cmake file. You have to manually add bcrypt dependency in librist for static linking. Though I am not sure if upstream librist would add it or not. |
Upstream mbedtls has a new pull request to add pkgconfig file. We could wait for that one. |
I guess this should have happened in Mbed-TLS/mbedtls@0315123 so MSYS2 needs to deploy new packages? In my suite, no |
Thanks for the reminder. The pkgconfig file is not complete yet. The version and lib.private field are empty and we need the later one for bcrypt. I shall try to figure something out. |
@Biswa96 - read your commit comment but it seems not to be available yet, compilation still misses BCryptGenRandom in MinGW64. Will try again now and then ... |
I have tired with a sample tool in librist using |
Still no news... |
The linking command does not have Though, the output is correct from pkgconf.
|
Tail of ffmpeg-git/build-static-32bit/ffbuild/config.log
libcjson exists in msys64/mingw64/lib but not in msys64/mingw32/lib
The text was updated successfully, but these errors were encountered: