Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyQt5 error during "python3 configure.py": fatal error: 'qgeolocation.h' file not found

MAC OSX 10.9, Python 3.5, sip-4.17, PyQt-gpl-5.5.1, Qt5.5.1

Hi, trying to build PyQt on my system I did the following steps:

  1. download/install Qt5.5.1 libraries
  2. download/unpack SIP
  3. download/unpack PyQt
  4. install SIP:

    python3 configure.py -d /Library/Python/3.5/site-packages --arch x86_64
    
    make
    
    sudo make install
    
  5. tried to install PyQt:

    python3 configure.py -d /Library/Python/3.5/site-packages
                                   --qmake /.../Qt5.5.1/5.5/clang_64/bin/qmake
    

Configuration stopped with:

    /Users/werner/OpenSource/PyQt/sip/QtPositioning/qgeolocation.sip:28:10:
                             fatal >error: 'qgeolocation.h' file not found
     #include <qgeolocation.h>
               ^
      1 error generated.
      make[1]: *** [sipQtPositioningcmodule.o] Error 1
      make: *** [sub-QtPositioning-make_first-ordered] Error 2

I tried to finish installation doing

make
sudo make install

anyway. But the installation doesn't seem to be complete (e.g. uic, pyuic5 are missing). Here is what my installation directory looks like:

>ls /Library/Python/3.5/site-packages/PyQt5
QtBluetooth.so          QtSensors.so
QtCore.so               QtSerialPort.so
QtDBus.so               QtSql.so
QtDesigner.so           QtSvg.so
QtGui.so                QtTest.so
QtHelp.so               QtWebKit.so
QtMacExtras.so          QtWebKitWidgets.so
QtMultimedia.so         QtWidgets.so
QtMultimediaWidgets.so  QtXml.so
QtNetwork.so            QtXmlPatterns.so
QtOpenGL.so             _QOpenGLFunctions_2_0.so
QtPrintSupport.so       _QOpenGLFunctions_2_1.so
QtQml.so                _QOpenGLFunctions_4_1_Core.so
QtQuick.so

I couldn't find any useful information when searching for other discussions, so I hope someone can give me a hint on what I'm (maybe stupidly) doing wrong. Thank you for taking the time to read this.

like image 874
w.h. Avatar asked Oct 30 '15 23:10

w.h.


2 Answers

If you don't need this module, the better way to solve that is disabling it on configure.

python configure.py --disable=QtPositioning
like image 137
sdemario Avatar answered Oct 30 '22 07:10

sdemario


Just yesterday, I also met such a problem. And this is what I do to solve it:

Create a header file qgeolocation.h in /PyQt-gpl-5.5.1/QtPositioning, and copy the content into it from this website. Then I go sudo make and sudo make install successfully.

Though I do not know whether it is right to solve this problem, fortunately, I installed the PyQt and entered eric6. Hope you make successfully, too.

like image 24
Jamoeba Avatar answered Oct 30 '22 09:10

Jamoeba