Hacker News new | ask | show | jobs
by erichdongubler 3403 days ago
Gist that I've been developing for quick setup guides (PRs welcome!): https://gist.github.com/ErichDonGubler/c802e066de7068241f0e6...

We're still trying to get this to work with Windows. I've been reporting on this issue here: https://github.com/White-Oak/qml-rust/issues/31.

Any suggestions to get this going would be appreciated! Developing with Rust/QML on Windows definitely seems possible at this point...that said, most of what's left to be defined is what setup is required to actually get things to work.

1 comments

It was a bit of a struggle, but I was able to get this going for Mac w/Homebrew.

after `brew install qt5`, I had to `brew linkapps qt5` & `brew link --force qt5`. Then `ln -s /usr/local/opt/qt5/mkspecs /usr/local/mkspecs && ln -s /usr/local/opt/qt5/plugins /usr/local/plugins` which is super not ideal.

I had some error and ran `brew install doxygen --with-qt5` which may not be necessary, but after these steps it built.

Edit: scratch that. As soon as I try the example in main.rs, it fails to build again. 'ld: framework not found QtCore'

I also have cmake installed for Mac w/Homebrew and used a binary install of qt-5.8.

After adding the clang_64/bin dir on the $PATH I too am getting 'ld: framework not found QtCore'.

Anyone able to suggest where I'm going wrong?

BTW, the qt5 formula explicitly says it's keg-only because it "has CMake issues when linked".
Noticed that. Found some discussions about a possible bug in cmake or qt5 that were reported a month or two ago.