bistromath / gr-air-modes

Gnuradio Mode-S/ADS-B radio
This project implements a Mode S receiver for the Gnuradio software-defined radio project. It is designed to receive Mode S transmissions from aircraft and decode them to a human-readable format, including ADS-B information messages such as position and a
GNU General Public License v3.0
438 stars 126 forks source link

Fix cmake ImportError: No module named pyqtconfig for new PyQt4 versions #67

Closed skgsergio closed 8 years ago

skgsergio commented 9 years ago

New PyQt4 versions deprecated the old pyqtconfig method so now it gives the following error:

Traceback (most recent call last):
  File "/home/sconde/Proyectos/gr-air-modes/cmake/Modules/FindPyQt.py", line 5, in <module>
    import PyQt4.pyqtconfig
ImportError: No module named pyqtconfig
-- PyQt4 not found, not installing GUI application

This PR fixes it supporting both old and new method.

The new FindPyQt.py file is a copy from this project: https://github.com/qgis/QGIS/blob/master/cmake/FindPyQt.py