[Development] 32bit linux build of qt5.10.0 w/ webengine

Toan Pham tpham3783 at gmail.com
Wed Jan 3 20:53:40 CET 2018


Thiago,

I am using gcc 4.8.5, but the compiler was optimized for pentium4 so all of
those vector instructions had to be disabled at build time.

BTW, I got webengine to compile successfully with several patches to
libvpx.  Now, I just ran into another brick wall with the errors attached
at the end of this email.
Here is my qt configure option:

-prefix /opt/qt5.10.0 -no-separate-debug-info -system-zlib -system-libpng
-confirm-license -nomake examples -I /usr/X11/include -release
-webengine-webrtc -qt-libjpeg -no-sse2 -no-sse3 -no-sse3 -no-sse4.1
-no-sse4.2 -no-avx -no-avx2


Please help if you know what's going on.  thanks..




make[3]: Leaving directory
`/TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-src-5.10.0/qtbase/src/tools/qvkgen'
cd gui/ && ( test -e Makefile ||
/TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-src-5.10.0/qtbase/bin/qmake
-o Makefile
/TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-src-5.10.0/qtbase/src/gui/
gui.pro
) && make -f Makefile
make[3]: Entering directory
`/TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-src-5.10.0/qtbase/src/gui'
rm -f libQt5Gui.so.5.10.0 libQt5Gui.so libQt5Gui.so.5 libQt5Gui.so.5.10
g++ -Wl,--no-undefined -Wl,--version-script,QtGui.version -Wl,-O1
-Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN -shared
-Wl,-Bsymbolic-functions
-Wl,--dynamic-list,/TOOLCHAIN/loop/target/nicebox/sandbox
/qt-everywhere-src-5.10.0/qtbase/src/gui/QtGui.dynlist
-Wl,-soname,libQt5Gui.so.5 -o libQt5Gui.so.5.10.0 .obj/qimage_compat.o
.obj/qaccessible.o .obj/qaccessiblecache.o .obj/qaccessibleobject.o
.obj/qaccessibleplu
gin.o .obj/qplatformaccessibility.o .obj/qaccessiblebridge.o
.obj/qgenericpluginfactory.o .obj/qgenericplugin.o
.obj/qwindowsysteminterface.o .obj/qplatforminputcontextfactory.o
.obj/qplatforminputcontextplugin.o
.obj/qplatforminputcontext.o .obj/qplatformintegration.o
.obj/qplatformdrag.o .obj/qplatformscreen.o
.obj/qplatformintegrationfactory.o .obj/qplatformintegrationplugin.o
.obj/qplatformtheme.o .obj/qplatformthemefa
ctory.o .obj/qplatformthemeplugin.o .obj/qplatformwindow.o
.obj/qplatformoffscreensurface.o .obj/qplatformcursor.o
.obj/qplatformclipboard.o .obj/qplatformnativeinterface.o
.obj/qsessionmanager.o .obj/qshapedpixma
pdndwindow.o .obj/qsimpledrag.o .obj/qsurfaceformat.o
.obj/qguiapplication.o .obj/qwindow.o .obj/qoffscreensurface.o
.obj/qplatformsurface.o .obj/qsurface.o .obj/qclipboard.o .obj/qcursor.o
.obj/qdrag.o .obj/qdnd.
o .obj/qevent.o .obj/qinputmethod.o .obj/qkeysequence.o .obj/qkeymapper.o
.obj/qpalette.o .obj/qguivariant.o .obj/qscreen.o .obj/qshortcutmap.o
.obj/qstylehints.o .obj/qtouchdevice.o .obj/qplatformsharedgraphicsca
che.o .obj/qplatformdialoghelper.o .obj/qplatformservices.o
.obj/qplatformsystemtrayicon.o .obj/qplatformsessionmanager.o
.obj/qplatformmenu.o .obj/qpixelformat.o .obj/qpaintdevicewindow.o
.obj/qrasterwindow.o .ob
j/qplatformgraphicsbuffer.o .obj/qplatformgraphicsbufferhelper.o
.obj/qinputdevicemanager.o .obj/qhighdpiscaling.o
.obj/qplatformopenglcontext.o .obj/qopenglcontext.o .obj/qopenglwindow.o
.obj/qbitmap.o .obj/qimag
e.o .obj/qimage_conversions.o .obj/qimageiohandler.o .obj/qimagereader.o
.obj/qimagewriter.o .obj/qpaintengine_pic.o .obj/qpicture.o
.obj/qpictureformatplugin.o .obj/qpixmap.o .obj/qpixmapcache.o
.obj/qplatformpix
map.o .obj/qpixmap_raster.o .obj/qpixmap_blitter.o
.obj/qimagepixmapcleanuphooks.o .obj/qicon.o .obj/qiconloader.o
.obj/qiconengine.o .obj/qiconengineplugin.o .obj/qmovie.o
.obj/qbmphandler.o .obj/qppmhandler.o .o
bj/qxbmhandler.o .obj/qxpmhandler.o .obj/qpnghandler.o .obj/qfont.o
.obj/qfontengine.o .obj/qfontengineglyphcache.o .obj/qfontsubset.o
.obj/qfontmetrics.o .obj/qfontdatabase.o .obj/qtextengine.o
.obj/qtextlayout.o
 .obj/qtextformat.o .obj/qtextobject.o .obj/qtextoption.o
.obj/qfragmentmap.o .obj/qtextdocument.o .obj/qtextdocument_p.o
.obj/qtexthtmlparser.o .obj/qabstracttextdocumentlayout.o
.obj/qtextdocumentlayout.o .obj/q
textcursor.o .obj/qtextdocumentfragment.o .obj/qtextimagehandler.o
.obj/qtexttable.o .obj/qtextlist.o .obj/qtextdocumentwriter.o
.obj/qsyntaxhighlighter.o .obj/qstatictext.o .obj/qrawfont.o
.obj/qglyphrun.o .obj/q
distancefield.o .obj/qinputcontrol.o .obj/qfontengine_qpf2.o
.obj/qplatformfontdatabase.o .obj/qharfbuzzng.o .obj/qtextodfwriter.o
.obj/qzip.o .obj/qcssparser.o .obj/qbackingstore.o .obj/qbezier.o
.obj/qblendfunct
ions.o .obj/qblittable.o .obj/qbrush.o .obj/qcolor.o .obj/qcolorprofile.o
.obj/qcompositionfunctions.o .obj/qcosmeticstroker.o .obj/qdrawhelper.o
.obj/qemulationpaintengine.o .obj/qgrayraster.o .obj/qimagescale.o
.obj/qmatrix.o .obj/qmemrotate.o .obj/qoutlinemapper.o
.obj/qpagedpaintdevice.o .obj/qpagelayout.o .obj/qpagesize.o
.obj/qpaintdevice.o .obj/qpaintengine.o .obj/qpaintengineex.o
.obj/qpaintengine_blitter.o .obj/qp
aintengine_raster.o .obj/qpainter.o .obj/qpainterpath.o .obj/qpathclipper.o
.obj/qpdf.o .obj/qpdfwriter.o .obj/qpen.o .obj/qpolygon.o
.obj/qrasterizer.o .obj/qregion.o .obj/qstroker.o .obj/qtextureglyphcache.o
.ob
j/qtransform.o .obj/qtriangulatingstroker.o .obj/qtriangulator.o
.obj/qplatformbackingstore.o .obj/qpathsimplifier.o .obj/qcssutil.o
.obj/qdesktopservices.o .obj/qvalidator.o .obj/qgridlayoutengine.o
.obj/qabstrac
tlayoutstyleinfo.o .obj/qlayoutpolicy.o .obj/qshaderformat.o
.obj/qshadergenerator.o .obj/qshadergraph.o .obj/qshadergraphloader.o
.obj/qshaderlanguage.o .obj/qshadernode.o .obj/qshadernodeport.o
.obj/qshadernodes
loader.o .obj/qgenericmatrix.o .obj/qmatrix4x4.o .obj/qquaternion.o
.obj/qvector2d.o .obj/qvector3d.o .obj/qvector4d.o .obj/qopengl.o
.obj/qopenglfunctions.o .obj/qopenglframebufferobject.o
.obj/qopenglpaintdevice
.o .obj/qopenglbuffer.o .obj/qopenglshaderprogram.o
.obj/qopenglgradientcache.o .obj/qopengltexturecache.o
.obj/qopenglengineshadermanager.o .obj/qopengl2pexvertexarray.o
.obj/qopenglpaintengine.o .obj/qopenglcust
omshaderstage.o .obj/qopengltextureglyphcache.o
.obj/qopenglversionfunctions.o .obj/qopenglversionfunctionsfactory.o
.obj/qopenglvertexarrayobject.o .obj/qopengldebug.o
.obj/qopengltextureblitter.o .obj/qopengltex
ture.o .obj/qopengltexturehelper.o .obj/qopenglpixeltransferoptions.o
.obj/qopenglprogrambinarycache.o .obj/qopenglfunctions_1_0.o
.obj/qopenglfunctions_1_1.o .obj/qopenglfunctions_1_2.o
.obj/qopenglfunctions_1_3.
o .obj/qopenglfunctions_1_4.o .obj/qopenglfunctions_1_5.o
.obj/qopenglfunctions_2_0.o .obj/qopenglfunctions_2_1.o
.obj/qopenglfunctions_3_0.o .obj/qopenglfunctions_3_1.o
.obj/qopenglfunctions_3_2_core.o .obj/qopen
glfunctions_3_3_core.o .obj/qopenglfunctions_4_0_core.o
.obj/qopenglfunctions_4_1_core.o .obj/qopenglfunctions_4_2_core.o
.obj/qopenglfunctions_4_3_core.o .obj/qopenglfunctions_4_4_core.o
.obj/qopenglfunctions_4_5
_core.o .obj/qopenglfunctions_3_2_compatibility.o
.obj/qopenglfunctions_3_3_compatibility.o
.obj/qopenglfunctions_4_0_compatibility.o
.obj/qopenglfunctions_4_1_compatibility.o
.obj/qopenglfunctions_4_2_compatibili
ty.o .obj/qopenglfunctions_4_3_compatibility.o
.obj/qopenglfunctions_4_4_compatibility.o
.obj/qopenglfunctions_4_5_compatibility.o .obj/qopengltimerquery.o
.obj/qguivariantanimation.o .obj/qstandarditemmodel.o .ob
j/qrc_qpdf.o .obj/moc_qaccessible.o .obj/moc_qaccessiblecache_p.o
.obj/moc_qaccessibleplugin.o .obj/moc_qaccessiblebridge.o
.obj/moc_qgenericplugin.o .obj/moc_qplatforminputcontext.o
.obj/moc_qplatforminputcontext
plugin_p.o .obj/moc_qplatformintegrationplugin.o
.obj/moc_qplatformthemeplugin.o .obj/moc_qplatformnativeinterface.o
.obj/moc_qplatformmenu.o .obj/moc_qshapedpixmapdndwindow_p.o
.obj/moc_qsurfaceformat.o .obj/moc_
qoffscreensurface.o .obj/moc_qclipboard.o .obj/moc_qdrag.o
.obj/moc_qdnd_p.o .obj/moc_qevent.o .obj/moc_qkeysequence.o
.obj/moc_qkeymapper_p.o .obj/moc_qpalette.o .obj/moc_qsessionmanager.o
.obj/moc_qscreen.o .obj
/moc_qstylehints.o .obj/moc_qtouchdevice.o
.obj/moc_qplatformsharedgraphicscache.o .obj/moc_qplatformdialoghelper.o
.obj/moc_qpaintdevicewindow.o .obj/moc_qrasterwindow.o
.obj/moc_qplatformgraphicsbuffer.o .obj/mo
c_qinputdevicemanager_p.o .obj/moc_qopenglwindow.o
.obj/moc_qimageiohandler.o .obj/moc_qpictureformatplugin.o
.obj/moc_qiconengineplugin.o .obj/moc_qfont.o .obj/moc_qfontdatabase.o
.obj/moc_qtextformat.o .obj/moc_
qtextobject.o .obj/moc_qtextdocument.o .obj/moc_qtextimagehandler_p.o
.obj/moc_qtexttable.o .obj/moc_qtextlist.o .obj/moc_qinputcontrol_p.o
.obj/moc_qbrush.o .obj/moc_qpainter.o .obj/moc_qpdfwriter.o .obj/moc_qpla
tformbackingstore.o .obj/moc_qvalidator.o .obj/moc_qshaderlanguage_p.o
.obj/moc_qopenglshaderprogram.o .obj/moc_qopenglengineshadermanager_p.o
.obj/moc_qopengltexture.o .obj/moc_qopengltimerquery.o  -L/TOOLCHAIN/l
oop/target/nicebox/sandbox/qt-everywhere-src-5.10.0/qtbase/lib -lQt5Core
-lpthread -L/usr/X11R7/lib -lGL -lpng12 -lqtharfbuzz -lz
.obj/qimage.o: In function `QImage::fill(unsigned int)':
qimage.cpp:(.text+0x46fa): undefined reference to `qt_memfill16(unsigned
short*, unsigned short, int)'
qimage.cpp:(.text+0x471f): undefined reference to `qt_memfill16(unsigned
short*, unsigned short, int)'
qimage.cpp:(.text+0x4802): undefined reference to `qt_memfill32(unsigned
int*, unsigned int, int)'
qimage.cpp:(.text+0x4828): undefined reference to `qt_memfill32(unsigned
int*, unsigned int, int)'
.obj/qimage_conversions.o:(.data.rel+0x20c): undefined reference to
`convert_ARGB_to_ARGB_PM_inplace_sse2(QImageData*,
QFlags<Qt::ImageConversionFlag>)'
.obj/qimage_conversions.o:(.data.rel+0x6ec): undefined reference to
`convert_ARGB_to_ARGB_PM_inplace_sse2(QImageData*,
QFlags<Qt::ImageConversionFlag>)'
.obj/qcompositionfunctions.o: In function `comp_func_solid_Clear(unsigned
int*, int, unsigned int, unsigned int)':
qcompositionfunctions.cpp:(.text+0x2064): undefined reference to
`qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qcompositionfunctions.o: In function `comp_func_Clear(unsigned int*,
unsigned int const*, int, unsigned int)':
qcompositionfunctions.cpp:(.text+0x210c): undefined reference to
`qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qcompositionfunctions.o: In function `comp_func_solid_Source(unsigned
int*, int, unsigned int, unsigned int)':
qcompositionfunctions.cpp:(.text+0x21b9): undefined reference to
`qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qcompositionfunctions.o: In function
`rasterop_solid_NotSource(unsigned int*, int, unsigned int, unsigned int)':
qcompositionfunctions.cpp:(.text+0x22b1): undefined reference to
`qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qcompositionfunctions.o: In function
`comp_func_solid_SourceOver(unsigned int*, int, unsigned int, unsigned
int)':
qcompositionfunctions.cpp:(.text+0x22fb): undefined reference to
`qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:(.text+0x2325): more undefined
references to `qt_memfill32(unsigned int*, unsigned int, int)' follow
.obj/qdrawhelper.o: In function `qt_rectfill_quint16(QRasterBuffer*, int,
int, int, int, QRgba64 const&)':
qdrawhelper.cpp:(.text+0x10504): undefined reference to
`qt_memfill16(unsigned short*, unsigned short, int)'
qdrawhelper.cpp:(.text+0x10522): undefined reference to
`qt_memfill16(unsigned short*, unsigned short, int)'
.obj/qdrawhelper.o: In function `qt_bitmapblit_quint16(QRasterBuffer*, int,
int, QRgba64 const&, unsigned char const*, int, int, int)':
qdrawhelper.cpp:(.text+0x105f7): undefined reference to
`qt_memfill16(unsigned short*, unsigned short, int)'
qdrawhelper.cpp:(.text+0x10649): undefined reference to
`qt_memfill16(unsigned short*, unsigned short, int)'
qdrawhelper.cpp:(.text+0x10686): undefined reference to
`qt_memfill16(unsigned short*, unsigned short, int)'
.obj/qdrawhelper.o:qdrawhelper.cpp:(.text+0x106cc): more undefined
references to `qt_memfill16(unsigned short*, unsigned short, int)' follow
.obj/qdrawhelper.o: In function `_GLOBAL__sub_I_qdrawhelper.cpp':
qdrawhelper.cpp:(.text.startup+0x19): undefined reference to
`qt_bitmapblit32_sse2(QRasterBuffer*, int, int, QRgba64 const&, unsigned
char const*, int, int, int)'
qdrawhelper.cpp:(.text.startup+0x31): undefined reference to
`qt_bitmapblit16_sse2(QRasterBuffer*, int, int, QRgba64 const&, unsigned
char const*, int, int, int)'
qdrawhelper.cpp:(.text.startup+0x3d): undefined reference to
`qt_bitmapblit8888_sse2(QRasterBuffer*, int, int, QRgba64 const&, unsigned
char const*, int, int, int)'
qdrawhelper.cpp:(.text.startup+0x5b): undefined reference to
`qt_scale_image_argb32_on_argb32_sse2(unsigned char*, int, unsigned char
const*, int, int, QRectF const&, QRectF const&, QRect const&, int)'
qdrawhelper.cpp:(.text.startup+0x7f): undefined reference to
`qt_blend_rgb32_on_rgb32_sse2(unsigned char*, int, unsigned char const*,
int, int, int, int)'
qdrawhelper.cpp:(.text.startup+0x91): undefined reference to
`qt_blend_argb32_on_argb32_sse2(unsigned char*, int, unsigned char const*,
int, int, int, int)'
qdrawhelper.cpp:(.text.startup+0xbb): undefined reference to
`qt_fetch_radial_gradient_sse2(unsigned int*, Operator const*, QSpanData
const*, int, int, int)'
qdrawhelper.cpp:(.text.startup+0xcd): undefined reference to
`comp_func_SourceOver_sse2(unsigned int*, unsigned int const*, int,
unsigned int)'
qdrawhelper.cpp:(.text.startup+0xd5): undefined reference to
`comp_func_solid_SourceOver_sse2(unsigned int*, int, unsigned int, unsigned
int)'
qdrawhelper.cpp:(.text.startup+0xe3): undefined reference to
`comp_func_Source_sse2(unsigned int*, unsigned int const*, int, unsigned
int)'
qdrawhelper.cpp:(.text.startup+0xec): undefined reference to
`comp_func_Plus_sse2(unsigned int*, unsigned int const*, int, unsigned int)'
collect2: error: ld returned 1 exit status
make[3]: *** [../../lib/libQt5Gui.so.5.10.0] Error 1
make[3]: Leaving directory
`/TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-src-5.10.0/qtbase/src/gui'
make[2]: *** [sub-gui-make_first] Error 2
make[2]: Leaving directory
`/TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-src-5.10.0/qtbase/src'
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory
`/TOOLCHAIN/loop/target/nicebox/sandbox/qt-everywhere-src-5.10.0/qtbase'
make: *** [module-qtbase-make_first] Error 2


On Wed, Jan 3, 2018 at 2:30 PM, Thiago Macieira <thiago.macieira at intel.com>
wrote:

> On Wednesday, 3 January 2018 16:02:33 -02 Toan Pham wrote:
> > The compiler I built a few years back was optimized for pentium4; it
> > wouldn't accept the -mavx2 option.  That's why I had to hack libvpx to
> > disable avx completely.
>
> AVX2 is a "relatively" modern instruction set, only available in GCC since
> 2011 (released in 2012, GCC 4.7). Are you sure the libvpx buildsystem
> couldn't
> cope with the absence of this option?
>
> In any case, if your compiler doesn't accept -mavx2, then it's older than
> GCC
> 4.7 and is therefore not supported with Qt 5.7 and up. Upgrade.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20180103/dc4e47f5/attachment.html>


More information about the Development mailing list