I am using buildroot-2015.05 Installed on a fresh Ubuntu 14.04 host, with only basic build requirements ie "apt-get install build-essential git ccache" I have configured BuildRoot for basic Xorg with mplayer. (I'll attach defconfig) The "make" passes without error and everything works on target H/W except mplayer. Mplayer acts as-if there is no xorg. I have discovered, if I "apt-get install xorg-dev" to the host and rebuild mplayer it will then work. Why is mplayer's configure using the host's xorg-development files? I would expect it must use the BuildRoot tree's development files. sorry I can not attach a simple text file... DAH! So I'll just paste here: BR2_arm=y BR2_cortex_a7=y BR2_ARM_EABIHF=y BR2_DEFCONFIG="$(CONFIG_DIR)/defconfig" BR2_CCACHE=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y BR2_TOOLCHAIN_EXTERNAL_PATH="$(HOME)/xu3_mplayer/linaro-4.9" BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-linux-gnueabihf" BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_17=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y BR2_TOOLCHAIN_EXTERNAL_CXX=y BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_ROOTFS_POST_BUILD_SCRIPT="support/scripts/config_eth" BR2_PACKAGE_ALSA_UTILS=y BR2_PACKAGE_ALSA_UTILS_SPEAKER_TEST=y BR2_PACKAGE_FFMPEG=y BR2_PACKAGE_MPLAYER=y BR2_PACKAGE_MESA3D_DEMOS=y BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y BR2_PACKAGE_MESA3D_OPENGL_EGL=y BR2_PACKAGE_MESA3D_OPENGL_ES=y BR2_PACKAGE_XORG7=y BR2_PACKAGE_XSERVER_XORG_SERVER=y BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR=y BR2_PACKAGE_XSERVER_XORG_SERVER_AIGLX=y BR2_PACKAGE_XAPP_TWM=y BR2_PACKAGE_XAPP_XCLOCK=y BR2_PACKAGE_XDRIVER_XF86_INPUT_EVDEV=y BR2_PACKAGE_XDRIVER_XF86_INPUT_KEYBOARD=y BR2_PACKAGE_XDRIVER_XF86_INPUT_MOUSE=y BR2_PACKAGE_XDRIVER_XF86_VIDEO_ARMSOC=y BR2_PACKAGE_XDRIVER_XF86_VIDEO_FBDEV=y BR2_PACKAGE_XTERM=y BR2_PACKAGE_PYTHON=y BR2_PACKAGE_PYTHON_BZIP2=y BR2_PACKAGE_PYTHON_READLINE=y BR2_PACKAGE_PYTHON_SSL=y BR2_PACKAGE_PYTHON_PYEXPAT=y BR2_PACKAGE_PYTHON_ZLIB=y BR2_PACKAGE_LIBDRI2=y BR2_PACKAGE_LIBDRM_EXYNOS=y BR2_PACKAGE_LIBGLEW=y BR2_PACKAGE_LIBGLU=y BR2_PACKAGE_WAYLAND=y BR2_PACKAGE_OPENSSH=y BR2_PACKAGE_RSYNC=y
What exact errors is "mplayer" giving you? Can you attach the part of the build log related to mplayer (i.e all parts that are surrounded by ">>> mplayer ..." lines) ? Buildroot tries as much as possible to not be influenced by things available on the host machine. However, since the builds are not done inside a chroot, we cannot guarantee 100% that things installed on your host machine will not influence the build in a subtle way.
Please try this patch: http://patchwork.ozlabs.org/patch/492595/
Should be fixed by http://git.buildroot.net/buildroot/commit/?id=df8bfa3f8c0c825655fac68a22b6b95039c5bd14. Thanks Bernd!
Created attachment 6106 [details] console log when executing the "bad" mplayer
Quoting http://thread.gmane.org/gmane.comp.lib.uclibc.buildroot/119274/focus=119720 console_log_bad_mplayer_rebuild.txt <http://buildroot-busybox.2317881.n4.nabble.com/file/n105280/console_log_bad_mplayer_rebuild.txt> > Checking for X11 headers presence ... no (check if the dev(el) packages are installed) > Checking for X11 ... no (check if the dev(el) packages are installed) console_log_good_mplayer_rebuild.txt <http://buildroot-busybox.2317881.n4.nabble.com/file/n105280/console_log_good_mplayer_rebuild.txt> > Checking for X11 headers presence ... yes > Checking for X11 ... yes It is clearly visible that mplayer, without my patch posted in this bug report, picked up xorg headers from the host. I could reproduce the behaviour from console_log_bad_mplayer_rebuild.txt, which is fixed with my patch.
Developers were not aware of failures and further testing because gmail replies were being dropped without notification. Information provided by additional testing: date: Tue, Jul 7, 2015 at 9:30 PM subject: Re: [Bug 8206] mplayer uses host xorg development files mailed-by: gmail.com Thomas & Bernd, It is rather easy to reproduce the bad mplayer build. if I remove the xorg-dev packages then make mplayer-dirclean, make mplayer-reinstall I get a bad mplayer. see attached "console_log_bad_mplayer_execute.txt" if I then install xorg-dev packages and make mplayer-dirclean, make mplayer-reinstall I get a good mplayer. see attached "console_log_good_mplayer_rebuild.txt" It appears I am not generating the build log that Thomas was asking for, so I've made console logs of the good and bad builds of mplayer. These logs are also attached: "console_log_good_mplayer_rebuild.txt" "console_log_bad_mplayer_rebuild.txt" When I remove xorg-dev these packages are contained in xorg-dev apt-get remove --purge xorg-dev then apt-get autoremove the following packages are removed: Removing libdmx-dev:amd64 (1:1.1.3-1) ... Removing libdmx1:amd64 (1:1.1.3-1) ... Removing xserver-xorg-dev (2:1.17.1-0ubuntu3) ... Removing mesa-common-dev:amd64 (10.5.2-0ubuntu1) ... Removing libdrm-dev:amd64 (2.4.60-2) ... Removing libxft-dev (2.3.2-1) ... Removing libfontconfig1-dev:amd64 (2.11.1-0ubuntu6) ... Removing libexpat1-dev:amd64 (2.1.0-6ubuntu1) ... Removing libxfont-dev (1:1.4.99.901-1ubuntu1) ... Removing libfontenc-dev:amd64 (1:1.1.2-1) ... Removing libfreetype6-dev:amd64 (2.5.2-2ubuntu3) ... Removing libfs-dev:amd64 (2:1.0.6-1) ... Removing libfs6:amd64 (2:1.0.6-1) ... Removing libxaw7-dev:amd64 (2:1.0.12-2) ... Removing libxmu-dev:amd64 (2:1.1.2-1) ... Removing libxt-dev:amd64 (1:1.1.4-1) ... Removing libsm-dev:amd64 (2:1.2.2-1) ... Removing libice-dev:amd64 (2:1.0.9-1) ... Removing libmirclient-dev:amd64 (0.12.1+15.04.20150324-0ubuntu1) ... Removing libmircommon-dev:amd64 (0.12.1+15.04.20150324-0ubuntu1) ... Removing libpciaccess-dev:amd64 (0.13.2-3build1) ... Removing libpixman-1-dev (0.32.6-3) ... Removing libpng12-dev:amd64 (1.2.51-0ubuntu3) ... Removing libprotobuf-dev:amd64 (2.6.1-1) ... Removing libprotobuf-lite9:amd64 (2.6.1-1) ... Removing libxxf86vm-dev:amd64 (1:1.1.3-1) ... Removing libxxf86dga-dev:amd64 (2:1.1.4-1) ... Removing libx11-doc (2:1.6.2-2ubuntu2) ... Removing libxcomposite-dev (1:0.4.4-1) ... Removing libxcursor-dev:amd64 (1:1.1.14-1) ... Removing libxdamage-dev:amd64 (1:1.1.4-2) ... Removing libxvmc-dev:amd64 (2:1.0.8-2ubuntu1) ... Removing libxv-dev:amd64 (2:1.0.10-1) ... Removing libxtst-dev:amd64 (2:1.2.2-1) ... Removing libxi-dev (2:1.7.4-1) ... Removing libxfixes-dev:amd64 (1:5.0.1-2) ... Removing libxinerama-dev:amd64 (2:1.1.3-1) ... Removing libxkbcommon-dev (0.4.3-2) ... Removing libxkbfile-dev:amd64 (1:1.0.8-1) ... Removing libxmuu-dev:amd64 (2:1.1.2-1) ... Removing libxmu-headers (2:1.1.2-1) ... Removing libxpm-dev:amd64 (1:3.5.11-1) ... Removing libxrandr-dev:amd64 (2:1.4.2-1) ... Removing libxrender-dev:amd64 (1:0.9.8-1build1) ... Removing libxres-dev (2:1.0.7-1) ... Removing libxss-dev:amd64 (1:1.2.2-1) ... Removing x11proto-bigreqs-dev (1:1.1.2-1) ... Removing x11proto-composite-dev (1:0.4.2-2) ... Removing x11proto-xf86dga-dev (2.1-3) ... Removing x11proto-xf86bigfont-dev (1.2.0-3) ... Removing x11proto-damage-dev (1:1.2.1-2) ... Removing x11proto-dmx-dev (1:2.3.1-2) ... Removing x11proto-dri2-dev (2.8-2) ... Removing x11proto-dri3-dev (1.0-1) ... Removing x11proto-fixes-dev (1:5.0-2ubuntu2) ... Removing x11proto-fonts-dev (2.1.3-1) ... Removing x11proto-gl-dev (1.4.17-1) ... Removing x11proto-present-dev (1.0-1) ... Removing x11proto-randr-dev (1.4.0+git20120101.is.really.1.4.0-0ubuntu1) ... Removing x11proto-record-dev (1.14.2-1) ... Removing x11proto-render-dev (2:0.11.1-2) ... Removing x11proto-resource-dev (1.2.0-3) ... Removing x11proto-scrnsaver-dev (1.2.2-1) ... Removing x11proto-video-dev (2.3.2-1) ... Removing x11proto-xcmisc-dev (1.2.2-1) ... Removing x11proto-xf86dri-dev (2.1.1-2) ... Removing x11proto-xf86vidmode-dev (2.3.1-2) ... Removing x11proto-xinerama-dev (1.2.1-2) ... Removing zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu1) ... Removing libxext-dev:amd64 (2:1.3.3-1) ... Removing x11proto-xext-dev (7.3.0-1) ... Removing libx11-dev:amd64 (2:1.6.2-2ubuntu2) ... Removing libxcb1-dev:amd64 (1.10-2ubuntu1) ... Removing libpthread-stubs0-dev:amd64 (0.3-4) ... Removing libxau-dev:amd64 (1:1.0.8-1) ... Removing libxdmcp-dev:amd64 (1:1.1.1-1build1) ... Removing x11proto-input-dev (2.3.1-1) ... Removing x11proto-kb-dev (1.0.6-2) ... Removing xtrans-dev (1.3.5-1) ... Removing x11proto-core-dev (7.0.26-1) ... Removing xorg-sgml-doctools (1:1.11-1) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for libc-bin (2.21-0ubuntu4) ... Processing triggers for doc-base (0.10.6) ... Processing 3 removed doc-base files...
I've submitted a patch to fix this: https://patchwork.ozlabs.org/patch/664684/
Patch applied in https://git.buildroot.org/buildroot/commit/?id=6ae3ce9585dcbdfd381111aa9d885bc5b46020d4.