Skip to content

http_proxy required #1144

Description

@ziyouchutuwenwu

when compile, membrane always failed to access files from github, i have set proxy envs
would you please make http_proxy or HTTP_PROXY support for bundlex?

thanks!


deps

defp deps do
    [
      {:membrane_core, "~> 1.3.3"},
      {:membrane_camera_capture_plugin, "~> 0.7.5"},
      {:membrane_ffmpeg_swscale_plugin, "~> 0.16.0"},
      {:membrane_yolo_plugin, "~> 0.1.1"},
      {:membrane_sdl_plugin, "~> 0.18.0"}
    ]
  end

compile

mmc at p53 in ~/projects/elixir/demo
$ pon

mmc at p53 in ~/projects/elixir/demo
$ which pon
pon () {
	export HTTP_PROXY=http://127.0.0.1:8118
	export HTTPS_PROXY=http://127.0.0.1:8118
	export ALL_PROXY=socks5://127.0.0.1:1080
	export NO_PROXY=localhost,127.0.0.1,10.0.2.1
	export http_proxy=$HTTP_PROXY
	export https_proxy=$HTTPS_PROXY
	export all_proxy=$ALL_PROXY
	export no_proxy=$NO_PROXY
}

mmc at p53 in ~/projects/elixir/demo
$ mix deps.get
Resolving Hex dependencies...
Resolution completed in 2.894s
New:
  bunch 1.6.1
  bunch_native 0.5.1
  bundlex 1.5.7
  cc_precompiler 0.1.11
  coerce 1.0.2
  complex 0.7.0
  elixir_make 0.10.0
  elixir_uuid 1.2.1
  finch 0.22.0
  hpax 1.0.3
  image 0.54.4
  jason 1.4.5
  membrane_camera_capture_plugin 0.7.5
  membrane_common_c 0.16.0
  membrane_core 1.3.3
  membrane_ffmpeg_swscale_plugin 0.16.4
  membrane_precompiled_dependency_provider 0.2.2
  membrane_raw_video_format 0.4.4
  membrane_sdl_plugin 0.18.7
  membrane_yolo_plugin 0.1.1
  mime 2.0.7
  mint 1.9.0
  nimble_options 1.1.1
  nimble_pool 1.1.0
  numbers 5.2.5
  nx 0.12.1
  ortex 0.1.10
  phoenix_html 4.3.0
  qex 0.5.2
  ratio 4.0.1
  req 0.5.18
  rustler 0.38.0
  shmex 0.5.1
  sweet_xml 0.7.5
  telemetry 1.4.2
  unifex 1.2.2
  vix 0.38.0
  yolo 0.2.0
  zarex 1.0.6
* Getting membrane_core (Hex package)
* Getting membrane_camera_capture_plugin (Hex package)
* Getting membrane_ffmpeg_swscale_plugin (Hex package)
* Getting membrane_yolo_plugin (Hex package)
* Getting membrane_sdl_plugin (Hex package)
* Getting bundlex (Hex package)
* Getting membrane_common_c (Hex package)
* Getting membrane_precompiled_dependency_provider (Hex package)
* Getting membrane_raw_video_format (Hex package)
* Getting shmex (Hex package)
* Getting unifex (Hex package)
* Getting bunch (Hex package)
* Getting bunch_native (Hex package)
* Getting elixir_uuid (Hex package)
* Getting qex (Hex package)
* Getting req (Hex package)
* Getting zarex (Hex package)
* Getting finch (Hex package)
* Getting jason (Hex package)
* Getting mime (Hex package)
* Getting mint (Hex package)
* Getting nimble_options (Hex package)
* Getting nimble_pool (Hex package)
* Getting telemetry (Hex package)
* Getting hpax (Hex package)
* Getting image (Hex package)
* Getting yolo (Hex package)
* Getting nx (Hex package)
* Getting ortex (Hex package)
* Getting rustler (Hex package)
* Getting complex (Hex package)
* Getting phoenix_html (Hex package)
* Getting sweet_xml (Hex package)
* Getting vix (Hex package)
* Getting cc_precompiler (Hex package)
* Getting elixir_make (Hex package)
* Getting ratio (Hex package)
* Getting numbers (Hex package)
* Getting coerce (Hex package)

mmc at p53 in ~/projects/elixir/demo
$ iex -S mix
Erlang/OTP 28 [erts-16.1.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns]

==> mime
Compiling 1 file (.ex)
Generated mime app

.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................
.........................

==> membrane_camera_capture_plugin
Bundlex: Building natives: camera_capture

20:27:02.865 [warning] retry: got exception, will retry in 1000ms, 3 attempts left

20:27:02.873 [warning] ** (Req.TransportError) timeout

20:27:08.876 [warning] retry: got exception, will retry in 2000ms, 2 attempts left

20:27:08.876 [warning] ** (Req.TransportError) timeout

20:27:15.878 [warning] retry: got exception, will retry in 4000ms, 1 attempt left

20:27:15.878 [warning] ** (Req.TransportError) timeout
warning: Bundlex: Couldn't load OS dependency using {:precompiled, "https://github.com/membraneframework-precompiled/precompiled_ffmpeg/releases/download/v6.0.1/ffmpeg_linux64.tar.xz", ["libavformat", "libavutil", "libavdevice"]}

couldn't download and extract the precompiled dependency :ffmpeg due to:
	** (Req.TransportError) timeout


Loading using {:pkg_config, ["libavformat", "libavutil", "libavdevice"]}


/home/mmc/projects/elixir/demo/deps/membrane_camera_capture_plugin/c_src/membrane_camera_capture_plugin/camera_capture.c: In function 'do_open':
/home/mmc/projects/elixir/demo/deps/membrane_camera_capture_plugin/c_src/membrane_camera_capture_plugin/camera_capture.c:31:51: warning: passing argument 3 of 'avformat_open_input' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   31 |   if (avformat_open_input(&state->input_ctx, url, input_format, &options) < 0) {
      |                                                   ^~~~~~~~~~~~
In file included from /home/mmc/projects/elixir/demo/deps/membrane_camera_capture_plugin/c_src/membrane_camera_capture_plugin/./camera_capture.h:6,
                 from /home/mmc/projects/elixir/demo/deps/membrane_camera_capture_plugin/c_src/membrane_camera_capture_plugin/camera_capture.c:1:
/usr/include/libavformat/avformat.h:2226:90: note: expected 'AVInputFormat *' but argument is of type 'const AVInputFormat *'
 2226 | int avformat_open_input(AVFormatContext **ps, const char *url, ff_const59 AVInputFormat *fmt, AVDictionary **options);
      |                                                                           ~~~~~~~~~~~~~~~^~~
Compiling 2 files (.ex)
Generated membrane_camera_capture_plugin app
==> membrane_ffmpeg_swscale_plugin
Bundlex: Building natives: scaler, converter

20:27:30.370 [warning] retry: got exception, will retry in 1000ms, 3 attempts left

20:27:30.371 [warning] ** (Req.TransportError) timeout

20:27:36.375 [warning] retry: got exception, will retry in 2000ms, 2 attempts left

20:27:36.375 [warning] ** (Req.TransportError) timeout

20:27:43.379 [warning] retry: got exception, will retry in 4000ms, 1 attempt left

20:27:43.379 [warning] ** (Req.TransportError) timeout
warning: Bundlex: Couldn't load OS dependency using {:precompiled, "https://github.com/membraneframework-precompiled/precompiled_ffmpeg/releases/download/v6.0.1/ffmpeg_linux64.tar.xz", ["libswscale", "libavutil"]}

couldn't download and extract the precompiled dependency :ffmpeg due to:
	** (Req.TransportError) timeout


Loading using {:pkg_config, ["libswscale", "libavutil"]}



20:27:57.403 [warning] retry: got exception, will retry in 1000ms, 3 attempts left

20:27:57.403 [warning] ** (Req.TransportError) timeout

20:27:59.946 [debug] redirecting to https://release-assets.githubusercontent.com/github-production-release-asset/688460577/78615b0d-e8d2-4f59-a674-84bb8e4849dc?sp=r&sv=2018-11-09&sr=b&spr=https&se=2026-06-06T13%3A07%3A43Z&rscd=attachment%3B+filename%3Dffmpeg_linux64.tar.xz&rsct=application%2Foctet-stream&skoid=96c2d410-5711-43a1-aedd-ab1947aa7ab0&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skt=2026-06-06T12%3A06%3A46Z&ske=2026-06-06T13%3A07%3A43Z&sks=b&skv=2018-11-09&sig=NV%2F1mnizX8%2FTF7gtWtAhDZw71Ya4y1hQiPIR4mQRZQM%3D&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmVsZWFzZS1hc3NldHMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwia2V5Ijoia2V5MSIsImV4cCI6MTc4MDc1MjQ3OSwibmJmIjoxNzgwNzQ4ODc5LCJwYXRoIjoicmVsZWFzZWFzc2V0cHJvZHVjdGlvbi5ibG9iLmNvcmUud2luZG93cy5uZXQifQ.Pjdk_IWJ3SpWblcQl09qZLy4hzGNG_h5-7WwRb7jZJ8&response-content-disposition=attachment%3B%20filename%3Dffmpeg_linux64.tar.xz&response-content-type=application%2Foctet-stream

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions