jazzycamel / PyMyLabel

A minimal example of using SIP to create a Python wrapper for a C++ Qt5 library.
MIT License
9 stars 1 forks source link

qcustomplot-for-pyqt5 windows install problem #3

Open orwei opened 6 years ago

orwei commented 6 years ago

Can anyone help me? PS C:\Users\Huwei\Desktop\QCustomPlot-PyQt5-master> python .\setup.py install running install running build running build_ext Setting qmake to 'D:/Software/Qt/5.5/mingw492_32/bin/qmake.exe' Setting make to 'D:/Software/Qt/Tools/mingw492_32/bin/mingw32-make.exe' Setting Qt include dir to 'D:/Software/Qt/5.5/mingw492_32/include/' Make static qcustomplot library... D:/Software/Qt/5.5/mingw492_32/bin/qmake.exe C:\Users\Huwei\Desktop\QCustomPlot-PyQt5-master\lib/qcustomplot-static.pro D:/Software/Qt/Tools/mingw492_32/bin/mingw32-make.exe D:/Software/Qt/Tools/mingw492_32/bin/mingw32-make.exe -f Makefile.Release mingw32-make.exe[1]: Entering directory 'C:/Users/Huwei/Desktop/QCustomPlot-PyQt5-master/build/temp.win-amd64-3.6/Release' g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQCUSTOMPLOT_COMPILE_LIBRARY -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\..\..\lib -I. -ID:\Software\Qt\5.5\mingw492_32\include -ID:\Software\Qt\5.5\mingw492_32\include\QtPrintSupport -ID:\Software\Qt\5.5\mingw492_32\include\QtWidgets -ID:\Software\Qt\5.5\mingw492_32\include\QtGui -ID:\Software\Qt\5.5\mingw492_32\include\QtANGLE -ID:\Software\Qt\5.5\mingw492_32\include\QtCore -Irelease -ID:\Software\Qt\5.5\mingw492_32\mkspecs\win32-g++ -o release\qcustomplot.o ..\..\..\lib\qcustomplot.cpp D:\Software\Qt\5.5\mingw492_32\bin\moc.exe -DUNICODE -DQCUSTOMPLOT_COMPILE_LIBRARY -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -D__GNUC__ -DWIN32 -ID:/Software/Qt/5.5/mingw492_32/mkspecs/win32-g++ -IC:/Users/Huwei/Desktop/QCustomPlot-PyQt5-master/lib -ID:/Software/Qt/5.5/mingw492_32/include -ID:/Software/Qt/5.5/mingw492_32/include/QtPrintSupport -ID:/Software/Qt/5.5/mingw492_32/include/QtWidgets -ID:/Software/Qt/5.5/mingw492_32/include/QtGui -ID:/Software/Qt/5.5/mingw492_32/include/QtANGLE -ID:/Software/Qt/5.5/mingw492_32/include/QtCore -I. ..\..\..\lib\qcustomplot.h -o release\moc_qcustomplot.cpp g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQCUSTOMPLOT_COMPILE_LIBRARY -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\..\..\lib -I. -ID:\Software\Qt\5.5\mingw492_32\include -ID:\Software\Qt\5.5\mingw492_32\include\QtPrintSupport -ID:\Software\Qt\5.5\mingw492_32\include\QtWidgets -ID:\Software\Qt\5.5\mingw492_32\include\QtGui -ID:\Software\Qt\5.5\mingw492_32\include\QtANGLE -ID:\Software\Qt\5.5\mingw492_32\include\QtCore -Irelease -ID:\Software\Qt\5.5\mingw492_32\mkspecs\win32-g++ -o release\moc_qcustomplot.o release\moc_qcustomplot.cpp ar -ru release\libqcustomplot.a release/qcustomplot.o release/moc_qcustomplot.o ar: creating release\libqcustomplot.a mingw32-make.exe[1]: Leaving directory 'C:/Users/Huwei/Desktop/QCustomPlot-PyQt5-master/build/temp.win-amd64-3.6/Release' building 'qcustomplot' extension H:\Python36\sip.exe -t WS_WIN -t Qt_5_9_3 -c build\temp.win-amd64-3.6\Release -b build\temp.win-amd64-3.6\Release\qcustomplot.sbf -I H:\Python36\sip\PyQt5 qcustomplot.sip sip: Unable to find file "QtGui/QtGuimod.sip" error: command 'H:\\Python36\\sip.exe' failed with exit status 1 PS C:\Users\Huwei\Desktop\QCustomPlot-PyQt5-master>

It's just the sip: Unable to find file "QtGui/QtGuimod.sip" make me so mad! Can anyone help me???

jazzycamel commented 6 years ago

Firstly, I've never used QCustomPlot and/or its PyQt5 bindings so I don't know how much help I can be.

It looks like the SIP exe can't find the PyQt5 source directory containing the QtGuimod.sip file. You can pass extra include locations to SIP, so maybe try locating the said QtGuimod.sip file and then passing that directory path to sip.exe (run sip with the -h option to find out how).

Otherwise, I can only suggest contacting the QCustomPlot project maintainers (if you haven't already).