Skip to content
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

Can not cross compile for Windows under Linux #21

Open
ghost opened this issue Jul 30, 2021 · 0 comments
Open

Can not cross compile for Windows under Linux #21

ghost opened this issue Jul 30, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 30, 2021

When attempting to cross compile this crate for Windows under Linux using the build feature, the configure script reports:

  configure: Unknown OS 'windows'.

  If you think configure made a mistake, make sure you are using the latest
  version from Git.  If the latest version fails, report the problem to the
  [email protected] mailing list or IRC #ffmpeg on irc.libera.chat.
  Include the log file "ffbuild/config.log" produced by configure as this will help
  solve the problem.

I believe this happens because the build script sets the configure argument target_os to the value of CARGO_CFG_TARGET_OS, which Cargo sets as windows, a value the configure does not expect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants