Open hansdampfinger666 opened 5 months ago
try to use: nimble install https://github.com/jerous86/nimqt@#head because the version of Nimqt <0.2 is not compiled with Nim 2.0.0 I for safety in the "nim.cf" file make the following modification ... in nim.cfg:
@if not windows:
nimblepath="/opt/nimble/pkgs2/"
#nimblepath="/opt/nimble/pkgs/" <-----comment this!
@else:
# TODO:
@end
nimblepath="$home/.nimble/pkgs2/"
#nimblepath="$home/.nimble/pkgs/" <--- comment this!
As Martinix mentioned, you should append @#head
to the install instruction. I updated the readme.
Excellent, thanks! Works now.
I am getting the following error message when compiling your first example (based on examples/hello.nim, https://github.com/jerous86/nimqt#simple-example):
Which is weird because I think that code should only be compiled if I was using a Nim version below 2.0.0.
Got this code snippet in my nimqt/qtwidgets/qlayoutitem.nim file, which seems old, looking at your repo? I followed your install steps exactly.
As your example stated I tried to compile the code snippet with:
nim cpp src/qt_test.nim
I'm on EndeavourOS with qt6-base 6.6.1-3 installed. Nim 2.0.0, nimble v0.14.2.