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

error when building curl #664

Closed james28909 closed 10 months ago

james28909 commented 1 year ago

everything was going great until i got to building curl! not to sure what to do to mitigate this particular issue. please advise

curl_log.txt

p.s. am building with wsl2 20.04

edit: there is another error earlier in the build process that i also enountered from the last time i used this script. the error is in libtiff iirc, and the fix involves renaming a command in tiff's configure script. i think the command is mv and it needs to be cp as referenced here: Github - libtiff. but this looks like it could be a wsl error but i am not certain.

rdp commented 1 year ago

Do you have anything funky on your path like mingw or wine? ref: https://github.com/aseprite/aseprite/issues/2017

james28909 commented 1 year ago

@rdp just to remind you i am building in wsl2 on latest 22h2 windows 11. i do have mingw on windows itself, but it doesnt have any environment variables set, the mingw compiler on my windows environment sets its own environment when i execute the batch file which sets any environment variables it needs per session. so, there is no system or environment variables on my windows machine itself...

with that said, my wsl does not have mingw or wine installed as far as i can tell. doing a sudo apt list --install | grep "^m" or sudo apt list --install "^w" does not return anything related to mingw or wine.

the rest of it builds fine though, just when i get to curl it detonates lol

rdp commented 1 year ago

OK I bumped curl try it again?

On Sun, Dec 11, 2022 at 8:13 AM james28909 @.***> wrote:

@rdp https://github.com/rdp just to remind you i am building in wsl2 on latest 22h2 windows 11. i do have mingw on windows itself, but it doesnt have any environment variables set, the mingw compiler on my windows environment sets its own environment when i execute the batch file which sets any environment variables it needs per session. so there is no system or environment variables on my windows machine itself...

with that said, my wsl does not have mingw or wine installed as far as i can tell. doing a sudo apt list --install | grep "^w" or sudo apt list --install "^w" does not return any thing related to mingw or wine.

the rest of it builds fine though, just when i get to curl it detonates lol

— Reply to this email directly, view it on GitHub https://github.com/rdp/ffmpeg-windows-build-helpers/issues/664#issuecomment-1345580154, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADBUGICZU362UH7MU26LTWMXVTJANCNFSM6AAAAAASW4FZ4U . You are receiving this because you were mentioned.Message ID: @.***>

james28909 commented 1 year ago

failed configure:

...
...
checking dependency style of i686-w64-mingw32-gcc... gcc3
checking curl version... 7.86.0
configure: error: select TLS backend(s) or disable TLS with --without-ssl.

Select from these:

  --with-amissl
  --with-bearssl
  --with-gnutls
  --with-mbedtls
  --with-nss
  --with-openssl (also works for BoringSSL and libressl)
  --with-rustls
  --with-schannel
  --with-secure-transport
  --with-wolfssl

failed configure curl-7.86.0

should i try to build and install openssl from source using the paths for the cross compiler? or could i simply add --with-openssl to the script when it invokes curl configuration? please advise and thanks for taking the time to help!

rdp commented 1 year ago

that's odd thought I made it past that, pull and try again...

james28909 commented 1 year ago

i am pretty sure it made it past that. will let you know for sure later this evening.

rdp commented 10 months ago

Seemed OK just now, feel free to reopen if not so, thank you for the report!