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

Won't build on Windows with x86_64-pc-windows-gnu #346

Closed
john01dav opened this issue May 17, 2020 · 9 comments
Closed

Won't build on Windows with x86_64-pc-windows-gnu #346

john01dav opened this issue May 17, 2020 · 9 comments
Labels
question Further information is requested

Comments

@john01dav
Copy link

When on Windows 10 and building to x86_64-pc-windows-gnu, compiling a program with iced gives this error:
image
Obviously, as this is building on Windows it is inappropriate to expect that g++ is present. As such, it is a bug that this library will not build without g++ on Windows. Note that other programs compile just fine, as rustup now contains the linker when you install this target. It isn't clear to me if this is a spirv-cross bug or an iced but, but, either way, the people here who are depending on spirv-cross likely will know, hence I am making the bug report here.

Additionally, I would like to note that when cross-compiling from Linux to this same target, although a .exe is created, this .exe won't run on Windows because it wants access to libstdc++-6.dll, but, when I pull a copy of this DLL from GCC-TDM (a random Windows GCC port, since the file doesn't exist in the files that Rustup downloads), the program crashes with cryptic hex error messages.

@hecrj hecrj added the question Further information is requested label May 17, 2020
@hecrj
Copy link
Member

hecrj commented May 17, 2020

I believe this is related to spirv_cross, which is using cc. You can check out its compile time requirements, as the error message says.

@john01dav
Copy link
Author

Thank you for the quick response! Unfortunately, when I fix the spirv_cross issue, by adding TDM-GCC's g++ to the path, although I get an exe that runs, it creates a blank window. I have a simple "hello world" gui as described in the documentation, and it works fine on Linux so the code is probably correct.

@kerskuchen
Copy link

Maybe gfx-rs/wgpu#464 helps?

Especially the

cargo update -p cc --precise 1.0.50

from gfx-rs/wgpu#464 (comment) worked for me on Windows MSVC. I dunno if it works for your case with GCC though :/

@john01dav
Copy link
Author

Unfortunately that didn't fix the issue @kerskuchen . Thanks for the attempt though :) With the old version of cc, the window is still blank.

@mattbradbury
Copy link

Unfortunately that didn't fix the issue @kerskuchen . Thanks for the attempt though :) With the old version of cc, the window is still blank.

Can you get any of the examples to work? I'm having a problem with the tour example giving me a white window, but everything else works. I think I've tracked it down to the "Image" feature, but still working through it.

@hecrj
Copy link
Member

hecrj commented May 19, 2020

@john01dav Do the examples in master work for you? We have recently updated wgpu and removed OpenGL and DX11 as backend choices, so we may get an actual error.

@john01dav
Copy link
Author

@mattbradbury @hecrj The examples in master don't work. Here's a video to show exactly what happens. To reproduce, download the VM from here and run in VirtualBox on a Linux host. I suspect that this is an issue of poor OpenGl support in VirtualBox, but, as iced is to be used for more than just video games, this is the sort of thing that should still work without good OpenGl (or DirectX, etc.) support.

@john01dav
Copy link
Author

john01dav commented May 19, 2020 via email

@hecrj
Copy link
Member

hecrj commented May 19, 2020

@john01dav OpenGL and/or software rendering is currently not supported, as mentioned in the main readme, iced_wgpu's readme, #257, #194, #182, #174, and #72.

I am closing this issue, as the original problem seems to have been resolved.

@hecrj hecrj closed this as completed May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants