WebView
WebView copied to clipboard
Libraries missing when running 2.117.1-avalonia11 on macOS M1
Hi there,
I noticed that when running on macOS M1, I get this error messages upon building: 4>Microsoft.Common.CurrentVersion.targets(5150,5): Error MSB3030 : Could not copy the file "/Debug/net7.0/libGLESv2.dylib" because it was not found. 4>Microsoft.Common.CurrentVersion.targets(5150,5): Error MSB3030 : Could not copy the file "/Debug/net7.0/libEGL.dylib" because it was not found. 4>Microsoft.Common.CurrentVersion.targets(5150,5): Error MSB3030 : Could not copy the file "*/Debug/net7.0/libvk_swiftshader.dylib" because it was not found.
I removed the full path for privacy reasons.
Thank you
I got the same error but on Intel Mac and .NET 8 and WebViewControl-Avalonia v2.121.100
0>Microsoft.Common.CurrentVersion.targets(5198,5): Error MSB3030 : Could not copy the file "AvaloniaApplication1/bin/Debug/net8.0/libvk_swiftshader.dylib" because it was not found.
0>Microsoft.Common.CurrentVersion.targets(5198,5): Error MSB3030 : Could not copy the file "AvaloniaApplication1/bin/Debug/net8.0/libGLESv2.dylib" because it was not found.
0>Microsoft.Common.CurrentVersion.targets(5198,5): Error MSB3030 : Could not copy the file "AvaloniaApplication1/bin/Debug/net8.0/libEGL.dylib" because it was not found.
Did you ever manage to find a solution?
Same here
@joaompneves can you elaborate on the "not planned" status of this issue?
I believe my issue above predates getting my M3, so it was an issue on an Intel Mac. Both are fully supported according to the readme.
Well, I can't reproduce and its been more than 3 months since the last report.
I have created a repro here.
When I open that and try build I get the compile errors of
0>Microsoft.Common.CurrentVersion.targets(5270,5): Error MSB3030 : Could not copy the file "/Users/beeradmoore/git/AvaloniaWebViewTest/src/AvaloniaWebViewTest/bin/Debug/net8.0/libEGL.dylib" because it was not found.
0>Microsoft.Common.CurrentVersion.targets(5270,5): Error MSB3030 : Could not copy the file "/Users/beeradmoore/git/AvaloniaWebViewTest/src/AvaloniaWebViewTest/bin/Debug/net8.0/libGLESv2.dylib" because it was not found.
0>Microsoft.Common.CurrentVersion.targets(5270,5): Error MSB3030 : Could not copy the file "/Users/beeradmoore/git/AvaloniaWebViewTest/src/AvaloniaWebViewTest/bin/Debug/net8.0/libvk_swiftshader.dylib" because it was not found.
0>------- Finished building project: AvaloniaWebViewTest. Succeeded: False. Errors: 3. Warnings: 0
Build completed in 00:00:00.767
My initial comment was in March on my Intel Mac Mini. I am now on an M3 MacBook Pro which I got in June (to confirm my previous issue was not ARM64 related). If you have Intel Mac hardware does the above fail in the same way or does it compile fine?
Now I am on ARM64 I assume I am meant to install both WebViewControl-Avalonia and WebViewControl-Avalonia-ARM64? Can this be a single package with multi targeting?
With that second package I get a runtime error of
System.IO.FileNotFoundException: Could not load file or assembly 'WebViewControl.Avalonia, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
I couldn't see any other initialize code in the samples so I think its all setup correctly, I assume this is a different issue as it at least now compiles?