Skip to content

Example build fail on windows (LNK2019 unresolved external symbol)  #75

Description

@niuhuan

I had vcpkg install ffmpeg --triplet=x64-windows-static-md

but building faild

[dependencies]
rusty_ffmpeg = "0.10.0" 

main.rs same as example

D:\\Developments\\Runtimes\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis"
  = note: avformat.lib(tls_schannel.o) : error LNK2019: ????????? AcquireCredentialsHandleA,?? tls_open ???????
          avformat.lib(tls_schannel.o) : error LNK2019: ????????? __imp_FreeCredentialsHandle,?? tls_close ???????
          avformat.lib(tls_schannel.o) : error LNK2019: ????????? InitializeSecurityContextA,?? tls_close ???????
          avformat.lib(tls_schannel.o) : error LNK2019: ????????? __imp_DeleteSecurityContext,?? tls_close ???????
          avformat.lib(tls_schannel.o) : error LNK2019: ????????? __imp_ApplyControlToken,?? tls_close ???????
          avformat.lib(tls_schannel.o) : error LNK2019: ????????? QueryContextAttributesA,?? tls_write ???????
          avformat.lib(tls_schannel.o) : error LNK2019: ????????? FreeContextBuffer,?? tls_close ???????
          avformat.lib(tls_schannel.o) : error LNK2019: ????????? EncryptMessage,?? tls_write ???????
          avformat.lib(tls_schannel.o) : error LNK2019: ????????? DecryptMessage,?? tls_read ???????
          avcodec.lib(mfenc.o) : error LNK2019: ????????? MFCreateMediaType,?? mf_choose_output_type ???????
          avcodec.lib(mfenc.o) : error LNK2001: ????????? IID_ICodecAPI
          avcodec.lib(mfenc.o) : error LNK2001: ????????? IID_IMFMediaEventGenerator
          avcodec.lib(mf_utils.o) : error LNK2019: ????????? __imp_CoUninitialize,?? ff_free_mf ???????
          avcodec.lib(mf_utils.o) : error LNK2019: ????????? __imp_CoInitializeEx,?? ff_instantiate_mf ???????
          avcodec.lib(mf_utils.o) : error LNK2019: ????????? __imp_CoTaskMemFree,?? ff_instantiate_mf ???????
          avcodec.lib(dxva2.o) : error LNK2001: ????????? __imp_CoTaskMemFree
          avcodec.lib(mf_utils.o) : error LNK2019: ????????? MFStartup,?? ff_instantiate_mf ???????
          avcodec.lib(mf_utils.o) : error LNK2019: ????????? MFShutdown,?? ff_free_mf ???????
          avcodec.lib(mf_utils.o) : error LNK2019: ????????? MFCreateAlignedMemoryBuffer,?? ff_create_memory_sample ???????
          avcodec.lib(mf_utils.o) : error LNK2019: ????????? MFCreateSample,?? ff_create_memory_sample ???????
          avcodec.lib(mf_utils.o) : error LNK2001: ????????? IID_IMFTransform
          avutil.lib(hwcontext_dxva2.o) : error LNK2019: ????????? __imp_GetDesktopWindow,?? dxva2_device_create ???????
          D:\Developments\Projects\study-rust\target\debug\deps\study_rust.exe : fatal error LNK1120: 21 ??????????

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions