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

Building works for x86_64-pc-windows-msvc but not i686-pc-windows-msvc #65

Open
john-h-k opened this issue Sep 28, 2023 · 2 comments
Open

Comments

@john-h-k
Copy link

Apple M1 on macOS.
I installed x86_64-pc-windows-msvc via rustup target add x86_64-pc-windows-msvc, and cargo xwin --target=x86_64-pc-windows-msvc works great.

However, when I added i686-pc-windows-msvc, I get a large number of linker errors:

  = note: lld-link: error: could not open 'kernel32.lib': No such file or directory
          lld-link: error: could not open 'ntdll.lib': No such file or directory
          lld-link: error: could not open 'bcrypt.lib': No such file or directory
          lld-link: error: could not open 'advapi32.lib': No such file or directory
          lld-link: error: could not open 'advapi32.lib': No such file or directory
          lld-link: error: could not open 'cfgmgr32.lib': No such file or directory
          lld-link: error: could not open 'credui.lib': No such file or directory
          lld-link: error: could not open 'fwpuclnt.lib': No such file or directory
          lld-link: error: could not open 'gdi32.lib': No such file or directory
          lld-link: error: could not open 'kernel32.lib': No such file or directory
          lld-link: error: could not open 'msimg32.lib': No such file or directory
          lld-link: error: could not open 'ntdll.lib': No such file or directory
          lld-link: error: could not open 'ole32.lib': No such file or directory
          lld-link: error: could not open 'opengl32.lib': No such file or directory
          lld-link: error: could not open 'secur32.lib': No such file or directory
          lld-link: error: could not open 'shell32.lib': No such file or directory
          lld-link: error: could not open 'user32.lib': No such file or directory
          lld-link: error: could not open 'winspool.lib': No such file or directory
          lld-link: error: could not open 'ws2_32.lib': No such file or directory
          lld-link: error: could not open 'kernel32.lib': No such file or directory
          lld-link: error: too many errors emitted, stopping now (use /errorlimit:0 to see all errors)

I am assuming this is user error and I have forgotten a step, but I am not sure what it is

@Nelonn
Copy link

Nelonn commented Oct 6, 2023

Have you used --xwin-arch=x86?

@vars1ty
Copy link

vars1ty commented Nov 14, 2023

xwin --accept-license splat --arch x86,x86_64 --output /home/(YOUR_USERNAME)/.xwin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants