Closed retsyo closed 1 year ago
Thank you for your report. I'm testing it right now using MSYS2 MINGW64
.
Install needed packages
pacman -Syuu
pacman -S mingw-w64-x86_64-gcc
pacman -S git
pacman -S mingw-w64-x86_64-nim
pacman -S mingw-w64-x86_64-nimble
Clone
git clone --recursive https://github.com/neroist/webui.git
cd webui/examples
Build
$ nim c -r hello_world.nim
C:\msys64\home\xxxx\webui\examples\nim.cfg(2, 3) Error: invalid command line option: '--mm'
$ nim c -d:useWebviewStaticLib hello_world.nim
C:\msys64\home\xxxx\webui\examples\nim.cfg(2, 3) Error: invalid command line option: '--mm'
@neroist any suggestion?
I re-test it outside of MSYS2 and it's working fine.
Windows Terminal
cd C:\msys64\home\xxxx\webui\examples
nimble install webui
nim c -d:useWebviewStaticLib hello_world.nim
well it turns out the bug lives in latest nim. If I switch to nim 1.6.10, everything is ok.
I test it using Nim v1.6.12
. And it's working fine.
Are you using static or dynamic builds?
It is related to threads. Using tlsemulation:off
or threads:off
works with the devel compiler.
@retsyo did using tlsemulation:off
or threads:off
solve the issue for you?
yes, threads:off solves the issue
I am using latesed cloned webui4nim and webui. I have copied
webui\include\*.h
to this webui4nim So I can generated hello_world.exe in MSYS2+Mingw64 on my windows 10 64bits with justnim c -r hello_world.nim
hello_world.exe can be lauched. However, no matter what password is used, when I click "check password", it crashed. But as we know, some message should be printed in MSYS2 console