我在为beagleboard构建嵌入式QT5时遇到了一些错误
2.QMAKESPEC出口QMAKESPEC=“
QImage::fill(unsigned int)': qimage.cpp:(.text+0x3926): undefined reference toqt_memfill32(无符号int*,无符号int,int)‘qimage.cpp:(.text+0x3a7a):未定义的对qt_memfill32(unsigned int*, unsigned int, int)' .obj/qimage_conversions.o: In functionqInitImageConversions()的引用’:qimage_conversions.cpp:(.text+0x3458):未定义的对convert_RGB888_to_RGB32_neon(QImageData*, QImageData const*, QFlags<Qt::ImageConversionFlag>)' .obj/qdrawhelper.o: In functionvoid qt_rectfill的引用(无符号int*,无符号int,int)':qdrawhelper.cpp:(.text+0x6578):未定义的对qt_memfill32(unsigned int*, unsigned int, int)' .obj/qdrawhelper.o: In functionvoidqt_bitmapblit_template的引用(QRasterBuffer*,int,int,unsigned int,unsigned char const*,int,int,int)':qdrawhelper.cpp:(.text+0x6caa):对qt_memfill32(unsigned int*, unsigned int, int)' qdrawhelper.cpp:(.text+0x6ccc): undefined reference toqt_memfill32(无签名int*,无符号int,int)‘qdrawhelper.cpp:(.text+0x6dce):未定义的对qt_memfill32(unsigned int*, unsigned int, int)' qdrawhelper.cpp:(.text+0x6df6): undefined reference toqt_memfill32的引用(无符号int*、无符号int、int)’对qt_memfill32(unsigned int*, unsigned int, int)' follow .obj/qdrawhelper.o: In functionqInitDrawhelperAsm()的更多未定义引用: qdrawhelper.cpp:(.text+0x1b6f8):未定义的对qt_blend_rgb32_on_rgb32_neon(unsigned char*, int, unsigned char const*, int, int, int, int)' qdrawhelper.cpp:(.text+0x1b6fc): undefined reference toqt_blend_argb32_on_argb32_neon(unsigned char*、int、unsigned char const*、int、int、int的引用。( int)‘qt_blend_argb32_on_rgb16_neon(unsigned char*, int, unsigned char const*, int, int, int, int)' qdrawhelper.cpp:(.text+0x1b704): undefined reference toqt_blend_rgb16_on_argb32_neon(unsigned qdrawhelper.cpp:(.text+0x1b700):未定义的对qt_blend_rgb16_on_rgb16_neon(unsigned char*, int, unsigned char const*, int, int, int, int)' qdrawhelper.cpp:(.text+0x1b710): undefined reference toqt_scale_image_argb32_on_rgb16_neon(unsigned char*、int、un符号char const*、int、int)’qdrawhelper.cpp:(.text+0x1b708):(.text+0x1b708):未定义引用qt_blend_rgb16_on_rgb16_neon(unsigned char*, int, unsigned char const*, int, int, int, int)' qdrawhelper.cpp:(.text+0x1b710): undefined reference toqt_scale_image_argb32_on_rgb16_neon(unsigned char*、int、QRectF const&、QRectF const&、QRect const&,( int)‘qt_scale_image_rgb16_on_rgb16_neon(unsigned char*, int, unsigned char const*, int, int, QRectF const&, QRectF const&, QRect const&, int)' qdrawhelper.cpp:(.text+0x1b718): undefined reference toqt_transform_image_argb32_on_rgb16_neon(unsigned:(.text+0x1b714):未定义的对qt_transform_image_rgb16_on_rgb16_neon(unsigned char*, int, unsigned char const*, int, QRectF const&, QRectF const&, QRect const&, QTransform const&, int)' qdrawhelper.cpp:(.text+0x1b724): undefined reference toqt_alphamapblit_quint16_neon(QRasterBuffer*,字符*、int、无符号char const*、int、QRectF const&、QRectF const&、QRect const&、QTransform const&,int )的引用(.text+0x1b720):(.text+0x1b720):(.text+0x1b720):未定义的对qt_transform_image_rgb16_on_rgb16_neon(unsigned char*, int, unsigned char const*, int, QRectF const&, QRectF const&, QRect const&, QTransform const&, int)' qdrawhelper.cpp:(.text+0x1b724): undefined reference toqt_alphamapblit_quint16_neon(QRasterBuffer*,int、int、unsigned int、unsigned char const*、int、int的引用。( qt_blend_argb32_on_argb32_scanline_neon(unsigned int*, unsigned int const*, int, unsigned int)' qdrawhelper.cpp:(.text+0x1b734): undefined reference tocomp_func_solid_SourceOver_neon(unsigned ) qdrawhelper.cpp:(.text+0x1b738):未定义的对comp_func_Plus_neon(unsigned int*, unsigned int const*, int, unsigned int)' qdrawhelper.cpp:(.text+0x1b73c): undefined reference toqt_destFetchRGB16_neon(unsigned int*、QRasterBuffer*、int、int、int)‘qdrawhelper.cpp:(.text+0x1b740):未定义的对qt_destStoreRGB16_neon(QRasterBuffer*, int, int, unsigned int const*, int)' qdrawhelper.cpp:(.text+0x1b748): undefined reference toqt_memrotate90_16_neon(unsigned const*、int、unsigned *的引用,‘qdrawhelper.cpp:(.text+0x1b74c):未定义的对QSpanData int*、运算符const*、QSpanData const*、int、int、int)的引用。.obj/qdrapuper.o:在函数void qt_rectfill<unsigned int>(unsigned int*, unsigned int, int, int, int, int, int)': qdrawhelper.cpp:(.text+0x6590): undefined reference toqt_memfill32(无符号int*,无符号int,int)’..obj/qdrapuper.o中:在函数rasterop_solid_NotSource(unsigned int*, int, unsigned int, unsigned int)': qdrawhelper.cpp:(.text+0x65f4): undefined reference toqt_memfill32(无符号int*、无符号int、int)‘..obj/qdrapper.o:在函数comp_func_solid_Source(unsigned int*, int, unsigned int, unsigned int)': qdrawhelper.cpp:(.text+0x67a2): undefined reference toqt_memfill32(无符号int*、无符号int*、无符号int,int)中,O:在函数comp_func_Clear(unsigned int*, unsigned int const*, int, unsigned int)': qdrawhelper.cpp:(.text+0x6906): undefined reference toqt_memfill32(无符号int*,无符号int,int)‘..obj/qdrapuper.o:函数comp_func_solid_Clear(unsigned int*, int, unsigned int, unsigned int)': qdrawhelper.cpp:(.text+0x6a6a): undefined reference toqt_memfill32(无符号int*,无符号int,( .obj/qdrawhelper.o:qdrawhelper.cpp:(.text+0x6c1e):)对qt_memfill32(unsigned int*, unsigned int, int)' follow collect2: error: ld returned 1 exit status make[3]: *** [../../lib/libQt5Gui.so.5.4.0] Error 1 make[3]: Leaving directory/home/nirvana/ti-sdk-beagleboard-06.00.00.00/qt-everywhere-opensource-src-5.4.0-master/qtbase/src/gui‘make2的更多未定义引用:* sub_first错误2 make2:离开目录 `/home/nirvana/ti-sdk-beagleboard-06.00.00.00/qt-everywhere-opensource-src-5.4.0-主/qtbase/src‘make1:* src make_first make1 2 make1:离开make1:*模块-qtbase-make_first make1 2有什么理想吗?
非常感谢
发布于 2015-02-04 13:42:26
我简单地解决了这个问题,强迫Qt编译ARM处理器的“neon”支持,只需在“./配置”之后修改“qtbase/mkspecs/qmodule.pri”中的以下行:
host_build {
QT_CPU_FEATURES.i386 =
} else {
QT_CPU_FEATURES.arm = neon
}https://stackoverflow.com/questions/28320243
复制相似问题