I have noticed that there are few users here that use DOTNET.
I am getting an ERROR during compiling of N_m3u8DL-RE,
but its at random times and on random machines.
Code:user@debian12:~/git/N_m3u8DL-RE$ dotnet publish src/N_m3u8DL-RE -r linux-x64 -c Release -o artifact Determining projects to restore... Restored /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj (in 311 ms). Restored /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/N_m3u8DL-RE.Common.csproj (in 308 ms). Restored /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj (in 308 ms). /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/Log/CustomAnsiConsole.cs(18,26): warning CS8765: Nullability of type of parameter 'value' doesn't match overridden member (possibly because of nullability attributes). [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/N_m3u8DL-RE.Common.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/Entity/MediaSegment.cs(22,23): warning CS8618: Non-nullable property 'Url' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/N_m3u8DL-RE.Common.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/Util/GlobalUtil.cs(77,72): warning CS8604: Possible null reference argument for parameter 'path1' in 'string Path.Combine(string path1, string path2)'. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/N_m3u8DL-RE.Common.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/Entity/Playlist.cs(13,23): warning CS8618: Non-nullable property 'Url' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/N_m3u8DL-RE.Common.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/Entity/StreamSpec.cs(54,23): warning CS8618: Non-nullable property 'Url' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/N_m3u8DL-RE.Common.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/Entity/StreamSpec.cs(59,23): warning CS8618: Non-nullable property 'OriginalUrl' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/N_m3u8DL-RE.Common.csproj] N_m3u8DL-RE.Common -> /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/bin/Release/net7.0/N_m3u8DL-RE.Common.dll /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Mp4/MP4Parser.cs(12,26): warning CS8618: Non-nullable property 'Parser' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Mp4/MP4Parser.cs(17,30): warning CS8618: Non-nullable property 'Reader' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Mp4/MP4TtmlUtil.cs(10,23): warning CS8618: Non-nullable property 'Begin' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Mp4/MP4TtmlUtil.cs(11,23): warning CS8618: Non-nullable property 'End' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Mp4/MP4TtmlUtil.cs(12,23): warning CS8618: Non-nullable property 'Region' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs(29,17): warning CS8618: Non-nullable property 'ParserConfig' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Config/ParserConfig.cs(10,23): warning CS8618: Non-nullable property 'Url' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Config/ParserConfig.cs(12,23): warning CS8618: Non-nullable property 'OriginalUrl' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Config/ParserConfig.cs(14,23): warning CS8618: Non-nullable property 'BaseUrl' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Extractor/LiveTSExtractor.cs(19,45): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Extractor/LiveTSExtractor.cs(33,27): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Extractor/LiveTSExtractor.cs(38,27): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/StreamExtractor.cs(23,16): warning CS8618: Non-nullable field 'extractor' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/StreamExtractor.cs(23,16): warning CS8618: Non-nullable field 'rawText' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/StreamExtractor.cs(28,16): warning CS8618: Non-nullable field 'extractor' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/StreamExtractor.cs(28,16): warning CS8618: Non-nullable field 'rawText' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Mp4/MP4Parser.cs(132,40): warning CS8600: Converting null literal or possible null value to non-nullable type. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Mp4/MP4Parser.cs(133,55): warning CS8600: Converting null literal or possible null value to non-nullable type. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Mp4/MSSMoovProcessor.cs(68,16): warning CS8618: Non-nullable field 'ProtecitonKID' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Mp4/MSSMoovProcessor.cs(68,16): warning CS8618: Non-nullable field 'ProtecitonKID_PR' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Mp4/MP4TtmlUtil.cs(145,21): warning CS0219: The variable 'sawMDAT' is assigned but its value is never used [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs(86,46): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Extractor/MSSExtractor.cs(55,45): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Extractor/MSSExtractor.cs(320,28): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs(220,38): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs(69,45): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs(582,28): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/N_m3u8DL-RE.Parser.csproj] N_m3u8DL-RE.Parser -> /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Parser/bin/Release/net7.0/N_m3u8DL-RE.Parser.dll /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/CommandLine/MyOption.cs(247,27): warning CS8618: Non-nullable property 'MuxOptions' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/DownloadManager/HTTPLiveRecordManager.cs(87,13): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/DownloadManager/HTTPLiveRecordManager.cs(89,13): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/Program.cs(81,13): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/Program.cs(308,42): warning CS8602: Dereference of a possibly null reference. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj] N_m3u8DL-RE -> /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/bin/Release/net8.0/linux-x64/N_m3u8DL-RE.dll /home/user/.nuget/packages/microsoft.net.illink.tasks/8.0.6/build/Microsoft.NET.ILLink.targets(210,5): warning : Property 'TrimmerDefaultAction' is deprecated in .NET 7 and higher and will be ignored. Use TrimMode instead. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj] Generating native code /home/user/.nuget/packages/nil.js/2.5.1600/lib/net6.0/NiL.JS.dll : warning IL2104: Assembly 'NiL.JS' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj] /home/user/.nuget/packages/nil.js/2.5.1600/lib/net6.0/NiL.JS.dll : warning IL3053: Assembly 'NiL.JS' produced AOT analysis warnings. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj] /home/user/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/8.0.6/framework/System.Linq.Expressions.dll : warning IL3053: Assembly 'System.Linq.Expressions' produced AOT analysis warnings. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj] /home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE.Common/bin/Release/net7.0/N_m3u8DL-RE.Common.dll : warning IL3053: Assembly 'N_m3u8DL-RE.Common' produced AOT analysis warnings. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj] /home/user/.nuget/packages/spectre.console/0.47.1-preview.0.11/lib/net7.0/Spectre.Console.dll : warning IL2104: Assembly 'Spectre.Console' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj] Killed /home/user/.nuget/packages/microsoft.dotnet.ilcompiler/8.0.6/build/Microsoft.NETCore.Native.targets(308,5): error MSB3073: The command ""/home/user/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/8.0.6/tools/ilc" @"obj/Release/net8.0/linux-x64/native/N_m3u8DL-RE.ilc.rsp"" exited with code 137. [/home/user/git/N_m3u8DL-RE/src/N_m3u8DL-RE/N_m3u8DL-RE.csproj]
Here is what does work sometimes and sometimes does not for strange reason...
#Install .NET
Code:sudo apt install -y libicu-dev libcurl4-openssl-dev zlib1g-dev libkrb5-devCode:curl -kL https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -o ~/Downloads/packages-microsoft-prod.deb sudo dpkg -i ~/Downloads/packages-microsoft-prod.deb rm ~/Downloads/packages-microsoft-prod.deb sudo apt update; sudo apt install -y dotnet-sdk-8.0Code:cd ~/git git clone https://github.com/nilaoda/N_m3u8DL-RE.git cd N_m3u8DL-RE
#Compiling
The log of successful compile is here:Code:dotnet publish src/N_m3u8DL-RE -r linux-x64 -c Release -o artifact
https://forum.videohelp.com/attachments/79738-1717775229/N_m3u8DL-RE.log
I have also tried this:
And the log is here (17M in ZIP file):Code:dotnet publish src/N_m3u8DL-RE -r linux-x64 -c Release -o artifact -v:diag > N_m3u8DL-RE-publish-dump.log
https://forum.videohelp.com/attachments/80489-1720370101/N_m3u8DL-RE-publish-dump.zip
I have tried numerous times the following and again and again,
but without result:
Code:rm -r ~/.nuget/ rm -r ~/.dotnet/ rm -r ~/.local/share/NuGet/ rm -r ~/git/N_m3u8DL-RE/
Also tried my favorite "search" enginge, but did not find anything meaningful
to explain what this error is about ....
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
found this - [Linux] Compiling N_m3u8DL-RE with DOTNET
The N_m3u8DL-RE project is a .NET-based application, and to compile it on a Linux system, you’ll need to follow these steps:
Install .NET on Linux: You can install .NET on your Linux system using a package manager, a snap package, or manually. You can refer to the official .NET documentation for more information on how to install .NET on your Linux distribution.
Clone the N_m3u8DL-RE repository: Clone the N_m3u8DL-RE repository from GitHub using the command git clone https://github.com/nilaoda/N_m3u8DL-CLI.git.
Open the project in Visual Studio: Open the cloned repository in Visual Studio, and make sure you have the .NET Core SDK installed.
Build the project: Build the project by running the command dotnet build in the terminal.
Publish the project: To publish the project for Linux, you can use the following command: dotnet publish **path to your solution** --configuration Release --framework netcoreapp3.0 --output .**output path** --self-contained false --runtime linux-x64 --verbosity quiet.
Note that the --runtime option specifies the target runtime for the published application, which in this case is linux-x64. You can adjust this option to target a different runtime if needed.
By following these steps, you should be able to compile and publish the N_m3u8DL-RE project for Linux using DOTNET.
Similar Threads
-
N_m3u8DL-RE on Mac
By phineferb98 in forum Video Streaming DownloadingReplies: 17Last Post: 15th Jun 2024, 02:37 -
Compiling N_m3u8DL-RE for jailbroken iPhone
By stupid.345 in forum Video Streaming DownloadingReplies: 2Last Post: 13th Apr 2024, 13:25 -
Help me, where did i go wrong using N_m3u8DL-RE
By Ganteng in forum Video Streaming DownloadingReplies: 13Last Post: 2nd Apr 2024, 14:53 -
Need help me getting the N_m3u8DL-RE
By mrsimple8x in forum Video Streaming DownloadingReplies: 2Last Post: 19th Dec 2023, 07:29 -
[LINUX] can ffmpeg (or any othe linux command) genere an ANIMATED waveform
By Jintor_Universe in forum ProgrammingReplies: 5Last Post: 28th Oct 2021, 19:29