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

unable to build on windows #2

Open
n00kii opened this issue Nov 5, 2022 · 3 comments
Open

unable to build on windows #2

n00kii opened this issue Nov 5, 2022 · 3 comments

Comments

@n00kii
Copy link

n00kii commented Nov 5, 2022

after following steps in README.md, arrived at this error when trying to build

error: linking with `rust-lld.exe` failed: exit code: 1

...
/* omitted long list of paths */
...

  = note: rust-lld: error: undefined symbol: IID_ICodecAPI
          >>> referenced by C:\Users\Moruph\vcpkg\buildtrees\ffmpeg\src\n4.4.1-9dd22c1484.clean\libavcodec\mfenc.c:1068
          >>>               avcodec.lib(mfenc.o):(mf_init)

          rust-lld: error: undefined symbol: IID_IMFMediaEventGenerator
          >>> referenced by C:\Users\Moruph\vcpkg\buildtrees\ffmpeg\src\n4.4.1-9dd22c1484.clean\libavcodec\mfenc.c:996
          >>>               avcodec.lib(mfenc.o):(mf_unlock_async)

          rust-lld: error: undefined symbol: IID_IMFTransform
          >>> referenced by C:\Users\Moruph\vcpkg\buildtrees\ffmpeg\src\n4.4.1-9dd22c1484.clean\libavcodec\mf_utils.c:633
          >>>               avcodec.lib(mf_utils.o):($LN56)


warning: `small-player` (bin "small-player") generated 22 warnings
error: could not compile `small-player` due to previous error; 22 warnings emitted
@imxood
Copy link
Owner

imxood commented Nov 6, 2022

Hi, you can get the lastest code, try again~ it should is ok.

@n00kii
Copy link
Author

n00kii commented Nov 16, 2022

it works now but i have to change the fonts

2022-11-16T03:14:37.084552Z  INFO small_player::resources::fonts: FontFamily::Proportional:
2022-11-16T03:14:37.084656Z  INFO small_player::resources::fonts:       chinese
thread 'main' panicked at 'Failed to find replacement characters '◻' or '?'', C:\Users\Moruph\.cargo\registry\src\github.com-1ecc6299db9ec823\epaint-0.19.0\src\text\font.rs:258:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2022-11-16T03:14:37.100038Z  INFO small_player::services::player::player: Player Dropped
error: process didn't exit successfully: `target\debug\small-player.exe` (exit code: 101)

@imxood
Copy link
Owner

imxood commented Nov 16, 2022

it works now but i have to change the fonts

2022-11-16T03:14:37.084552Z  INFO small_player::resources::fonts: FontFamily::Proportional:
2022-11-16T03:14:37.084656Z  INFO small_player::resources::fonts:       chinese
thread 'main' panicked at 'Failed to find replacement characters '◻' or '?'', C:\Users\Moruph\.cargo\registry\src\github.com-1ecc6299db9ec823\epaint-0.19.0\src\text\font.rs:258:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2022-11-16T03:14:37.100038Z  INFO small_player::services::player::player: Player Dropped
error: process didn't exit successfully: `target\debug\small-player.exe` (exit code: 101)

Can you show your code?

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

2 participants