Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SkiaSharp build on linux error #348

Closed
zhangevanone opened this issue Aug 1, 2017 · 7 comments
Closed

SkiaSharp build on linux error #348

zhangevanone opened this issue Aug 1, 2017 · 7 comments

Comments

@zhangevanone
Copy link

Hi dear,
When I running bootstrapper.sh -t anything going to MSBuild, I got follow errors. Anyone to help me?
Thanks!

NuGet Version: 4.1.0.2450
MSBuild auto-detection: using msbuild version '14.0' from '/usr/lib/mono/xbuild/14.0/bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
MSBuild P2P timeout [ms]: 120000
/usr/bin/xbuild /t:GenerateRestoreGraphFile /nologo /nr:false /p:RestoreUseCustomAfterTargets=true /p:BuildProjectReferences=false /v:q  /p:NuGetRestoreTargets="/tmp/NuGet-Scratch/zy0ly52m.o34.targets" /p:RestoreTaskAssemblyFile="/tmp/SkiaSharp/SkiaSharp/tools/nuget.exe" /p:RestoreGraphOutputPath="/tmp/NuGet-Scratch/5pxg7v36.0rd.result" /p:ExcludeRestorePackageImports=true  /p:RestoreRecursive=False  /p:RestoreProjectFilterMode=exclusionlist /p:RestoreContinueOnError=WarnAndContinue  /p:RestoreGraphProjectInput=\"/tmp/SkiaSharp/SkiaSharp/binding/Binding/Binding.shproj\;/tmp/SkiaSharp/SkiaSharp/binding/SkiaSharp.NetStandard/SkiaSharp.NetStandard.csproj\;/tmp/SkiaSharp/SkiaSharp/binding/Binding.Shared/Binding.Shared.shproj\;/tmp/SkiaSharp/SkiaSharp/binding/HarfBuzzSharp.Shared/HarfBuzzSharp.Shared.shproj\;/tmp/SkiaSharp/SkiaSharp/binding/HarfBuzzSharp.NetStandard/HarfBuzzSharp.NetStandard.csproj\;/tmp/SkiaSharp/SkiaSharp/source/SkiaSharp.HarfBuzz/SkiaSharp.HarfBuzz.Shared/SkiaSharp.HarfBuzz.Shared.shproj\;/tmp/SkiaSharp/SkiaSharp/source/SkiaSharp.HarfBuzz/SkiaSharp.HarfBuzz.NetStandard/SkiaSharp.HarfBuzz.NetStandard.csproj\;/tmp/SkiaSharp/SkiaSharp/source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.NetStandard/SkiaSharp.Views.Forms.NetStandard.csproj\;\" "/tmp/NuGet-Scratch/zy0ly52m.o34.targets"
NuGet.CommandLine.CommandLineException
  at NuGet.CommandLine.MsBuildUtility+<GetProjectReferencesAsync>d__5.MoveNext () [0x004d6] in <d0f788a4af354971807e5d8ca6fc682e>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 
  at NuGet.CommandLine.RestoreCommand+<GetDependencyGraphSpecAsync>d__43.MoveNext () [0x000f3] in <d0f788a4af354971807e5d8ca6fc682e>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 
  at NuGet.CommandLine.RestoreCommand+<DetermineInputsFromMSBuildAsync>d__38.MoveNext () [0x000c6] in <d0f788a4af354971807e5d8ca6fc682e>:0 
System.AggregateException: One or more errors occurred. ---> NuGet.CommandLine.CommandLineException
  at NuGet.CommandLine.MsBuildUtility+<GetProjectReferencesAsync>d__5.MoveNext () [0x004d6] in <d0f788a4af354971807e5d8ca6fc682e>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 
  at NuGet.CommandLine.RestoreCommand+<GetDependencyGraphSpecAsync>d__43.MoveNext () [0x000f3] in <d0f788a4af354971807e5d8ca6fc682e>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 
  at NuGet.CommandLine.RestoreCommand+<DetermineInputsFromMSBuildAsync>d__38.MoveNext () [0x001b7] in <d0f788a4af354971807e5d8ca6fc682e>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 
  at NuGet.CommandLine.RestoreCommand+<DetermineRestoreInputsAsync>d__37.MoveNext () [0x0012a] in <d0f788a4af354971807e5d8ca6fc682e>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 
  at NuGet.CommandLine.RestoreCommand+<ExecuteCommandAsync>d__30.MoveNext () [0x00136] in <d0f788a4af354971807e5d8ca6fc682e>:0 
   --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Threading.Tasks.Task.Wait () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 
  at NuGet.CommandLine.Command.Execute () [0x000bd] in <d0f788a4af354971807e5d8ca6fc682e>:0 
  at NuGet.CommandLine.Program.MainCore (System.String workingDirectory, System.String[] args) [0x001f3] in <d0f788a4af354971807e5d8ca6fc682e>:0 
---> (Inner Exception #0) NuGet.CommandLine.CommandLineException
  at NuGet.CommandLine.MsBuildUtility+<GetProjectReferencesAsync>d__5.MoveNext () [0x004d6] in <d0f788a4af354971807e5d8ca6fc682e>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 
  at NuGet.CommandLine.RestoreCommand+<GetDependencyGraphSpecAsync>d__43.MoveNext () [0x000f3] in <d0f788a4af354971807e5d8ca6fc682e>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 
  at NuGet.CommandLine.RestoreCommand+<DetermineInputsFromMSBuildAsync>d__38.MoveNext () [0x001b7] in <d0f788a4af354971807e5d8ca6fc682e>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 
  at NuGet.CommandLine.RestoreCommand+<DetermineRestoreInputsAsync>d__37.MoveNext () [0x0012a] in <d0f788a4af354971807e5d8ca6fc682e>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 
  at NuGet.CommandLine.RestoreCommand+<ExecuteCommandAsync>d__30.MoveNext () [0x00136] in <d0f788a4af354971807e5d8ca6fc682e>:0 <---

An error occurred when executing task 'libs'.
Error: NuGet: Process returned an error (exit code 1).

@mattleibow
Copy link
Contributor

The new build requirement is MSBuild 15.

If you are running a relatively new version of Linux, our native library may work for you:

In addition, you can also try out @kekekeks 's builds on NuGet:

@zhangevanone
Copy link
Author

My running environment: Ubuntu 16.04.1 For X64, Mono's version 5.0.1.1 and SkiaSharp is v1.59.1, how can I using MSBuild 15 going todo. Thanks!

@kekekeks
Copy link
Contributor

kekekeks commented Aug 2, 2017

@mattleibow Could you please switch your build agent to use Ubuntu 14.04? Also, please link libstdc++ statically. That should cover most of the distros.

@mattleibow
Copy link
Contributor

@kekekeks The build agent should be 14.04 already. And will linking libstdc++ statically cause any issue with dynamic bits? I may be confused, but some people (on the internet) say that if I link statically then we can't use dlopen (which is used for the GL bits). Or, is this just for libgcc?

@kekekeks
Copy link
Contributor

You need to build libstdc++ with -fvisibility=hidden, so it won't cause conflicts.

@kekekeks
Copy link
Contributor

See more information about the issues there: https://github.com/phusion/holy-build-box/blob/master/LINKING-CXX.md

@kekekeks
Copy link
Contributor

See libstdc++ compilation flags here: https://github.com/phusion/holy-build-box/blob/master/image/build.sh#L357

mattleibow added a commit that referenced this issue Sep 28, 2017
@ghost ghost locked as resolved and limited conversation to collaborators Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants