Opened 4 years ago

Closed 4 years ago

#8658 closed defect (needs_more_info)

Problems with MSYS2 FFmpeg Environment Setup

Reported by: tbicim Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
When I run msys2_shell from the vs prompt cl and armasm points to correct locations however link doesn't.
How to reproduce:

open visual studio 2015 command prompt
run msys2_shell.bat to open msys command prompt
run which cl
run which link
run which armasm 

Result:

$ which cl
/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/x86_ARM/cl

$ which link
/usr/bin/link

$ which armasm
/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/x86_ARM/armasm

Change History (6)

comment:1 by Carl Eugen Hoyos, 4 years ago

Keywords: MSYS2 VS removed

Aren't you describing the issue you as user have to solve to be able to compile FFmpeg with msys or do I misunderstand?

in reply to:  1 comment:2 by tbicim, 4 years ago

Replying to cehoyos:

Aren't you describing the issue you as user have to solve to be able to compile FFmpeg with msys or do I misunderstand?

I followed the guide on the site and I am having problems build the system.
I thought someone else might have encountered the same issue so I posted here.

comment:3 by Carl Eugen Hoyos, 4 years ago

Isn’t it sufficient to mv /usr/bin/link /usr/bin/link.bak?
Personally, I strongly recommend to use wsl to build native Windows binaries.

comment:4 by Hendrik, 4 years ago

Thats why we have compat/windows/mslink in the tree, which gets automatically used when you specify --toolchain=msvc. Not sure what guide you are following, but using --toolchain instead of overriding CC/LD manually is quite recommended.

in reply to:  4 comment:5 by tbicim, 4 years ago

Replying to heleppkes:

Thats why we have compat/windows/mslink in the tree, which gets automatically used when you specify --toolchain=msvc. Not sure what guide you are following, but using --toolchain instead of overriding CC/LD manually is quite recommended.

I followed this guide:
https://trac.ffmpeg.org/wiki/CompilationGuide/WinRT

When I invoke the configure command I get the error: unknown option "--toolchain=msvc".

comment:6 by Carl Eugen Hoyos, 4 years ago

Component: build systemundetermined
Resolution: needs_more_info
Status: newclosed
Note: See TracTickets for help on using tickets.