membraneframework / membrane_ffmpeg_swresample_plugin

Plugin performing audio conversion, resampling and channel mixing, using SWResample module of FFmpeg library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to build on windows

mspanc opened this issue · comments

@mtsznowak I think there're still some missing dependencies

!!! BULDING BUNDLEX LIBRARY "MEMBRANE_ELEMENT_FFMPEG_SWRESAMPLE"
### TARGET PLATFORM
  - Building for platform windows32
### TOOLCHAIN
  - Trying to find Visual Studio in "c:\Program Files\Microsoft Visual Studio *"
...
  - Found Visual Studio in c:/Program Files/Microsoft Visual Studio 14.0
  - Adding call to "vcvarsall.bat x86"
### NIFS
  - Found Erlang include dir in c:/Program Files/erl8.3/erts-8.3/include
  - membrane_element_ffmpeg_swresample_converter
### BUILDING

c:\joint\src\backend\deps\membrane_element_ffmpeg_swresample>call "c:/Program Fi
les/Microsoft Visual Studio 14.0/VC/vcvarsall.bat" x86
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

converter.c
converter_lib.c
Generating Code...
Microsoft (R) Incremental Linker Version 14.00.24210.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:converter.dll
/dll
/implib:converter.lib
/OUT:priv\lib\membrane_element_ffmpeg_swresample_converter.dll
converter.obj
converter_lib.obj
ext/windows/32/avutil.lib
ext/windows/32/swresample.lib
   Creating library converter.lib and object converter.exp
  - Build script finished gracefully
### DONE
Compiling 3 files (.ex)

== Compilation error on file lib/membrane_element_ffmpeg_swresample/converter_na
tive.ex ==
** (MatchError) no match of right hand side value: {:error, :on_load_failure}
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6

could not compile dependency :membrane_element_ffmpeg_swresample, "mix compile"
failed. You can recompile this dependency with "mix deps.compile membrane_elemen
t_ffmpeg_swresample", update it with "mix deps.update membrane_element_ffmpeg_sw
resample" or clean it with "mix deps.clean membrane_element_ffmpeg_swresample"

10:53:14.237 [error] Process #PID<0.4060.0> raised an exception
** (MatchError) no match of right hand side value: {:error, {:load_failed, [70,
97, 105, 108, 101, 100, 32, 116, 111, 32, 108, 111, 97, 100, 32, 78, 73, 70, 32,
 108, 105, 98, 114, 97, 114, 121, 32, 46, 47, 112, 114, 105, 118, 47, 108, 105,
98, 47, 109, 101, 109, 98, 114, 97, 110, 101, 95, 101, ...]}}
    lib/membrane_element_ffmpeg_swresample/converter_native.ex:8: Membrane.Eleme
nt.FFmpeg.SWResample.ConverterNative.load_nifs/0
    (kernel) code_server.erl:1347: anonymous fn/1 in :code_server.handle_on_load
/5

10:53:14.237 [warn]  The on_load function for module Elixir.Membrane.Element.FFm
peg.SWResample.ConverterNative returned {{:badmatch, {:error, {:load_failed, [70
, 97, 105, 108, 101, 100, ...]}}},
 [{Membrane.Element.FFmpeg.SWResample.ConverterNative, :load_nifs, 0,
   [file: 'lib/membrane_element_ffmpeg_swresample/converter_native.ex',
    line: 8]},
  {:code_server, :"-handle_on_load/5-fun-0-", 1,
   [file: 'code_server.erl', line: 1347]}]}

NMAKE : fatal error U1077: 'C:\ProgramData\chocolatey\lib\Elixir/bin\mix.BAT' :
return code '0x1'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
C:\joint>