titanous / homebrew-gnuradio

GNU Radio Formulae for Homebrew (unmaintained)
110 stars 110 forks source link

ld: framework not found QtGui #26

Open lokkju opened 11 years ago

lokkju commented 11 years ago

When building with brew install gnuradio --with-qt -v, the build fails. Walking through why it's failing, it seems to be that the gnuradio-qtgui subproject can't find the framework paths for QT, and the only place it is looking is in /usr/local/Cellar/python/2.7.3/Frameworks (-F/usr/local/Cellar/python/2.7.3/Frameworks).

The Qt.framework and qwt.framework exist in /usr/local/lib, not in /usr/local/Cellar/python/2.7.3/Frameworks.

As a workaround, I was able to get it working via symlinking the Qt* and qwt* frameworks into /usr/local/Cellar/python/2.7.3/Frameworks:

ln -s /usr/local/lib/qwt* /usr/local/Cellar/python/2.7.3/Frameworks/
ln -s /usr/local/lib/Qt* /usr/local/Cellar/python/2.7.3/Frameworks/

Based on other things I've seen online, this may have to do with the version of qt/qwt/pyqt/pyqwt: qt: stable 4.8.4 (bottled), HEAD pyqt: stable 4.9.4 qwt: stable 6.0.1 pyqwt: stable 5.2.0

epall commented 11 years ago

I think I'm running into the same issue. Thanks for the workaround!

good1209 commented 11 years ago

I found how to solve the problem. I found in here http://www.qtcentre.org/threads/34857-Qwt-6-0-0-rc1 Answer is : On Mac OS X, the linker is looking for the qwt libraries in /Libary/Frameworks/qwt.framework/ so need to link qwt.framework to /Libary/Frameworks/ and the problem solve ^^