[PyQt] Building static version of PyQtChart 5.7

Thijs Triemstra lists at collab.nl
Sun Jul 31 17:05:32 BST 2016


On 31-07-16 17:59, Thijs Triemstra wrote:
> Thanks that worked. The documentation mentions a '--pyqt=PyQt5' option
> but it seems to be an obsolete or missing option.

Spoke too soon, a build with pyqtdeploycli fails with a long stacktrace:

sipQtChartQPercentBarSeries.cpp:(.text+0x232): undefined reference to
`QtCharts::QPercentBarSeries::qt_metacast(char const*)'
/home/raspi-build/sysroot/usr/lib/python3.5/site-packages/PyQt5/libQtChart.a(sipQtChartQPercentBarSeries.o):
In function `sipQPercentBarSeries::type() const':
sipQtChartQPercentBarSeries.cpp:(.text+0x5b0): undefined reference to
`QtCharts::QPercentBarSeries::type() const'
/home/raspi-build/sysroot/usr/lib/python3.5/site-packages/PyQt5/libQtChart.a(sipQtChartQPercentBarSeries.o):
In function `meth_QPercentBarSeries_type':
sipQtChartQPercentBarSeries.cpp:(.text+0x640): undefined reference to
`QtCharts::QPercentBarSeries::type() const'
/home/raspi-build/sysroot/usr/lib/python3.5/site-packages/PyQt5/libQtChart.a(sipQtChartQPercentBarSeries.o):
In function `sipQPercentBarSeries::metaObject() const':
sipQtChartQPercentBarSeries.cpp:(.text+0x1a6): undefined reference to
`QtCharts::QPercentBarSeries::metaObject() const'
/home/raspi-build/sysroot/usr/lib/python3.5/site-packages/PyQt5/libQtChart.a(sipQtChartQPercentBarSeries.o):(.data.rel.ro+0x8):
undefined reference to `typeinfo for QtCharts::QPercentBarSeries'
/home/raspi-build/sysroot/usr/lib/python3.5/site-packages/PyQt5/libQtChart.a(sipQtChartQPercentBarSeries.o):(.data.rel+0xbc):
undefined reference to `QtCharts::QPercentBarSeries::staticMetaObject'
collect2: error: ld returned 1 exit status
Makefile:430: recipe for target 'photobooth' failed
make: *** [photobooth] Error 1

Any idea?

Thijs



More information about the PyQt mailing list