Hacker News new | ask | show | jobs
by busterarm 3407 days ago
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'

2 comments

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.