CDrummond / cantata

Qt5 Graphical MPD Client
GNU General Public License v3.0
1.04k stars 184 forks source link

Updated README for macOS when qt5 and qt6 are both installed with homebrew #1736

Closed Marcool04 closed 3 years ago

Marcool04 commented 3 years ago

Hi there.

I thought I would offer this small change to the README in the case of macOS when homebrew has both qt5 and qt6 installed.

make fails if qt6 is linked. The output suggests that it is indeed finding qt5, and using that for most things, but at some point there are files from the default /usr/local/include that get pulled in nonetheless. They belong to qt6, and cause errors. However hard I tried to fix CMAKE_PREFIX_PATH, or other environment variables (including all those suggested in the "caveat" that brew info qt5 prints when qt6 is installed), I couldn't get it to build.

Simply unlinking then relinking via homebrew works fine, and is probably not too unreasonable a thing to do in such circumstances, allthough I admit, it is not very elegant…

CDrummond commented 3 years ago

Thanks.