alexmercerind / dart_vlc

Flutter bindings to libVLC.
GNU Lesser General Public License v2.1
510 stars 136 forks source link

Missing file “../include/vlcpp/vlc.hpp”: No such file or directory #13

Closed yiky84119 closed 3 years ago

yiky84119 commented 3 years ago

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: 命令“setlocal [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: cd C:\Git\dasi-spd\windows\flutter\ephemeral.plugin_symlinks\dart_vlc\windows\bin [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: C: [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E tar xzf "C:/Git/dasi-spd/windows/flutter/ephemeral/.plugin_symlinks/dart_vlc/windows/bin/vlc-3.0.9.2.7z" [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E tar xzf "C:/Git/dasi-spd/windows/flutter/ephemeral/.plugin_symlinks/dart_vlc/windows/bin/libvlcpp.zip" [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E copy_directory C:/Git/dasi-spd/windows/flutter/ephemeral/.plugin_symlinks/dart_vlc/windows/bin/vlc-3.0.9.2/sdk/include/vlc C:/Git/dasi-spd/windows/flutter/ephemeral/.plugin_symlinks/dart_vlc/windows/include/vlc [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E copy_directory C:/Git/dasi-spd/windows/flutter/ephemeral/.plugin_symlinks/dart_vlc/windows/bin/libvlcpp-master/vlcpp C:/Git/dasi-spd/windows/flutter/ephemeral/.plugin_symlinks/dart_vlc/windows/include/vlcpp [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: :cmEnd [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: :cmErrorLevel [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: exit /b %1 [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: :cmDone [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(143,5): error MSB3073: :VCEnd”已退出,代码为 1。 [C:\Git\dasi-spd\build\windows\plugins\dart_vlc\LIBVLC_EXTRACT.vcxproj] Exception: Build process failed.

alexmercerind commented 3 years ago

Please try to clean & rebuild (Delete bin folder inside windows directory of plugin). Possibly your internet went out while fetching dependencies (thus, zip is corrupt).

Also, this is isn't the complete log.

I have myself confirmed successful builds on both Windows & Linux.

yiky84119 commented 3 years ago

严重性 代码 说明 项目 文件 行 禁止显示状态 错误(活动) E0276 后面有“::”的名称一定是类名或命名空间名 dart_vlc_plugin C:\Git\dasi-spd\windows\flutter\ephemeral.plugin_symlinks\dart_vlc\dartvlc\internal\internal.hpp 16
错误(活动) E0276 后面有“::”的名称一定是类名或命名空间名 dart_vlc_plugin C:\Git\dasi-spd\windows\flutter\ephemeral.plugin_symlinks\dart_vlc\dartvlc\internal\internal.hpp 17
错误(活动) E0276 后面有“::”的名称一定是类名或命名空间名 dart_vlc_plugin C:\Git\dasi-spd\windows\flutter\ephemeral.plugin_symlinks\dart_vlc\dartvlc\internal\internal.hpp 18
错误(活动) E0276 后面有“::”的名称一定是类名或命名空间名 dart_vlc_plugin C:\Git\dasi-spd\windows\flutter\ephemeral.plugin_symlinks\dart_vlc\dartvlc\internal\internal.hpp 19
错误(活动) E1696 无法打开 源 文件 "../include/vlcpp/vlc.hpp" dart_vlc_plugin C:\Git\dasi-spd\windows\flutter\ephemeral.plugin_symlinks\dart_vlc\dartvlc\internal\internal.hpp 11
错误(活动) E1696 无法打开 源 文件 "vlcpp/vlc.hpp" dart_vlc_plugin C:\Git\dasi-spd\windows\flutter\ephemeral.plugin_symlinks\dart_vlc\dartvlc\device.hpp 14
错误(活动) E1696 无法打开 源 文件 "vlcpp/vlc.hpp" dart_vlc_plugin C:\Git\dasi-spd\windows\flutter\ephemeral.plugin_symlinks\dart_vlc\dartvlc\mediasource\media.hpp 16
错误 C1083 无法打开包括文件: “../include/vlcpp/vlc.hpp”: No such file or directory dart_vlc_plugin C:\Git\dasi-spd\windows\flutter\ephemeral.plugin_symlinks\dart_vlc\dartvlc\internal\internal.hpp 11

alexmercerind commented 3 years ago

This means that header files couldn't be extracted from downloaded ZIP (because it is corrupt). Please, clean the project.

yiky84119 commented 3 years ago

已启动生成… 1>------ 已启动生成: 项目: ZERO_CHECK, 配置: Debug x64 ------ 1>Checking Build System 2>------ 已启动生成: 项目: flutter_assemble, 配置: Debug x64 ------ 2>Generating C:/Git/dasi-spd/windows/flutter/ephemeral/flutter_windows.dll, C:/Git/dasi-spd/windows/flutter/ephemeral/flutter_export.h, C:/Git/dasi-spd/windows/flutter/ephemeral/flutter_windows.h, C:/Git/dasi-spd/windows/flutter/ephemeral/flutter_messenger.h, C:/Git/dasi-spd/windows/flutter/ephemeral/flutter_plugin_registrar.h, C:/Git/dasi-spd/windows/flutter/ephemeral/cpp_client_wrapper/core_implementations.cc, C:/Git/dasi-spd/windows/flutter/ephemeral/cpp_client_wrapper/standard_codec.cc, C:/Git/dasi-spd/windows/flutter/ephemeral/cpp_client_wrapper/plugin_registrar.cc, C:/Git/dasi-spd/windows/flutter/ephemeral/cpp_client_wrapper/flutter_engine.cc, C:/Git/dasi-spd/windows/flutter/ephemeral/cpp_client_wrapper/flutter_view_controller.cc, phony 2>Building Custom Rule C:/Git/dasi-spd/windows/flutter/CMakeLists.txt 3>------ 已启动生成: 项目: flutter_wrapper_plugin, 配置: Debug x64 ------ 4>------ 已启动生成: 项目: flutter_wrapper_app, 配置: Debug x64 ------ 3>Building Custom Rule C:/Git/dasi-spd/windows/flutter/CMakeLists.txt 4>Building Custom Rule C:/Git/dasi-spd/windows/flutter/CMakeLists.txt 3>core_implementations.cc 4>core_implementations.cc 4>standard_codec.cc 3>standard_codec.cc 4>flutter_engine.cc 3>plugin_registrar.cc 3>正在生成代码... 3>flutter_wrapper_plugin.vcxproj -> C:\Git\dasi-spd\build\windows\flutter\Debug\flutter_wrapper_plugin.lib 5>------ 已启动生成: 项目: bitsdojo_window_windows_plugin, 配置: Debug x64 ------ 6>------ 已启动生成: 项目: dart_vlc_plugin, 配置: Debug x64 ------ 7>------ 已启动生成: 项目: spd_utils_plugin, 配置: Debug x64 ------ 4>flutter_view_controller.cc 6>Building Custom Rule C:/Git/dasi-spd/windows/flutter/ephemeral/.plugin_symlinks/dart_vlc/windows/CMakeLists.txt 5>Building Custom Rule C:/Git/dasi-spd/windows/flutter/ephemeral/.plugin_symlinks/bitsdojo_window_windows/windows/CMakeLists.txt 5>bitsdojo_window.cpp 7>Building Custom Rule C:/Git/dasi-spd/windows/flutter/ephemeral/.plugin_symlinks/spd_utils/windows/CMakeLists.txt 5>bitsdojo_window_plugin.cpp 4>正在生成代码... 6>dart_vlc_plugin.cpp 6>C:\Git\dasi-spd\windows\flutter\ephemeral.plugin_symlinks\dart_vlc\dartvlc\internal\internal.hpp(11,10): fatal error C1083: 无法打开包括文件: “../include/vlcpp/vlc.hpp”: No such file or directory 6>已完成生成项目“dart_vlc_plugin.vcxproj”的操作 - 失败。 4>flutter_wrapper_app.vcxproj -> C:\Git\dasi-spd\build\windows\flutter\Debug\flutter_wrapper_app.lib 5>正在生成代码... 5>bitsdojo_window_windows_plugin.vcxproj -> C:\Git\dasi-spd\build\windows\plugins\bitsdojo_window_windows\Debug\bitsdojo_window_windows_plugin.lib 7>spd_utils.cpp 7>spd_utils_plugin.cpp 7>keyboard.cpp 7>正在生成代码... 7> 正在创建库 C:/Git/dasi-spd/build/windows/plugins/spd_utils/Debug/spd_utils_plugin.lib 和对象 C:/Git/dasi-spd/build/windows/plugins/spd_utils/Debug/spd_utils_plugin.exp 7>spd_utils_plugin.vcxproj -> C:\Git\dasi-spd\build\windows\plugins\spd_utils\Debug\spd_utils_plugin.dll 8>------ 已启动生成: 项目: dasispd, 配置: Debug x64 ------ 8>Building Custom Rule C:/Git/dasi-spd/windows/runner/CMakeLists.txt 8>flutter_window.cpp 8>main.cpp 8>run_loop.cpp 8>utils.cpp 8>win32_window.cpp 8>generated_plugin_registrant.cc 8>正在生成代码... 8>LINK : fatal error LNK1104: 无法打开文件“..\plugins\dart_vlc\Debug\dart_vlc_plugin.lib” 8>已完成生成项目“dasispd.vcxproj”的操作 - 失败。 ========== 生成: 成功 6 个,失败 2 个,最新 0 个,跳过 0 个 ==========

yiky84119 commented 3 years ago

LIBVLC_EXTRACT not complied

alexmercerind commented 3 years ago

Delete bin folder inside windows directory of plugin (dart_vlc)

yiky84119 commented 3 years ago

it's working now. Project can't download libvlcpp.zip from github in China. can you put all these in dart_vlc package ?

alexmercerind commented 3 years ago

This is environment setup related issue, I'll look forward to add it as a git submodule in future, keeping as it is for now. Glad your issue is resolved.

lycstar commented 3 years ago

I also encountered this problem,can solve this problem by setting http_proxy when running on terminal

alexmercerind commented 3 years ago

@lycstar , its not a problem with this plugin but with the GitHub not being accessible by CMake script.

lycstar commented 3 years ago

@alexmercerind I think so too. Thank you for this great plugin.

devNamanG commented 3 years ago

Hey, I am also encountering this same problem, can you please help me ?

YeFei572 commented 3 years ago

Please try to clean & rebuild (Delete bin folder inside windows directory of plugin). Possibly your internet went out while fetching dependencies (thus, zip is corrupt).

Also, this is isn't the complete log.

I have myself confirmed successful builds on both Windows & Linux.

How can I clean&rebuild in Linux platform?

I have removed all Linux folders and run flutter clean, but it's doesn't work.

could you help me? thx!

YeFei572 commented 3 years ago

This is my log:

keppel@keppel-E480 ~/w/f/g/new_happy_project> flutter run -d linux

Running "flutter pub get" in new_happy_project...                  764ms
Launching lib/main.dart on Linux in debug mode...
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/include/../include/vlcpp/common.hpp:31:10: fatal error: 'vlc/vlc.h' file not found
Building Linux application...                                           
Exception: Build process failed
alexmercerind commented 3 years ago

@YeFei572 could you please provide output of

flutter run -d "Linux" --verbose
YeFei572 commented 3 years ago
keppel@keppel-E480 ~/w/f/g/new_happy_project> flutter run -d "Linux" --verbose
[  +71 ms] executing: uname -m
[  +33 ms] Exit code 0 from: uname -m
[        ] x86_64
[   +7 ms] executing: [/usr/develop/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +4 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] b22742018b3edf16c6cadd7b76d9db5e7f9064b5
[        ] executing: [/usr/develop/flutter/] git tag --points-at b22742018b3edf16c6cadd7b76d9db5e7f9064b5
[  +15 ms] Exit code 0 from: git tag --points-at b22742018b3edf16c6cadd7b76d9db5e7f9064b5
[        ] 2.2.0
[   +6 ms] executing: [/usr/develop/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/usr/develop/flutter/] git ls-remote --get-url origin
[   +4 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +91 ms] executing: [/usr/develop/flutter/] git rev-parse --abbrev-ref HEAD
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +62 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +63 ms] executing: /home/keppel/Android/Sdk/platform-tools/adb devices -l
[  +17 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +67 ms] executing: /home/keppel/Android/Sdk/platform-tools/adb devices -l
[  +12 ms] Skipping pub get: version match.
[  +15 ms] Found plugin window_size at /usr/develop/flutter/.pub-cache/git/flutter-desktop-embedding-f2d8aa3820fb87316516670bf4d51a74de8ac0dd/plugins/window_size/
[  +20 ms] Found plugin dart_vlc at /usr/develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/dart_vlc-0.0.7/
[  +24 ms] Found plugin path_provider at /usr/develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/path_provider-2.0.1/
[   +3 ms] Found plugin path_provider_linux at /usr/develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/path_provider_linux-2.0.0/
[   +1 ms] Found plugin path_provider_macos at /usr/develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/path_provider_macos-2.0.0/
[   +3 ms] Found plugin path_provider_windows at /usr/develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/path_provider_windows-2.0.1/
[  +11 ms] Found plugin sqflite at /usr/develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/sqflite-2.0.0+3/
[  +90 ms] Found plugin window_size at /usr/develop/flutter/.pub-cache/git/flutter-desktop-embedding-f2d8aa3820fb87316516670bf4d51a74de8ac0dd/plugins/window_size/
[   +9 ms] Found plugin dart_vlc at /usr/develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/dart_vlc-0.0.7/
[  +13 ms] Found plugin path_provider at /usr/develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/path_provider-2.0.1/
[   +1 ms] Found plugin path_provider_linux at /usr/develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/path_provider_linux-2.0.0/
[        ] Found plugin path_provider_macos at /usr/develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/path_provider_macos-2.0.0/
[   +3 ms] Found plugin path_provider_windows at /usr/develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/path_provider_windows-2.0.1/
[   +4 ms] Found plugin sqflite at /usr/develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/sqflite-2.0.0+3/
[  +15 ms] Generating /home/keppel/workspace/flutter/githubDemo/new_happy_project/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +102 ms] Initializing file store
[  +11 ms] Skipping target: gen_localizations
[   +4 ms] complete
[   +4 ms] Launching lib/main.dart on Linux in debug mode...
[   +5 ms] /usr/develop/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /usr/develop/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot
--sdk-root /usr/develop/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names
--experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill /tmp/flutter_tools.KREUYR/flutter_tool.EUWMFO/app.dill --packages
/home/keppel/workspace/flutter/githubDemo/new_happy_project/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts
--track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/3c113a45063dc6628e68a4111abcacad.cache.dill.track.dill
--enable-experiment=alternative-invalidation-strategy
[  +29 ms] Building Linux application...
[  +34 ms] <- compile package:new_happy_project/main.dart
[   +2 ms] executing: [build/linux/x64/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_PLATFORM=linux-x64
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux
[  +15 ms] List of devices attached
[   +4 ms] List of devices attached
[ +147 ms] -- Configuring done
[  +44 ms] -- Generating done
[        ] -- Build files have been written to: /home/keppel/workspace/flutter/githubDemo/new_happy_project/build/linux/x64/debug
[   +5 ms] executing: ninja -C build/linux/x64/debug install
[   +9 ms] ninja: Entering directory `build/linux/x64/debug'
[  +24 ms] [1/10] Running utility command for LIBVLC_EXTRACT
[+4342 ms] [2/10] Generating /home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/libflutter_linux_gtk.so,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_engine.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_method_call.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_method_response.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_value.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/fl_view.h,
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_
[  +11 ms] [  +73 ms] executing: uname -m
[   +8 ms] [  +40 ms] Exit code 0 from: uname -m
[        ] [        ] x86_64
[        ] [   +6 ms] executing: [/usr/develop/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [   +4 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] b22742018b3edf16c6cadd7b76d9db5e7f9064b5
[        ] [        ] executing: [/usr/develop/flutter/] git tag --points-at b22742018b3edf16c6cadd7b76d9db5e7f9064b5
[        ] [  +14 ms] Exit code 0 from: git tag --points-at b22742018b3edf16c6cadd7b76d9db5e7f9064b5
[        ] [        ] 2.2.0
[        ] [   +5 ms] executing: [/usr/develop/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/usr/develop/flutter/] git ls-remote --get-url origin
[        ] [   +4 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +63 ms] executing: [/usr/develop/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +56 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [ +118 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [   +1 ms] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[        ] [  +39 ms] Initializing file store
[        ] [  +15 ms] Done initializing file store
[        ] [  +56 ms] Skipping target: gen_localizations
[        ] [+2012 ms] Skipping target: unpack_linux
[        ] [ +552 ms] Skipping target: kernel_snapshot
[        ] [ +381 ms] Skipping target: debug_bundle_linux-x64_assets
[        ] [        ] Persisting file store
[        ] [  +11 ms] Done persisting file store
[        ] [   +5 ms] build succeeded.
[        ] [  +10 ms] "flutter assemble" took 3,226ms.
[        ] [ +257 ms] ensureAnalyticsSent: 252ms
[        ] [   +1 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +109 ms] [3/9] Linking CXX shared library plugins/window_size/libwindow_size_plugin.so
[ +733 ms] [4/9] Building CXX object CMakeFiles/new_happy_project.dir/flutter/generated_plugin_registrant.cc.o
[  +69 ms] [5/9] Building CXX object CMakeFiles/new_happy_project.dir/my_application.cc.o
[ +450 ms] [6/9] Building CXX object plugins/dart_vlc/CMakeFiles/dart_vlc_plugin.dir/dart_vlc_plugin.cc.o
[        ] FAILED: plugins/dart_vlc/CMakeFiles/dart_vlc_plugin.dir/dart_vlc_plugin.cc.o 
[   +6 ms] /usr/bin/clang++  -DAPPLICATION_ID=\"com.example.new_happy_project\" -DFLUTTER_PLUGIN_IMPL -Ddart_vlc_plugin_EXPORTS
-I/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/dart_vlc_plugin
-I/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/INTERFACE
-I/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/include
-I/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral -isystem /usr/include/gtk-3.0 -isystem /usr/include/at-spi2-atk/2.0 -isystem
/usr/include/at-spi-2.0 -isystem /usr/include/dbus-1.0 -isystem /usr/lib/x86_64-linux-gnu/dbus-1.0/include -isystem /usr/include/gio-unix-2.0 -isystem
/usr/include/cairo -isystem /usr/include/pango-1.0 -isystem /usr/include/harfbuzz -isystem /usr/include/atk-1.0 -isystem /usr/include/pixman-1 -isystem
/usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/glib-2.0 -isystem
/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -fPIC -fvisibility=hidden   -Wall -Werror -pthread -std=gnu++17 -MD -MT
plugins/dart_vlc/CMakeFiles/dart_vlc_plugin.dir/dart_vlc_plugin.cc.o -MF plugins/dart_vlc/CMakeFiles/dart_vlc_plugin.dir/dart_vlc_plugin.cc.o.d -o
plugins/dart_vlc/CMakeFiles/dart_vlc_plugin.dir/dart_vlc_plugin.cc.o -c
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/dart_vlc_plugin.cc
[   +2 ms] In file included from
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/dart_vlc_plugin.cc:7:
[        ] In file included from
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/../dartvlc/main.cpp:13:
[        ] In file included from
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/../dartvlc/player.hpp:11:
[        ] In file included from
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/../dartvlc/internal/setters.hpp:11:
[        ] In file included from
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/../dartvlc/internal/events.hpp:11:
[        ] In file included from
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/../dartvlc/internal/getters.hpp:11:
[        ] In file included from
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/../dartvlc/internal/internal.hpp:11:
[        ] In file included from
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/include/../include/vlcpp/vlc.hpp:27:
[        ] In file included from
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/include/../include/vlcpp/Instance.hpp:28:
[        ]
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/include/../include/vlcpp/common.hpp:31:10: fatal
error: 'vlc/vlc.h' file not found
[   +3 ms] #include <vlc/vlc.h>
[        ]          ^~~~~~~~~~~
[        ] 1 error generated.
[        ] ninja: build stopped: subcommand failed.
[  +27 ms] Building Linux application... (completed in 6.0s)
[+5027 ms] Exception: Build process failed
[   +2 ms] "flutter run" took 11,675ms.
[   +5 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:663:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1043:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:196:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:284:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:232:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:91:3)
           <asynchronous suspension>

[ +104 ms] ensureAnalyticsSent: 103ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1
alexmercerind commented 3 years ago

@YeFei572 are you on ubuntu/debian?

then install

sudo apt install vlc libvlc-dev

windows version doesnt require additional setup like linux

YeFei572 commented 3 years ago
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/../dartvlc/internal/../mediasource/playlist.hpp:16:
[   +1 ms]
/home/keppel/workspace/flutter/githubDemo/new_happy_project/linux/flutter/ephemeral/.plugin_symlinks/dart_vlc/linux/../dartvlc/internal/../mediasource/media.hpp:13:10:
fatal error: 'filesystem' file not found
[   +2 ms] #include <filesystem>
[        ]          ^~~~~~~~~~~~
[        ] 1 error generated.
[        ] ninja: build stopped: subcommand failed.
[  +14 ms] Building Linux application... (completed in 5.8s)
[+3437 ms] Exception: Build process failed
[   +1 ms] "flutter run" took 9,703ms.
[   +5 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:663:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1043:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:196:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:284:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:232:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:91:3)
           <asynchronous suspension>

[  +96 ms] ensureAnalyticsSent: 95ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1
alexmercerind commented 3 years ago

@YeFei572 for some reason, your computer is unable to use c++ standard 17. I doubt you are on Ubuntu 16.04 or less.

FOR THE TEMPORARY FIX https://github.com/alexmercerind/dart_vlc/blob/493a55ae79fde30cacd08945ee79c7d94602a839/dartvlc/mediasource/media.hpp#L56

You can replace std::filesystem::temp_directory_path().u8string() with "/tmp/".

and remove the following line.

https://github.com/alexmercerind/dart_vlc/blob/493a55ae79fde30cacd08945ee79c7d94602a839/dartvlc/mediasource/media.hpp#L13

YeFei572 commented 3 years ago

@YeFei572 for some reason, your computer is unable to use c++ standard 17. I doubt you are on Ubuntu 16.04 or less.

FOR THE TEMPORARY FIX https://github.com/alexmercerind/dart_vlc/blob/493a55ae79fde30cacd08945ee79c7d94602a839/dartvlc/mediasource/media.hpp#L56

You can replace std::filesystem::temp_directory_path().u8string() with "/tmp".

image

I'm going test your method now

alexmercerind commented 3 years ago

@YeFei572 or you may try this: https://stackoverflow.com/questions/39231363/fatal-error-filesystem-no-such-file-or-directory.

For some reason, your c++ standard isn't 17.

YeFei572 commented 3 years ago

It's working! thank you so much!

I fix edit the file:

// #include <filesystem>
media->location = "file:///tmp/" + path;