atom0s / Steamless

Steamless is a DRM remover of the SteamStub variants. The goal of Steamless is to make a single solution for unpacking all Steam DRM-packed files. Steamless aims to support as many games as possible.
Other
3.28k stars 207 forks source link

Fails to build on Linux: Invalid accessor body `=>', expecting `;' or `{' #19

Closed pkillnine closed 5 years ago

pkillnine commented 5 years ago

Not sure if this tool supports Linux, but I'll post an issue anyway.

Attempted to build with Mono 4.4.1.0: Running xbuild fails with this output:

itsme@antelope /tmp/Steamless [env]$ xbuild
XBuild Engine Version 14.0
Mono, Version 4.4.1.0
Copyright (C) 2005-2013 Various Mono authors

Build started 08/05/2019 11:47:12.
__________________________________________________
Project "/tmp/Steamless/Steamless.sln" (default target(s)):
    Target ValidateSolutionConfiguration:
        Building solution configuration "Debug|x86".
    Target Build:
        Project "/tmp/Steamless/Steamless.API/Steamless.API.csproj" (default target(s)):
            Target PrepareForBuild:
                Configuration: Debug Platform: x86
                Created directory "../Steamless/bin/x86/Debug/Plugins/"
                Created directory "obj/x86/Debug/"
            Target ResolveAssemblyReferences:
/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'PresentationCore' not resolved
                For searchpath {CandidateAssemblyFiles}
                Warning: {CandidateAssemblyFiles} not supported currently
                For searchpath {HintPathFromItem}
                HintPath attribute not found
                For searchpath {TargetFrameworkDirectory}
                Considered target framework dir /gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api, assembly named 'PresentationCore' not found.
                Considered target framework dir /gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api/Facades/, assembly named 'PresentationCore' not found.
                For searchpath {PkgConfig}
                Considered PresentationCore, but could not find in any pkg-config files.
                For searchpath {GAC}
                Considered PresentationCore, but could not find in the GAC.
                For searchpath {RawFileName}
                Considered 'PresentationCore' as a file, but the file does not exist
                For searchpath ../Steamless/bin/x86/Debug/Plugins/
                Considered '/tmp/Steamless/Steamless/bin/x86/Debug/Plugins/PresentationCore' as a file, but the file does not exist
                Considered '/tmp/Steamless/Steamless/bin/x86/Debug/Plugins/PresentationCore.exe' as a file, but the file does not exist
                Considered '/tmp/Steamless/Steamless/bin/x86/Debug/Plugins/PresentationCore.dll' as a file, but the file does not exist
/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'PresentationFramework' not resolved
                For searchpath {CandidateAssemblyFiles}
                Warning: {CandidateAssemblyFiles} not supported currently
                For searchpath {HintPathFromItem}
                HintPath attribute not found
                For searchpath {TargetFrameworkDirectory}
                Considered target framework dir /gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api, assembly named 'PresentationFramework' not found.
                Considered target framework dir /gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api/Facades/, assembly named 'PresentationFramework' not found.
                For searchpath {PkgConfig}
                Considered PresentationFramework, but could not find in any pkg-config files.
                For searchpath {GAC}
                Considered PresentationFramework, but could not find in the GAC.
                For searchpath {RawFileName}
                Considered 'PresentationFramework' as a file, but the file does not exist
                For searchpath ../Steamless/bin/x86/Debug/Plugins/
                Considered '/tmp/Steamless/Steamless/bin/x86/Debug/Plugins/PresentationFramework' as a file, but the file does not exist
                Considered '/tmp/Steamless/Steamless/bin/x86/Debug/Plugins/PresentationFramework.exe' as a file, but the file does not exist
                Considered '/tmp/Steamless/Steamless/bin/x86/Debug/Plugins/PresentationFramework.dll' as a file, but the file does not exist
            Target GenerateSatelliteAssemblies:
            No input files were specified for target GenerateSatelliteAssemblies, skipping.
            Target CoreCompile:
                Tool /gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /out:obj/x86/Debug/Steamless.API.dll Crypto/AesHelper.cs Extensions/FileStreamExtensions.cs Model/NavigatedEventArgs.cs Model/NotifiableModel.cs Model/ViewModelBase.cs PE32/NativeApi32.cs PE32/Pe32File.cs PE32/Pe32Helpers.cs PE64/NativeApi64.cs PE64/Pe64File.cs PE64/Pe64Helpers.cs SteamlessEvents.cs Events/LogMessageEventArgs.cs Events/LogMessageType.cs Services/LoggingService.cs SteamlessApiVersionAttribute.cs Model/SteamlessOptions.cs Model/SteamlessPlugin.cs Properties/AssemblyInfo.cs obj/x86/Debug/.NETFramework,Version=v4.5.2.AssemblyAttribute.cs /target:library /define:"TRACE;DEBUG" /nostdlib /platform:x86 /reference:/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api/System.dll /reference:/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api/System.Xaml.dll /reference:/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api/System.Xml.Linq.dll /reference:/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api/System.Data.DataSetExtensions.dll /reference:/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api/Microsoft.CSharp.dll /reference:/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api/System.Data.dll /reference:/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api/System.Net.Http.dll /reference:/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api/System.Xml.dll /reference:/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api/WindowsBase.dll /reference:/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api/System.Core.dll /reference:/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/4.5-api/mscorlib.dll
Model/ViewModelBase.cs(73,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
Model/ViewModelBase.cs(74,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
Model/ViewModelBase.cs(82,17): error CS1055: An add or remove accessor expected
Model/ViewModelBase.cs(91,17): error CS1055: An add or remove accessor expected
Model/SteamlessOptions.cs(47,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
Model/SteamlessOptions.cs(48,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
Model/SteamlessOptions.cs(56,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
Model/SteamlessOptions.cs(57,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
Model/SteamlessOptions.cs(65,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
Model/SteamlessOptions.cs(66,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
Model/SteamlessOptions.cs(74,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
Model/SteamlessOptions.cs(75,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
Model/SteamlessOptions.cs(83,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
Model/SteamlessOptions.cs(84,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
            Task "Csc" execution -- FAILED
            Done building target "CoreCompile" in project "/tmp/Steamless/Steamless.API/Steamless.API.csproj".-- FAILED
        Done building project "/tmp/Steamless/Steamless.API/Steamless.API.csproj".-- FAILED
    Task "MSBuild" execution -- FAILED
    Done building target "Build" in project "/tmp/Steamless/Steamless.sln".-- FAILED
Done building project "/tmp/Steamless/Steamless.sln".-- FAILED

Build FAILED.

Warnings:

/tmp/Steamless/Steamless.sln (default targets) ->
(Build target) ->
/tmp/Steamless/Steamless.API/Steamless.API.csproj (default targets) ->
/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets (ResolveAssemblyReferences target) ->

    /gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'PresentationCore' not resolved
    /gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'PresentationFramework' not resolved

Errors:

/tmp/Steamless/Steamless.sln (default targets) ->
(Build target) ->
/tmp/Steamless/Steamless.API/Steamless.API.csproj (default targets) ->
/gnu/store/r4ipddqjd575sjm3azx6a2id12xva87a-mono-4.4.1.0/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets (CoreCompile target) ->

    Model/ViewModelBase.cs(73,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
    Model/ViewModelBase.cs(74,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
    Model/ViewModelBase.cs(82,17): error CS1055: An add or remove accessor expected
    Model/ViewModelBase.cs(91,17): error CS1055: An add or remove accessor expected
    Model/SteamlessOptions.cs(47,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
    Model/SteamlessOptions.cs(48,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
    Model/SteamlessOptions.cs(56,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
    Model/SteamlessOptions.cs(57,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
    Model/SteamlessOptions.cs(65,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
    Model/SteamlessOptions.cs(66,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
    Model/SteamlessOptions.cs(74,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
    Model/SteamlessOptions.cs(75,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
    Model/SteamlessOptions.cs(83,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'
    Model/SteamlessOptions.cs(84,16): error CS1043: Invalid accessor body `=>', expecting `;' or `{'

     2 Warning(s)
     14 Error(s)

Time Elapsed 00:00:00.6307230
atom0s commented 5 years ago

Linux is not something I support or focus on personally as I do not use it at all.

As for the errors though that you got, looks like either Mono is not targeting newer C# standard features due to the version you are building with, or they just don't support it at all in general. If Mono gives the option of what .NET framework to target/minic, you need to use 4.5.1/4.6. (Mainly needs to be able to support C# 7.0 features at least.)

For now I'll mark this as closed/wont fix though as the project doesn't really have any goal to support Linux.