Request help regarding building of mesa module

Marek Chalupa mchqwerty at gmail.com
Tue Aug 12 02:42:22 PDT 2014


On 12 August 2014 11:31, <gautam.h.kumar at accenture.com> wrote:

>  Hi Marek,
>
>
>
> 1] I built the drm with the enable intel option as suggested by you
>
>
>
> root at ivi-VirtualBox:/source_build/drm# ./autogen.sh --enable-intel
>
> root at ivi-VirtualBox:/source_build/drm# make
>
> root at ivi-VirtualBox:/source_build/drm# make install
>
>                root at ivi-VirtualBox:/source_build/drm# cd ..
>
>                root at ivi-VirtualBox:/source_build# cd mesa
>
>
>
> 2] I built the mesa component as given in the
> http://wayland.freedesktop.org/ubuntu12.04.html
>
>
>
> root at ivi-VirtualBox:/source_build/mesa# ./autogen.sh --prefix=$WLD
> --enable-gles2 --disable-gallium-egl \
>
> >  --with-egl-platforms=x11,wayland,drm --enable-gbm --enable-shared-glapi
> \
>
> >  --with-gallium-drivers=r300,r600,swrast,nouveau \
>
> >  --disable-llvm-shared-libs # this may be a bug in the llvm package
>
>
>
> I am getting the Errors
>
>
>
> checking for PRESENTPROTO... yes
>
> checking for XF86VIDMODE... yes
>
> checking for DRIGL... no
>
> configure: error: Package requirements (x11 xext xdamage xfixes x11-xcb
> xcb-glx >= 1.8.1 xcb-dri2 >= 1.8 xcb-dri3 xcb-present xcb-sync xshmfence >=
> 1.1 xxf86vm) were not met:
>
>
>
> No package 'xcb-dri3' found
>
> No package 'xcb-present' found
>
> No package 'xcb-sync' found
>
> No package 'xshmfence' found
>

So read the errors! :) Build these packages. These are available from:

http://cgit.freedesktop.org/xcb
http://cgit.freedesktop.org/xorg

Or you can install them from your system's repository, if the version is OK
(the -devel ones). Next time you get this message, just
try to find the package on the internet and build it (or the repo thing).


>  Consider adjusting the PKG_CONFIG_PATH environment variable if you
>
> installed software in a non-standard prefix.
>
>
>
> Alternatively, you may set the environment variables DRIGL_CFLAGS
>
> and DRIGL_LIBS to avoid the need to call pkg-config.
>
> See the pkg-config man page for more details.
>
> root at ivi-VirtualBox:/source_build/mesa# find / -name "xcb-dri3"
>
> root at ivi-VirtualBox:/source_build/mesa# find / -name "xcb-present"
>
> root at ivi-VirtualBox:/source_build/mesa# find / -name "xcb-sync"
>
> root at ivi-VirtualBox:/source_build/mesa# find / -name "xshmfence"
>
>
>
>
>
> Thanks and Br,
>
> Gautam
>
>
>
>
>
>
>
>
>
> *From:* Marek Chalupa [mailto:mchqwerty at gmail.com]
> *Sent:* Tuesday, August 12, 2014 1:04 PM
>
> *To:* Kumar, Gautam H.
> *Cc:* sri.hebbar at samsung.com; wayland-devel at lists.freedesktop.org
> *Subject:* Re: Request help regarding building of mesa module
>
>
>
>
>
>
>
> On 11 August 2014 17:07, <gautam.h.kumar at accenture.com> wrote:
>
> Hi Marek,
>
>
>
> I rebuilt everything from scratch and it went on fine till again it
> started breaking in the mesa module
>
>
>
>                git clone git://anongit.freedesktop.org/mesa/mesa
>
>                cd mesa
>
>                ./autogen.sh --prefix=$WLD --enable-gles2
> --disable-gallium-egl \
>
>                --with-egl-platforms=x11,wayland,drm --enable-gbm
> --enable-shared-glapi \
>
>                --with-gallium-drivers=r300,r600,swrast,nouveau \
>
>                --disable-llvm-shared-libs # this may be a bug in the llvm
> package
>
>
>
>                Error encountered as below
>
>                make[5]: Leaving directory
> `/source_build/mesa/src/mesa/drivers/dri/radeon'
>
>                Making all in swrast
>
>                make[5]: Entering directory
> `/source_build/mesa/src/mesa/drivers/dri/swrast'
>
>                  CC     swrast.lo
>
>                  CCLD   libswrast_dri.la
>
>                make[5]: Leaving directory
> `/source_build/mesa/src/mesa/drivers/dri/swrast'
>
>                make[5]: Entering directory
> `/source_build/mesa/src/mesa/drivers/dri'
>
>                  CXXLD  mesa_dri_drivers.la
>
>                /usr/bin/ld: cannot find -ldrm_intel
>
>
>
> You don't have drm compiled with intel KMS API support. Try recompile drm
> with --enable-intel.
>
>
>
>                 collect2: ld returned 1 exit status
>
>                make[5]: *** [mesa_dri_drivers.la] Error 1
>
>                make[5]: Leaving directory
> `/source_build/mesa/src/mesa/drivers/dri'
>
>                make[4]: *** [all-recursive] Error 1
>
>                make[4]: Leaving directory
> `/source_build/mesa/src/mesa/drivers/dri'
>
>                make[3]: *** [all-recursive] Error 1
>
>                make[3]: Leaving directory `/source_build/mesa/src/mesa'
>
>                make[2]: *** [all] Error 2
>
>                make[2]: Leaving directory `/source_build/mesa/src/mesa'
>
>                make[1]: *** [all-recursive] Error 1
>
>                make[1]: Leaving directory `/source_build/mesa/src'
>
>                make: *** [all-recursive] Error 1
>
>
>
> Any idea about the above ?
>
>
>
> Thanks and Br,
>
> Gautam
>
>
>
>
>
> *From:* Kumar, Gautam H.
> *Sent:* Monday, August 11, 2014 3:21 PM
> *To:* 'Marek Chalupa'
> *Cc:* sri.hebbar at samsung.com; wayland-devel at lists.freedesktop.org
> *Subject:* RE: Request help regarding building of the xorg-macros and
> libxcb
>
>
>
> Hi Marek,
>
>
>
> As advised by you will redo them all and revert back.
>
> I have learnt a lot while interacting with you all.
>
>
>
> Thanks a lot again and Br,
>
> Gautam
>
>
>
> *From:* Marek Chalupa [mailto:mchqwerty at gmail.com <mchqwerty at gmail.com>]
> *Sent:* Monday, August 11, 2014 3:17 PM
> *To:* Kumar, Gautam H.
> *Cc:* sri.hebbar at samsung.com; wayland-devel at lists.freedesktop.org
> *Subject:* Re: Request help regarding building of the xorg-macros and
> libxcb
>
>
>
>
>
>
>
> On 11 August 2014 11:36, <gautam.h.kumar at accenture.com> wrote:
>
> Hi Marek,
>
>
>
> Pls find the logs as under as you had told I did the same.
>
>
>
>                root at ivi-VirtualBox:/source_build# echo $PKG_CONFIG_PATH
>
>
>
>                root at ivi-VirtualBox:/source_build# export
> PKG_CONFIG_PATH=$WLD/share/pkgconfig:$PKG_CONFIG_PATH
>
>                root at ivi-VirtualBox:/source_build# cd libxcb/
>
>                root at ivi-VirtualBox:/source_build/libxcb# ./autogen.sh
> --prefix=$WLD
>
>                autoreconf: Entering directory `.'
>
>                autoreconf: configure.ac: not using Gettext
>
>                autoreconf: running: aclocal -I m4
>
>                configure.ac:29: error: xorg-macros version 1.18 or higher
> is required but 1.17 found
>
>                /usr/share/aclocal/xorg-macros.m4:39: XORG_MACROS_VERSION
> is expanded from...
>
>
>
> Apparently, you're using /usr/share/aclocal/xorg-macros.m4 file. Is that
> the file you installed? What is the $WLD set to? Where are you installing
> the xorg-macros? Did you set the environment according the instructions on
> the top of the page? There's:
>
> export WLD=$HOME/install
>
> export LD_LIBRARY_PATH=$WLD/lib
>
> export PKG_CONFIG_PATH=$WLD/lib/pkgconfig/:$WLD/share/pkgconfig/
>
> export PATH=$WLD/bin:$PATH
>
>
>
> export ACLOCAL_PATH=$WLD/share/aclocal
>
> export ACLOCAL="aclocal -I $ACLOCAL_PATH"
>
> mkdir -p $ACLOCAL_PATH
>
>
>
> It looks like you've skipped this, because you don't have the
> PKG_CONFIG_PATH set. If you haven't set this till now, do so and recompile
> all the
>
> packages again.
>
>
>
>                 configure.ac:29: the top level
>
>                autom4te: /usr/bin/m4 failed with exit status: 1
>
>                aclocal: /usr/bin/autom4te failed with exit status: 1
>
>                autoreconf: aclocal failed with exit status: 1
>
>                root at ivi-VirtualBox:/source_build/libxcb#
>
>
>
> Pls Note: It didn’t show anything when I typed echo $PKG_CONFIG_PATH as in
> the above case.
>
> Hope not bothering you all much.
>
>
>
> Thanks and Br,
>
> Gautam
>
>
>
> *From:* Marek Chalupa [mailto:mchqwerty at gmail.com]
> *Sent:* Monday, August 11, 2014 2:59 PM
>
>
> *To:* Kumar, Gautam H.
> *Cc:* sri.hebbar at samsung.com; wayland-devel at lists.freedesktop.org
> *Subject:* Re: Request help regarding building of the xorg-macros and
> libxcb
>
>
>
> The same way as you find out the contents of the PATH variable, i. e. echo
> $PKG_CONFIG_PATH
>
> Try
>
>   $ export PKG_CONFIG_PATH=$WLD/share/pkgconfig:$PKG_CONFIG_PATH
>
> before building libxcb. You must have $WLD set to the prefix you're
> installing all the stuff (I suppose you have, because in the first e-mail
> you used it)
>
>
>
> There's nice description here:
> http://wayland.freedesktop.org/building.html
>
> in the section 'Installing in a custom location'
>
>
>
> On 11 August 2014 11:23, <gautam.h.kumar at accenture.com> wrote:
>
> Hi Marek,
>
>
>
> Thanks again for the help,
>
>
>
> How to set the PKG_CONFIG_PATH to $WLD/share/pkgconfig ?
>
> Or How to check what is my PKG_CONFIG_PATH ?
>
>
>
> Sorry may be very silly thing to ask but I am fairly new (Just a month old
> into linux).
>
> I am also googling on the above J
>
>
>
> Thanks and Br,
>
> Gautam,
>
>
>
> *From:* Marek Chalupa [mailto:mchqwerty at gmail.com]
> *Sent:* Monday, August 11, 2014 2:46 PM
> *To:* Kumar, Gautam H.
> *Cc:* sri.hebbar at samsung.com; wayland-devel at lists.freedesktop.org
> *Subject:* Re: Request help regarding building of the xorg-macros and
> libxcb
>
>
>
>
>
> Hi,
>
>
>
> On 11 August 2014 11:00, <gautam.h.kumar at accenture.com> wrote:
>
> Hi Hebbar,
>
>
>
> Thanks for the quick help,
>
>
>
> Pls find the logs when I tried to install macros as under
>
>                root at ivi-VirtualBox:/source_build/macros# make && make
> install
>
>                make: Nothing to be done for `all'.
>
>                make[1]: Entering directory `/source_build/macros'
>
>                make[1]: Nothing to be done for `install-exec-am'.
>
>                test -z "/share/aclocal" || /bin/mkdir -p "/share/aclocal"
>
>                /usr/bin/install -c -m 644 xorg-macros.m4 '/share/aclocal'
>
>                test -z "/share/util-macros" || /bin/mkdir -p
> "/share/util-macros"
>
>                /usr/bin/install -c -m 644 INSTALL '/share/util-macros'
>
>                test -z "/share/pkgconfig" || /bin/mkdir -p
> "/share/pkgconfig"
>
>                /usr/bin/install -c -m 644 xorg-macros.pc '/share/pkgconfig'
>
>                /usr/bin/make  install-data-hook
>
>                make[2]: Entering directory `/source_build/macros'
>
>                rm -f /share/aclocal/xorgversion.m4
>
>                make[2]: Leaving directory `/source_build/macros'
>
>                make[1]: Leaving directory `/source_build/macros'
>
>
>
>
>
> As for the PATH mine it is set as under
>
>                root at ivi-VirtualBox:/source_build/macros# echo $PATH
>
>                /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>
>
>
>
>
> Do you have PKG_CONFIG_PATH set to $WLD/share/pkgconfig?
>
>
>
>
>
> Mine macros libraries are installed as under
>
>
>
>                root at ivi-VirtualBox:/source_build/macros# find / -name
> "*macro*.pc"
>
>                /source_build/util-macros-1.19.0/xorg-macros.pc
>
>                /source_build/macros/xorg-macros.pc
>
>                /usr/local/share/pkgconfig/xorg-macros.pc
>
>                /usr/share/pkgconfig/xorg-macros.pc
>
>                /usr/lib/pkgconfig/xorg-macros.pc
>
>                /share/pkgconfig/xorg-macros.pc
>
>                root at ivi-VirtualBox:/source_build/macros#
>
>
>
> Hope these are the parameter’s you were asking
>
>
>
> Thanks and br,
>
> Gautam
>
>
>
> *From:* Srivardhan [mailto:sri.hebbar at samsung.com]
> *Sent:* Monday, August 11, 2014 2:05 PM
> *To:* Kumar, Gautam H.; wayland-devel at lists.freedesktop.org
> *Subject:* RE: Request help regarding building of the xorg-macros and
> libxcb
>
>
>
> Hi,
>
>
>
> *From:* wayland-devel [mailto:wayland-devel-bounces at lists.freedesktop.org
> <wayland-devel-bounces at lists.freedesktop.org>] *On Behalf Of *
> gautam.h.kumar at accenture.com
> *Sent:* Monday, August 11, 2014 12:53 PM
> *To:* wayland-devel at lists.freedesktop.org
> *Subject:* Request help regarding building of the xorg-macros and libxcb
>
>
>
> Hello All,
>
>
>
> I was trying to build Weston according to the instructions given at
> http://wayland.freedesktop.org/ubuntu12.04.html
>
>
>
> 1.      I built xorg-macros according to the given instructions as below
>
>                git clone
> http://anongit.freedesktop.org/git/xorg/util/macros.git
>
>                cd macros
>
>                ./autogen.sh --prefix=$WLD
>
>                make && make install
>
>                cd ..
>
> 2.      When I am trying to build libxcb as in next step given as below
>
>                git clone http://anongit.freedesktop.org/git/xcb/libxcb.git
>
>                cd libxcb
>
>                ./autogen.sh --prefix=$WLD
>
>                make && make install
>
>                cd ..
>
> 3.      I am getting below error in the “./autogen.sh --prefix=$WLD” step
>
> 4.
>
>                root at ivi-VirtualBox:/source_build/libxcb# ./autogen.sh
> --prefix=$WLD
>
>                autoreconf: Entering directory `.'
>
>                autoreconf: configure.ac: not using Gettext
>
>                autoreconf: running: aclocal -I m4
>
>                configure.ac:29: error: xorg-macros version 1.18 or higher
> is required but 1.17 found
>
>                /usr/share/aclocal/xorg-macros.m4:39: XORG_MACROS_VERSION
> is expanded from...
>
> This error comes when macros is not installed. You sure, you didn’t get
> any error while building or installing. Have you set the PATH and
> PKG_CONFIG_PATH variable correctly?
>
>
>
> Thank-you,
>
> Hebbar
>
>                configure.ac:29: the top level
>
>                autom4te: /usr/bin/m4 failed with exit status: 1
>
>                aclocal: /usr/bin/autom4te failed with exit status: 1
>
>                autoreconf: aclocal failed with exit status: 1
>
>
>
>
>
> Though everywhere I am checking macros 1.19 I am installing, Can somebody
> help me would be highly obliged.
>
> Got stuck badly here LL
>
>
>
> Thanks and Br,
>
> Gautam,
>
>
>  ------------------------------
>
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise confidential information. If you have
> received it in error, please notify the sender immediately and delete the
> original. Any other use of the e-mail by you is prohibited. Where allowed
> by local law, electronic communications with Accenture and its affiliates,
> including e-mail and instant messaging (including content), may be scanned
> by our systems for the purposes of information security and assessment of
> internal compliance with Accenture policy.
>
> ______________________________________________________________________________________
>
> www.accenture.com
>
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
>
>
> Cheers,
>
> Marek
>
>
>
>
>
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
>
>

Cheers,
Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140812/cbf54e47/attachment-0001.html>


More information about the wayland-devel mailing list