试图为ARM7交叉编译QtWebEngine

时间:2017-01-10 12:07:25

标签: c++ qt ubuntu cross-compiling arm7

我在AMD64 CPU上运行Ubuntu 16.04。 我正在尝试为ARM7交叉编译Qt5.7.1代码,包括QtWebEngine。

我成功地为AMD64成功编译了Qt库,并且还设法编译QtCore以生成在我的ARM7目标上运行的基本Qt应用程序。

我的问题来自尝试交叉编译QtWebEngine组件,这需要OpenGLES2。我正在尝试将交叉编译配置为:

../qt5/configure -release -opengl es2 -device linux-beaglebone-g++ -device-option CROSS_COMPILE=/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -nomake tools -nomake examples -opensource -confirm-license -prefix /opt/Qt5.7.1_ARM7 -v -pkg-config

以下是引用的Beaglebone qmake文件:

#
# qmake configuration for the BeagleBoard and BeagleBoard xM boards
# http://beagleboard.org/

MAKEFILE_GENERATOR      = UNIX
CONFIG                 += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)

load(device_config)

QT_QPA_DEFAULT_PLATFORM = eglfs

# modifications to g++.conf
QMAKE_CC                = $${CROSS_COMPILE}gcc
QMAKE_CXX               = $${CROSS_COMPILE}g++
QMAKE_LINK              = $${QMAKE_CXX}
QMAKE_LINK_SHLIB        = $${QMAKE_CXX}

# modifications to linux.conf
QMAKE_AR                = $${CROSS_COMPILE}ar cqs
QMAKE_OBJCOPY           = $${CROSS_COMPILE}objcopy
QMAKE_NM                = $${CROSS_COMPILE}nm -P
QMAKE_STRIP             = $${CROSS_COMPILE}strip

COMPILER_FLAGS          = -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard

#modifications to gcc-base.conf
QMAKE_CFLAGS           += $${COMPILER_FLAGS}
QMAKE_CXXFLAGS         += $${COMPILER_FLAGS}
QMAKE_CXXFLAGS_RELEASE += -O3

QMAKE_LIBS             += -lrt -lpthread -ldl

# Extra stuff (OpenGL, DirectFB, ...)
QMAKE_INCDIR_EGL        = /home/doug/build/Wayland/install/include
QMAKE_LIBDIR_EGL        = /usr/lib/arm-linux-gnueabihf
QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
QMAKE_LIBDIR_OPENGL_ES2 = $${QMAKE_LIBDIR_EGL}
QMAKE_INCDIR_OPENVG     = $${QMAKE_INCDIR_EGL}
QMAKE_LIBDIR_OPENVG     = $${QMAKE_LIBDIR_EGL}

QMAKE_LIBS_EGL          = -lEGL
QMAKE_LIBS_OPENGL_ES2   = -lGLESv2 $${QMAKE_LIBS_EGL}
QMAKE_LIBS_OPENVG       = -lOpenVG $${QMAKE_LIBS_EGL}

DISTRO_OPTS += hard-float

# No need for any special EGL device integration.
# Prioritize the default, compiled-in integration over any plugins.
EGLFS_DEVICE_INTEGRATION = none

include(../common/linux_arm_device_post.conf)

load(qt_config)

我已经在我的Ubuntu安装上启用了multi-arch并安装了armgf版本的libgles2-dev软件包,交叉编译器似乎很满意。

现在的问题是编译器似乎无法看到opengles2所依赖的其他库 - 这就是我目前所获得的:

checking for OpenGL ES 2.0... 
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard -mfloat-abi=hard -O2 -O3 -Wall -W -fPIC  -I/home/doug/workspace/qt5/qtbase/config.tests/unix/opengles2 -I. -I/home/doug/build/Wayland/install/include -I/home/doug/workspace/qt5/qtbase/mkspecs/devices/linux-beaglebone-g++ -o opengles2.o /home/doug/workspace/qt5/qtbase/config.tests/unix/opengles2/opengles2.cpp
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard -Wl,-O1 -o opengles2 opengles2.o   -lrt -lpthread -ldl -L/usr/lib/arm-linux-gnueabihf -lGLESv2 -lEGL 
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libglapi.so.0, needed by /usr/lib/arm-linux-gnueabihf/libGLESv2.so, not found (try using -rpath or -rpath-link)
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libX11-xcb.so.1, needed by /usr/lib/arm-linux-gnueabihf/libEGL.so, not found (try using -rpath or -rpath-link)
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libxcb-dri2.so.0, needed by /usr/lib/arm-linux-gnueabihf/libEGL.so, not found (try using -rpath or -rpath-link)
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libxcb-dri3.so.0, needed by /usr/lib/arm-linux-gnueabihf/libEGL.so, not found (try using -rpath or -rpath-link)
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libxcb-present.so.0, needed by /usr/lib/arm-linux-gnueabihf/libEGL.so, not found (try using -rpath or -rpath-link)
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libxcb-xfixes.so.0, needed by /usr/lib/arm-linux-gnueabihf/libEGL.so, not found (try using -rpath or -rpath-link)
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libxcb-sync.so.1, needed by /usr/lib/arm-linux-gnueabihf/libEGL.so, not found (try using -rpath or -rpath-link)
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libxcb.so.1, needed by /usr/lib/arm-linux-gnueabihf/libEGL.so, not found (try using -rpath or -rpath-link)
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libxshmfence.so.1, needed by /usr/lib/arm-linux-gnueabihf/libEGL.so, not found (try using -rpath or -rpath-link)
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libwayland-client.so.0, needed by /usr/lib/arm-linux-gnueabihf/libEGL.so, not found (try using -rpath or -rpath-link)
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libwayland-server.so.0, needed by /usr/lib/arm-linux-gnueabihf/libEGL.so, not found (try using -rpath or -rpath-link)
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libgbm.so.1, needed by /usr/lib/arm-linux-gnueabihf/libEGL.so, not found (try using -rpath or -rpath-link)
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libexpat.so.1, needed by /usr/lib/arm-linux-gnueabihf/libEGL.so, not found (try using -rpath or -rpath-link)
/home/doug/workspace/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.4/../../../../arm-linux-gnueabihf/bin/ld: warning: libdrm.so.2, needed by /usr/lib/arm-linux-gnueabihf/libEGL.so, not found (try using -rpath or -rpath-link)
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_display_dispatch_pending'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri3_open_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_xfixes_destroy_region'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `drmIoctl'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_get_buffers_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_proxy_add_listener'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_client_post_no_memory'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `XGetXCBConnection'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_connection_has_error'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_present_query_capabilities'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_get_buffers_with_format_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_connect_driver_name'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_depth_visuals_length'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `drmGetCap'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_proxy_destroy'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `XML_ParserCreate'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_unregister_for_special_event'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `drmGetMagic'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_create_pixmap'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `gbm_bo_import'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_display_disconnect'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_query_version'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_connect_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_resource_post_error'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_authenticate_unchecked'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_resource_destroy'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_copy_region_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_get_extension_data'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `drmFreeVersion'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_swap_buffers_unchecked'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `XML_GetErrorCode'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_free_gc'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `XML_SetUserData'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xshmfence_map_shm'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_resource_get_user_data'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_get_image_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_put_image'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_event_queue_destroy'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_buffer_interface'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_copy_area'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_connect_device_name_length'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_get_image_data_length'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_xfixes_query_version'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_present_query_capabilities_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_proxy_set_queue'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_get_image_data'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `XML_GetCurrentColumnNumber'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_connect'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_prefetch_extension_data'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri3_id'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_present_select_input_checked'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_setup_roots_iterator'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri3_pixmap_from_buffer'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_present_query_version'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri3_open_reply_fds'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_get_buffers_with_format_buffers'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_resource_set_implementation'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_resource_instance_of'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_connect_driver_name_length'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri3_query_version_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_get_msc'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_get_setup'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_copy_area_checked'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_present_id'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_poll_for_special_event'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `XML_ParseBuffer'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_swap_interval'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_get_geometry'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_create_drawable_checked'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_depth_visuals'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_resource_create'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `gbm_device_get_fd'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_destroy_drawable'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_connect_device_name'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_flush'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_display_interface'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_get_geometry_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `XML_GetCurrentLineNumber'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_shm_pool_interface'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_global_destroy'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xshmfence_unmap_shm'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_callback_interface'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_id'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xshmfence_reset'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_global_create'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `drmCommandWriteRead'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_shm_interface'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_present_pixmap'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_display_connect'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_registry_interface'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_xfixes_id'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_proxy_marshal'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri3_buffer_from_pixmap_reply_fds'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_register_for_special_xge'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_copy_region_unchecked'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_screen_allowed_depths_iterator'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xshmfence_alloc_shm'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `XML_ErrorString'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `gbm_device_get_backend_name'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xshmfence_await'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_swap_buffers_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_sync_destroy_fence'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_get_image'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `gbm_create_device'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_authenticate_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_display_dispatch_queue'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_xfixes_query_version_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_display_flush'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_get_buffers_unchecked'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri3_open'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_xfixes_create_region'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `gbm_device_destroy'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `XML_ParserFree'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_present_query_version_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_resource_post_no_memory'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_create_gc'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_get_msc_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_free_pixmap'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_discard_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `XML_SetElementHandler'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `drmGetVersion'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_proxy_marshal_constructor'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri3_buffer_from_pixmap_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `XML_Parse'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri3_fence_from_fd'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `XML_GetBuffer'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_sync_trigger_fence'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_request_check'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_generate_id'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_create_drawable'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `gbm_bo_create'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_screen_next'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_disconnect'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_connect_unchecked'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_resource_post_event'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `drmAuthMagic'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xshmfence_trigger'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri3_buffer_from_pixmap'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `drmGetRenderDeviceNameFromFd'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_wait_for_special_event'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri3_query_version'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `wl_display_create_queue'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_get_buffers_with_format_unchecked'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `drmGetNodeTypeFromFd'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_query_version_reply'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `gbm_bo_destroy'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_depth_next'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_present_notify_msc'
/usr/lib/arm-linux-gnueabihf/libGLESv2.so: undefined reference to `_glapi_tls_Dispatch'
/usr/lib/arm-linux-gnueabihf/libEGL.so: undefined reference to `xcb_dri2_get_buffers_buffers'
collect2: error: ld returned 1 exit status
Makefile:91: recipe for target 'opengles2' failed

Doe有没有人知道我需要做什么才能继续?我是否需要安装所有这些库的armhf版本?

谢谢,非常感谢。

1 个答案:

答案 0 :(得分:0)

您不需要使用ARM软件包污染您的Ubuntu安装。 Qt的配置脚本允许passing sysroot as an argument。例如,当我使用Raspberry Pi时,我甚至不必使用SD卡。我只挂载图像文件包含的文件系统(一个启动,一个安装实际的Linux发行版(Raspbian等))并使用它。我还没有使用Beaglebone,但据我所知,你可以在其上运行Linux安装,因此使用该安装中已提供的库将为您提供一种处理构建过程所需的所有依赖项的好方法。如果缺少某些库,则可以在运行的ARM Linux安装上安装这些库。 Omho这是更简单的方法,因为您可以简单地使用该ARM发行版的软件包管理器来下载和安装缺少的库。