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

[Bug] Doesn't run on aarch64 #191

Open
hwine opened this issue Aug 6, 2023 · 8 comments
Open

[Bug] Doesn't run on aarch64 #191

hwine opened this issue Aug 6, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@hwine
Copy link

hwine commented Aug 6, 2023

About Bug

Steps to reproduce

  1. install on arm64 windows 11
  2. note that app starts and shows in system tray
  3. non of the examples work
  4. right click on system tray item, no menu pops up, app terminates

Environments

Environments Delete the example and fill in your information.
Windows Edition 11 Pro
Windows Version 23H2 (Insider beta)
Windows Build 22631.2129
Architecture aarch64
win-vind Version 5.2.3
win-vind Install Type winget
@pit-ray
Copy link
Owner

pit-ray commented Aug 9, 2023

For now, I have built win-vind by cross-compiling.
Would it work well on your computer?

However, I don't have an arm64 computer, so I cannot test it to verify that it works.
I don't like to upload untested applications to winget or Chocolatey, so to support the arm build, I think that we need a contributor who has an arm64 computer.

@pit-ray
Copy link
Owner

pit-ray commented Aug 9, 2023

To compile win-vind for arm64, follow these steps.

  1. clone win-vind
$ git clone https://github.com/pit-ray/win-vind.git
  1. Start command prompt
$ cmd
  1. Build wxWidgets for arm64
$ cd libs
$ git clone https://github.com/wxWidgets/wxWidgets.git -b v3.1.5 -j %NUMBER_OF_PROCESSORS% --depth=1
$ cd wxWidgets
$ git submodule update --init -j %NUMBER_OF_PROCESSORS%
$ cd build/msw
$ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_arm64.bat"
$ nmake /f makefile.vc BUILD=release SHARED=0 UNICODE=1 TARGET_CPU=ARM64 RUNTIME_LIBS=static
$ cd ../../../
  1. Build win-vind
$ cmake -B build_arm64 -DCMAKE_BUILD_TYPE=Release -DwxWidgets_LIB_DIR libs/wxWidgets/lib/vc_arm64_lib -G "Visual Studio 16 2019" -A Arm64 .
$ cmake --build build_arm64 --config Release

@hwine
Copy link
Author

hwine commented Aug 9, 2023

Thanks for the build & instructions (I couldn't get the build to work with my lack-of-knowledge). I'll test after work tonight.

@hwine
Copy link
Author

hwine commented Aug 10, 2023

I tried running the installer you built, and that worked. However when I ran it (first time from non-admin powershell), I got:

image

I then tried:

  • running from admin shell
  • manually creating the directory, then running from admin shell
    • no task icon, no process, apparent immediate exit

Finally, I stumbled on this run (somehow) from both admin & non-admin shell:

C:\Program Files\win-vind> 'C:\Program Files\win-vind\win-vind.exe'
C:\Program Files\win-vind\win-vind.exe
C:\Program Files\win-vind> & 'C:\Program Files\win-vind\win-vind.exe'
C:\Program Files\win-vind>

This produced:

  • a brief display of "insert" in the lower left corner of the main desktop
  • an icon in the task tray
  • right clicking the icon produced an hourglass cursor, then exit

I have no idea why the "&" made a difference (or how it got there), so we may be dealing with PEBKAC here. Let me run the app on an x86_64 machine I have access to, and learn what to expect. I'll update this bug after that.

@pit-ray
Copy link
Owner

pit-ray commented Aug 10, 2023

I'm sorry. It seems I gave you an incomplete installer.
How about this build?
setup_win-vind_5.2.3.zip

@hwine
Copy link
Author

hwine commented Aug 11, 2023

Sorry - same result. After trying on an x86_64 machine (where it worked great), I'm certain it's not PEBCAK. This weekend I should have time to build it myself and try that (which hopefully will flush out any cross compile glitch). Win11 on arm64 has some rough edges still -- MS is still having challenges with WSL. ☹️

@pit-ray pit-ray added the bug Something isn't working label Aug 12, 2023
@hwine
Copy link
Author

hwine commented Aug 13, 2023

fwiw, I'm running into issues getting a clean build on my machine, so I started #193. Everything is in extra scripts in tools/arm64*. As you'll see, I'm not familiar with building for windows using VS. 😉

@pit-ray
Copy link
Owner

pit-ray commented Aug 15, 2023

@hwine
Thanks for the pull request.
I will check your script and comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants