Closed matkuki closed 1 year ago
Specs:
Windows 10 x64
Nim Compiler Version 1.6.10 [Windows: amd64]
This library has not been tested yet on windows, so there might be many issues :)
This might be due to /src/
symlinking to /qt/6.4.1_minimal/
. I updated the nimble file to directly link to the latter. Can you try again with the latest commit?
This library has not been tested yet on windows, so there might be many issues :)
No worries, I will test it as much as I can. Hopefully you won't be too annoyed if I open a lot of issues as I find them.
Can you try again with the latest commit?
Yes, now it starts compiling, thanks ๐ But now I get an error while compiling the minimal example:
# First, we import the nimqt.nim module that will allow us to use the Qt system
import nimqt
# nimqt.init() should be called at the start of your program.
# It will initialize verdigris, and import some common modules.
nimqt.init()
let app = newQApplication() # Create your application.
import nimqt/qlabel
let w=newQLabel(Q"Hello world!")
w.show()
discard app.exec() # Run Qt's main loop
... with this message:
C:\Users\matic\.nimble\pkgs\nimqt-0.1\nimqt\qtcore\qbytearray.nim(170, 1) Error: redefinition of 'setNum'; previous declaration here: C:\Users\matic\.nimble\pkgs\nimqt-0.1\nimqt\qtcore\qbytearray.nim(164, 6)
[...] Hopefully you won't be too annoyed if I open a lot of issues as I find them. Not at all :)
C:\Users\matic.nimble\pkgs\nimqt-0.1\nimqt\qtcore\qbytearray.nim(170, 1) Error: redefinition of 'setNum'; previous declaration here: C:\Users\matic.nimble\pkgs\nimqt-0.1\nimqt\qtcore\qbytearray.nim(164, 6)
I see what's going on:
clong
vs cint
type cint=int32
(https://github.com/nim-lang/Nim/blob/version-1-6/lib/system.nim#L1416)type clong=int32
(https://github.com/nim-lang/Nim/blob/version-1-6/lib/system.nim#L1396)type clong=int
I have no idea yet on how to resolve this simple and automatically. Any suggestions? :)
Confirming that adding a when not defined(windows):
for the clong
and culong
setNum
overloads in qtcore/qbytearray.nim
and qtcore/qstring.nim
fixes this error.
Then I get a similar error as the #2 issue.
No idea for an automatic solution currently, sorry. Only a conditional when
comes to mind.
The automated fix was not too difficult, luckily, so it should be fixed now.
Yes, it works ๐๐๐
Hi,
Thank you for this library ๐๐๐
I have followed the instructions to install it with:
nimble install https://github.com/jerous86/nimqt
but it only installs the หnimqt.nimbleห file into.nimble/pgks/nimqt-0.1/
directory:When trying to use the library after that, I get: