Open arkanoid87 opened 2 years ago
UPDATE:
I've added the --app:gui
flag and now the linux generated exe works on Windows10 (tested multiple demos), so the problem is apparently wine.
My target would be to develop it on linux, so I went on testing for a while:
I gave the binary to a wine dev for a quick look and he confirmed the issue and suggested me to take it to bugs.winehq.org
I've compiled all examples and only 3 are affected by this problem:
$ wine rebar.exe
/home/arkanoid/nim/wnimtest/wNim/examples/rebar.nim(55) rebar
/home/arkanoid/.nimble/pkgs/wnim-0.13.1/wNim/private/controls/wComboBox.nim(271) ComboBox
/home/arkanoid/.nimble/pkgs/wnim-0.13.1/wNim/private/controls/wComboBox.nim(297) init
/home/arkanoid/.nimble/pkgs/wnim-0.13.1/wNim/private/controls/wTextCtrl.nim(988) TextCtrl
/home/arkanoid/.nimble/pkgs/wnim-0.13.1/wNim/private/controls/wTextCtrl.nim(993) init
Error: unhandled exception: cannot wrap this textctrl. [wError]
$ wine demo.exe
/home/arkanoid/nim/wnimtest/wNim/examples/demo.nim(45) demo
/home/arkanoid/.nimble/pkgs/wnim-0.13.1/wNim/private/controls/wComboBox.nim(271) ComboBox
/home/arkanoid/.nimble/pkgs/wnim-0.13.1/wNim/private/controls/wComboBox.nim(297) init
/home/arkanoid/.nimble/pkgs/wnim-0.13.1/wNim/private/controls/wTextCtrl.nim(988) TextCtrl
/home/arkanoid/.nimble/pkgs/wnim-0.13.1/wNim/private/controls/wTextCtrl.nim(993) init
Error: unhandled exception: cannot wrap this textctrl. [wError]
$ wine dragdrop.exe
/home/arkanoid/nim/wnimtest/wNim/examples/dragdrop.nim(25) dragdrop
/home/arkanoid/.nimble/pkgs/wnim-0.13.1/wNim/private/wDataObject.nim(286) DataObject
/home/arkanoid/.nimble/pkgs/wnim-0.13.1/wNim/private/wDataObject.nim(292) init
/home/arkanoid/.nimble/pkgs/wnim-0.13.1/wNim/private/wDataObject.nim(138) error
Error: unhandled exception: wDataObject creation failed [wDataObjectError]
the very same binaries run correctly on windows
wDataObject used some undocumented Windows tech whitch maybe not implemented on wine.
wDataObject used some undocumented Windows tech whitch maybe not implemented on wine.
👋 what about Error: unhandled exception: cannot wrap this textctrl. [wError]
?
Same as Error: unhandled exception: wDataObject creation failed [wDataObjectError]
?
wComboBox.nim
not working on Wine is very sad, other widgets seem to work fine.
Thanks for this great library! Amazing work!
I'm trying to run
dragdrop.nim
example on ubuntu 20.04 x86_64 as PE32+config.nims
nim c -r -d:crosswin dragdrop.nim (straight from example, except for
resource.nim
)wine gui.exe
nim -v