-
Notifications
You must be signed in to change notification settings - Fork 555
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
The Platform needs to be either x64 or x86 to support Skia in Windows. #44
Comments
Simply select one of the alternative profiles from the compile targets dropdown, like 'Debug|x86'. Perhaps the 'Release' and 'Debug' targets could be removed. |
Adding new Platform x64 in Configuration Manager solved my same issue. |
I mean, why doesn't it just default to whatever the compiler is using if not specified? Or at minimum, it should default to x86... |
This is related to #190 The latest changes make a choice to use the native bits that the platform specifies (and just copies both for AnyCPU), but at an app level, the platform needs to be specified. On your point of picking the default (aka, pick x86 or x64), we might be able to do something like that... I am just preparing to release the next version, but maybe I can fit this in: How does adding a MSBuild property in the csproj sound? So, we can still target AnyCPU, but if there is something like this: <OverrideSkiaSharpPlatform>x86</OverrideSkiaSharpPlatform> then, instead of copying both platforms to the output location, it just pretends it is an x86 app? |
I don't understand MSBuild at all, so I won't comment there. I would just say it's worth it to not have to google an error message and waste time fixing configuration issues. So whatever makes it "just work" is likely best (in my humble opinion). |
Closing this as I have added logic to try and detect the correct libraries to copy with AnyCPU. |
When compiling Skia.WindowsDesktop.Demo with Visual Studio 2015 update 1 on Windows 8.1 I get the compile error 'The Platform needs to be either x64 or x86 to support Skia in Windows.'. What is going on?
The text was updated successfully, but these errors were encountered: