Good day,
I finally decided to go with Nim + QML for the GUI using nimqml. Mostly because I want the ability of setting up a GUI and then decide if I use Python or Nim for the core. I think I tried all available GUI kits without any success, though it might be also due to lack of research on them. Nontheless, as QML seems to be very flexible and adaptable to fit my needs, and there is good doc on Python/QML, I decided to go with it.
So now, testing QML with Nim, I installed the DOtherSide from source as described in their site, and added the nimqml package through nimble. Presumably, everything is set. DOtherSide files appear correctly on the system. So to test the new install just created a new project with the simple "helloworld" nimqml example. And it never compiles.
From cli, nim -c main.nim does not compile spitting an error, "invalid command: main.nim", nothing more.
Then decided to use QtCreator, that has a Nim plugin [nice!], so created a new Nim application project and added the files, main.nim and main.qml, same files as before and from QtCreator it does not compile either, spitting out that "could not load: libDOtherSide.so.0.8".
Would appreciate any help on how to solve these issues in order to start doing things instead of testing things. ;]
Thanks in advance, Regards, Noxnivi
Good day @Yardanico,
True. It's nim c. My bad. I've been already through many Nim tutorials (those two you mention I've already went through several weeks ago. Now I'm at this: https://ssalewski.de/nimprogramming.html. I've done some Nim in Action stuff too, but seems examples there don't work on Nim 1.6), problem is, I go through tutorials about 1 hour each week... so sometimes I just forget about stuff.
DOtherSide is presumably well installed. At least, I followed the steps in the DOtherSide github page and I can see the files in /usr/local/lib and /usr/local/include. It just seems Nim can't reach them though. So either I did something wrong, thought the steps to build DOtherSide are quite simple, or I'm missing something here.
Thanks for your reply @Yardanico. Regards, noxnivi
Good day @filcuc,
Thanks for the tips. It finally worked by copying the DOtherside to /usr/lib. Besides I had to install qt5-quickcontrols, that wasn't installed. qt5-quickcontrols2 was installed but was not enough.
Once these two things fixed, the simple helloworld window worked. Now I can get on with trying more serious stuff.
Thanks again. I'll try to remember to ask these questions on Github next time. And certainly will be a next time. The more I use nimqml the more questions will have, I'm quite sure about that ;)
Regards, noxnivi