From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 67C78E00E5E; Sat, 20 Aug 2016 17:40:12 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.174 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 27EF0E00C5D for ; Sat, 20 Aug 2016 17:40:07 -0700 (PDT) Received: by mail-qk0-f174.google.com with SMTP id v123so66736296qkh.2 for ; Sat, 20 Aug 2016 17:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mindbent.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=aCd/bGAg5OuZvTf2RHdMfKrSHTFtu3p5SeLrIne0snI=; b=TDsVRIF3/UK+21xjhD0KWm5ga2NU2s2ppPrWcYK7h3sXzcvS45MkzkSTAKrVIxmcN7 a3nVGr9yWE0HOA3iDFnHAZ7JMSnRP63jFGnK/xa48cogPe0kg5TBUf0UQD+w/5kzaxvm 4SJOUerZTtLCCbXDPMY+rX4Qhlv1ANnpPjbdQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=aCd/bGAg5OuZvTf2RHdMfKrSHTFtu3p5SeLrIne0snI=; b=c03Ivk24SlZSAMdsfXzIV6CtWMmhc7z3aUeOIbteLMIn4bAUFsiVabW6Jp+lI7bHPy Gq+S5LOpfMJxRTd1mNmrMNiSz2ZQ/q7NZlVQ7eULPZNYoXL/qILuA4/Im4A445WNujFG wD0146AhO8CBTxIGNj1FrWCcEsF4w2Bp4rbZ1wRV2Jaw4Ng8JJcruKYrUhcYX8hJ3jE/ +tC7dDaIo+w63HBWoz8AY1LOF4GinDtc6LNm/hPayNDweN6lTySqq82hCqV6Bd9oWxMR Oc1bdcH/nPLCadJhuRbHkbW7Fph1+m8O4F+kRiOU3ZVWqqFaacbZfHccKbEqZXOrmtcS 5w/w== X-Gm-Message-State: AEkoouvs0TlizmJ+juAFZRFc14MCvHfDkNUJ4YHHexQ8udp3rbpT06Ssmrye2LPM2+InzXHZ+ii4Iab2GIhVoA== X-Received: by 10.55.10.148 with SMTP id 142mr16170420qkk.187.1471740006823; Sat, 20 Aug 2016 17:40:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.161.67 with HTTP; Sat, 20 Aug 2016 17:40:06 -0700 (PDT) X-Originating-IP: [24.236.201.110] From: Mark Farver Date: Sat, 20 Aug 2016 20:40:06 -0400 Message-ID: To: meta-freescale@yoctoproject.org Subject: libGL references libX11? X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2016 00:40:12 -0000 Content-Type: text/plain; charset=UTF-8 I attempted to make a image based on core-image-weston with the addition of just libsld2-ttf and it seems to get hung up with libGL referencing libX11 functions: Log data follows: | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common'] | DEBUG: Executing shell function do_compile | NOTE: make -j 16 | ./arm-poky-linux-gnueabi-libtool --tag=CC --mode=link arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/build/fsl-community-krogoth/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/libsdl2-ttf/2.0.14-r0=/usr/src/debug/libsdl2-ttf/2.0.14-r0 -fdebug-prefix-map=/home/build/fsl-community-krogoth/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd= -I/home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/include/freetype2 -D_REENTRANT -I/home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/include/SDL2 -DHAVE_OPENGL -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o glfont glfont.o libSDL2_ttf.la -lGL -lm -lfreetype -lSDL2 | arm-poky-linux-gnueabi-libtool: link: arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/build/fsl-community-krogoth/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/libsdl2-ttf/2.0.14-r0=/usr/src/debug/libsdl2-ttf/2.0.14-r0 -fdebug-prefix-map=/home/build/fsl-community-krogoth/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd= -I/home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/include/freetype2 -D_REENTRANT -I/home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/include/SDL2 -DHAVE_OPENGL -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o .libs/glfont glfont.o ./.libs/libSDL2_ttf.so -lGL /home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/lib/libfreetype.so -lz /home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/lib/libSDL2.so -ldl -lEGL /home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/lib/libwayland-cursor.so /home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/lib/libwayland-client.so /home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/lib/libffi.so -lm /home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/lib/libxkbcommon.so -lpthread -lrt -pthread | /home/build/fsl-community-krogoth/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/ld: warning: libXdamage.so.1, needed by /home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/lib/libGL.so, not found (try using -rpath or -rpath-link) | /home/build/fsl-community-krogoth/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/ld: warning: libXfixes.so.3, needed by /home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/lib/libGL.so, not found (try using -rpath or -rpath-link) | /home/build/fsl-community-krogoth/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/ld: warning: libXext.so.6, needed by /home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/lib/libGL.so, not found (try using -rpath or -rpath-link) | /home/build/fsl-community-krogoth/build/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.3.0/ld: warning: libX11.so.6, needed by /home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/lib/libGL.so, not found (try using -rpath or -rpath-link) | /home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/lib/libGL.so: undefined reference to `XQueryExtension' | /home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/lib/libGL.so: undefined reference to `_XReply' | /home/build/fsl-community-krogoth/build/tmp/sysroots/imx6qsabresd/usr/lib/libGL.so: undefined reference to `XFree' ...references to many other X11 functions This isn't the first time I've seen this when trying to get OpenGL running without X. Is there some other way I should be getting GL support? core-image-weston-sdl.bb ------------------------------------------------------- SUMMARY = "A very basic Wayland image with a terminal" IMAGE_FEATURES += "splash package-management ssh-server-dropbear hwcodecs" LICENSE = "MIT" inherit core-image distro_features_check REQUIRED_DISTRO_FEATURES = "wayland" CORE_IMAGE_BASE_INSTALL += "weston weston-init weston-examples gtk+3-demo clutter-1.0-examples" IMAGE_INSTALL += " libsdl2-ttf" local.conf ------------------------------------------------------- MACHINE ??= 'imx6qsabresd' DISTRO ?= 'poky' PACKAGE_CLASSES ?= "package_rpm" EXTRA_IMAGE_FEATURES ?= "debug-tweaks" USER_CLASSES ?= "buildstats image-mklibs" PATCHRESOLVE = "noop" BB_DISKMON_DIRS = "\ STOPTASKS,${TMPDIR},1G,100K \ STOPTASKS,${DL_DIR},1G,100K \ STOPTASKS,${SSTATE_DIR},1G,100K \ STOPTASKS,/tmp,100M,100K \ ABORT,${TMPDIR},100M,1K \ ABORT,${DL_DIR},100M,1K \ ABORT,${SSTATE_DIR},100M,1K \ ABORT,/tmp,10M,1K" PACKAGECONFIG_append_pn-qemu-native = " sdl" PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl" CONF_VERSION = "1" DL_DIR ?= "${BSPDIR}/downloads/" ACCEPT_FSL_EULA = "1" PREFERRED_PROVIDER_jpeg = "libjpeg-turbo" PREFERRED_PROVIDER_jpeg-native = "libjpeg-turbo-native" DISTRO_FEATURES_LIBC = "ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt \ libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse \ libc-getlogin libc-idn libc-inet libc-inet-anl libc-libm libc-locales libc-locale-code \ libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams libc-sunrpc \ libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc \ libc-posix-wchar-io" DISTRO_FEATURES = "alsa argp largefile usbhost wifi xattr nfs zeroconf pci 3g ${DISTRO_FEATURES_LIBC} opengl wayland" Anyone have any suggestions... or is this impossible becuase libsdl2-ttf generally users FreeType (I think)? I have an app that was written to use SDL2 on X windows to render a GUI, and then used mplayer to superimpose a h264 video on top. I need accelerated video support, and apparently NXP doesn't have XV support in the Vivante X11 driver and probably never will. Is there any way I can use both SDL and a video playback engine to render hardware accelerated video? Thank you Mark Farver