You are not logged in.

#51 2011-03-23 16:41:14

eribol
Member
Registered: 2006-12-20
Posts: 8

Re: Wayland on Arch Linux?

http://aur.archlinux.org/packages/wayla … t/PKGBUILD

This is wayland-mesa-git OKGBUILD and its building with egl-with-platform=wayland. I use yaourt for build.

yaourt -S wayland-git

Offline

#52 2011-03-27 14:10:04

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: Wayland on Arch Linux?

with "EGL_LOG_LEVEL=debug" I get this:

libEGL debug: EGL search path is /usr/lib/egl
libEGL debug: added /usr/lib/egl/egl_gallium.so to module array
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: dlopen(/usr/lib/egl/egl_gallium.so)
libEGL info: use DRM for display 0x4
libEGL debug: searching for pipe module i915
libEGL debug: failed to create DRM screen
libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in eglInitialize(no usable display)

libEGL debug: pci id for 4: 8086:27ae, driver i915
libEGL debug: DRI2: dlopen(/usr/lib/xorg/modules/dri/i915_dri.so)
libEGL debug: DRI2: found extension `DRI_Core'
libEGL info: DRI2: found extension DRI_Core version 1
libEGL debug: DRI2: found extension `DRI_DRI2'
libEGL info: DRI2: found extension DRI_DRI2 version 2
libEGL debug: DRI2: found extension `DRI_ReadDrawable'
libEGL debug: DRI2: found extension `DRI_TexBuffer'
libEGL info: DRI2: found extension DRI_TexBuffer version 2
libEGL debug: DRI2: found extension `DRI2_Flush'
libEGL info: DRI2: found extension DRI2_Flush version 3
libEGL debug: DRI2: found extension `DRI_IMAGE'
libEGL info: DRI2: found extension DRI_IMAGE version 1
libEGL debug: DRI2: found extension `DRI_CONFIG_QUERY'
libEGL debug: the best driver is DRI2
XDG_RUNTIME_DIR not set, falling back to .
using socket ./wayland-0
libEGL debug: Display 0x9823c40 is destroyed with resources

But wayland runs fine although it is very laggy, so I guess it fallbacks to some sort of software rendering. Any idea what causes this? There clearly is the egl gallium driver for i915 and it itself doesn't throw an error...


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#53 2011-03-28 13:00:22

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: Wayland on Arch Linux?

Ok, gallium egl from i915 is faulty (or wayland is buggy with it?). After building mesa with --disable-gallium-egl it worked without the error but still is laggy on my netbook. I guess it's just how fast wayland currently is.


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#54 2011-05-03 12:17:00

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Wayland on Arch Linux?

Maybe a little offtopic, but what happens when Wayland matures so it's completely secure to use it? Arch abandons X, and all our machines need a big upgrade of most applications?

Offline

#55 2011-05-03 12:46:48

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: Wayland on Arch Linux?

archman-cro wrote:

Maybe a little offtopic, but what happens when Wayland matures so it's completely secure to use it? Arch abandons X, and all our machines need a big upgrade of most applications?

Arch won't abandon X. When that happens you will propably be able to choose which one you like to use.

Last edited by Giselher (2012-06-27 21:39:06)

Offline

#56 2011-05-03 12:56:01

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Wayland on Arch Linux?

Giselher wrote:
archman-cro wrote:

Maybe a little offtopic, but what happens when Wayland matures so it's completely secure to use it? Arch abandons X, and all our machines need a big upgrade of most applications?

Arch won't abandon X. When that happens you will propably able choose which one you like to use.

That'd be neat. Something like Ubuntu's backward compatibility where Unity is not possible to run, or something like that. Although that might mean more packaging work where necessary.
Thanks for clarifying!

Offline

#57 2011-05-03 13:01:21

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: Wayland on Arch Linux?

archman-cro wrote:
Giselher wrote:
archman-cro wrote:

Maybe a little offtopic, but what happens when Wayland matures so it's completely secure to use it? Arch abandons X, and all our machines need a big upgrade of most applications?

Arch won't abandon X. When that happens you will propably able choose which one you like to use.

That'd be neat. Something like Ubuntu's backward compatibility where Unity is not possible to run, or something like that. Although that might mean more packaging work where necessary.
Thanks for clarifying!

Not really, GTK3 apps can use both backends when both are installed. (GDK_BACKEND={X11,WAYLAND})

Last edited by Giselher (2012-06-27 21:39:26)

Offline

#58 2011-05-14 23:39:13

MurdersLastCrow
Member
Registered: 2010-10-04
Posts: 74

Re: Wayland on Arch Linux?

I don't see any issues for Arch users. You end up installing the X server and drivers before you install your toolkits and WMs and whatnot anyway. The only change is that you could install Wayland instead, or both and use Wayland as an X client. Also, I don't hear of anyone behind GTK, Qt, SDL, Clutter, etc. planning to drop X support suddenly. The only thing that will change is that we won't have as many X dependencies as we have now.

Offline

#59 2011-05-14 23:50:27

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Wayland on Arch Linux?

The transition will take place after Ubuntu adopts it. It will "push" Wayland's popularity by far

Offline

#60 2011-05-23 13:35:46

bzhb
Member
Registered: 2010-11-17
Posts: 32

Re: Wayland on Arch Linux?

archman-cro wrote:
Giselher wrote:
archman-cro wrote:

what happens when Wayland matures so it's completely secure to use it? Arch abandons X, and all our machines need a big upgrade of most applications?

Arch won't abandon X. When that happens you will propably able choose which one you like to use.

That'd be neat. Something like Ubuntu's backward compatibility where Unity is not possible to run, or something like that. Although that might mean more packaging work where necessary.
Thanks for clarifying!

Well, the choice to run applications (at least those using GTK or Qt) on Wayland or X can be made at runtime. So when Wayland will be fully supported, I think it won't be necessary to package each app two times : a global variable saying which backend to use should do it. And for applications not able to run on wayland directly, it is possible to run one (or severals) X over wayland. So apart for maturity problems and openGL drivers quirks that may happen in the transition, the path forward for a smooth transition exists.

see http://wayland.freedesktop.org/toolkits.html

Offline

#61 2011-07-12 04:29:03

diegoviola
Member
Registered: 2010-12-16
Posts: 132

Re: Wayland on Arch Linux?

Deleted.

Last edited by diegoviola (2023-04-17 22:48:27)

Offline

#62 2011-08-14 04:41:45

diegoviola
Member
Registered: 2010-12-16
Posts: 132

Re: Wayland on Arch Linux?

Deleted.

Last edited by diegoviola (2023-04-17 22:29:00)

Offline

#63 2011-08-14 06:33:10

nankura
Member
Registered: 2011-08-02
Posts: 166

Re: Wayland on Arch Linux?

as i understand wayland is still very expiremental. + gallium3D appearently achieved Native DirectX 11 support

Ubuntu as i heard plans to use wayland as default in 11.10 and 12.04

It definatly is the way of the future and so is gallium3d, personally it would be great if there was an automatic installer for both of these features into any linux distro. especially archlinux

wayland also appearently will fix the screen tearing with nvidia issue on alot of WM's

But as stated, WM's dont support it yet

Offline

#64 2011-08-14 08:38:29

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: Wayland on Arch Linux?

nankura wrote:

+ gallium3D appearently achieved Native DirectX 11 support

I don't think it is complete yet and I don't know if it is even a little bit stable.
Also, when I last tried to build mesa with d3d1x enabled the compiler ate up 4 gb Ram + 2 gb swap and got killed by the OOM killer...

I doubt that it will be usable enaugh for ubuntu 11.10. Maybe 12.04 can begin trying it.


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#65 2011-08-14 09:01:42

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Wayland on Arch Linux?

It won't be on 11.10, Wayland is too immature right now. I doubt it will be ready even for 12.04. And don't forget the problem with the proprietary blobs, since Nvidia and catalyst drivers don't support KMS.

Offline

#66 2011-08-14 09:39:52

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Wayland on Arch Linux?

flamelab wrote:

since Nvidia and catalyst drivers don't support KMS.

You don't need KMS for Wayland. Maybe right now you do, but that would just be a current implementation thing and easily changeable. Wayland's design doesn't care how the mode is set, just that it is set.

Offline

#67 2011-10-07 05:44:04

punakuono
Member
From: Tampere, Finland
Registered: 2006-12-17
Posts: 11

Re: Wayland on Arch Linux?

How exactly do you get the compositor running like in the videos all over the web? I can compile it just fine and start it with EGL_PLATFORM=x11, but the background is black and the mouse pointer leaves a trail. I'm trying to do this on a netbook, that is using the i915 dri driver. I compiled mesa-full-wayland from AUR with --disable-gallium-egl option as is suggested in http://wayland.freedesktop.org/building.html.

Here is the debugging output of the compositor:

libEGL debug: Native platform type: x11 (environment overwrite)
libEGL debug: EGL search path is /usr/lib/egl
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: DRI2: dlopen(/usr/lib/xorg/modules/dri/i915_dri.so)
libEGL debug: DRI2: found extension `DRI_Core'
libEGL info: DRI2: found extension DRI_Core version 1
libEGL debug: DRI2: found extension `DRI_DRI2'
libEGL info: DRI2: found extension DRI_DRI2 version 2
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/pretseli/.drirc: No such file or directory.
libEGL debug: DRI2: found extension `DRI_ReadDrawable'
libEGL debug: DRI2: found extension `DRI_TexBuffer'
libEGL info: DRI2: found extension DRI_TexBuffer version 2
libEGL debug: DRI2: found extension `DRI2_Flush'
libEGL info: DRI2: found extension DRI2_Flush version 3
libEGL debug: DRI2: found extension `DRI_IMAGE'
libEGL info: DRI2: found extension DRI_IMAGE version 1
libEGL debug: DRI2: found extension `DRI_CONFIG_QUERY'
libEGL debug: the best driver is DRI2
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/pretseli/.drirc: No such file or directory.
XDG_RUNTIME_DIR not set, falling back to .
using socket ./wayland-0
libEGL debug: Display 0x86e5418 is destroyed with resources

Most of the clients just segfault. wayland-simple-shm works though.

Here's an example output of wayland-smoke:

XDG_RUNTIME_DIR not set, falling back to .
[921248.333] wl_display@1.global(1, "wl_display", 1)
[921248.616] wl_display@1.global(2, "wl_compositor", 1)
[921248.803]  -> wl_display@1.bind(2, "wl_compositor", 1, new id 2)
[921249.023] wl_display@1.global(3, "wl_shm", 1)
[921249.205]  -> wl_display@1.bind(3, "wl_shm", 1, new id 3)
[921249.448] wl_display@1.global(4, "wl_drm", 1)
[921249.699] wl_display@1.global(5, "screenshooter", 1)
[921249.960] wl_display@1.global(6, "wl_output", 1)
[921250.204]  -> wl_display@1.bind(6, "wl_output", 1, new id 4)
[921250.506] wl_display@1.global(7, "wl_input_device", 1)
[921250.724]  -> wl_display@1.bind(7, "wl_input_device", 1, new id 5)
[921250.989] wl_display@1.global(8, "wl_shell", 1)
[921251.199]  -> wl_display@1.bind(8, "wl_shell", 1, new id 6)
[921251.452] wl_display@1.global(9, "desktop_shell", 1)
libEGL debug: Native platform type: x11 (environment overwrite)
libEGL debug: EGL search path is /usr/lib/egl
libEGL debug: added egl_dri2 to module array
zsh: segmentation fault  wayland-smoke

If I set EGL_PLATFORM to "wayland" or "drm", wayland-compositor segfaults. Tried with egl-gallium enabled also.

Debug output of wayland-compositor using mesa with gallium:

libEGL debug: Native platform type: wayland (environment overwrite)
libEGL debug: EGL search path is /usr/lib/egl
libEGL debug: added /usr/lib/egl/egl_gallium.so to module array
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: dlopen(/usr/lib/egl/egl_gallium.so)
libEGL info: use wayland for display 0x8c3db18
zsh: segmentation fault  wayland-compositor

Debug output of wayland-compositor using mesa without gallium:

libEGL debug: Native platform type: wayland (environment overwrite)
libEGL debug: EGL search path is /usr/lib/egl
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
zsh: segmentation fault  wayland-compositor

What am I doing wrong? With what compile options should I compile mesa? Should I install git-versions of some other libraries?

Offline

#68 2011-10-07 06:47:32

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: Wayland on Arch Linux?

I don't think that at the moment wayland works right. I tested it with r600g and the output from wayland is just garbage except for the mouse pointer - which also leaves a trail.
It neither works as X client nor standalone...


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#69 2012-01-31 10:19:59

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: Wayland on Arch Linux?

No activity here... Strange.

So a little update:
The error with the instability and mouse trail was in cairo-gl.
With the commit 9bdfae6e218185dd9cc2770f5e7d4ca887ce4775 of cairo wayland worked as well as wayland worked...


Now some time after the wayland compositor was renamed to weston and I saw "Wayland Is Almost Ready For Showing Off" [1] on phoronix I wanted to try it again.

So the packages have changed a little. libwayland-git seems to be deprecated now. It is replaced by wayland-git which formerly installed the sample clients and the compositor.
The sample clients and the compositor are now in weston-git.

So the order you build things now is: wayland-git, mesa with wayland platform support, weston.

The weston PKGBUILD was a bit strange that it manually installed things that were partly not there... So I figured adding some configure options and simply doing the install should be enaugh:

pkgname=weston-git
pkgver=20120131
pkgrel=1
pkgdesc="A modern display server."
arch=(i686 x86_64)
url="http://wayland.freedesktop.org"
license=('LGPLv2')
depends=('libxkbcommon-git' 'wayland-git' 'poppler-glib')
options=(!makeflags)

_gitroot="git://anongit.freedesktop.org/wayland/weston"
_gitname="weston"

build() {
        msg "Connecting to git.freedesktop.org GIT server...."

        if [ -d "$srcdir/$_gitname" ] ; then
                cd $_gitname && git pull origin
                msg "The local files are updated."
        else
                git clone $_gitroot
        fi

        msg "GIT checkout done or server timeout"
        msg "Starting make..."

        rm -rf "${srcdir}/$_gitname-build"
        cp -r "${srcdir}/$_gitname" "${srcdir}/$_gitname-build"
        cd "${srcdir}/$_gitname-build"

        ./autogen.sh --prefix=/usr \
  --enable-xserver-launcher \
  --enable-x11-compositor \
  --enable-drm-compositor \
  --enable-wayland-compositor \
  --enable-simple-clients \
  --enable-clients \
  --enable-tablet-shell || return 1
#  --enable-openwfd-compositor \

        make
}

package() {
        cd ${srcdir}/$_gitname-build
        make DESTDIR="${pkgdir}" install
#       install -m 755 -D src/weston "${pkgdir}/usr/bin/weston"
#       install -m 755 -D clients/dnd "${pkgdir}/usr/bin/weston-dnd"
#       install -m 755 -D clients/eventdemo "${pkgdir}/usr/bin/weston-eventdemo"
#       install -m 755 -D clients/flower "${pkgdir}/usr/bin/weston-flower"
#       install -m 755 -D clients/gears "${pkgdir}/usr/bin/weston-gears"
#       install -m 755 -D clients/image "${pkgdir}/usr/bin/weston-image"
#       install -m 755 -D clients/resizor "${pkgdir}/usr/bin/weston-resizor"
#       install -m 755 -D clients/screenshot "${pkgdir}/usr/bin/weston-screnshot"
#       install -m 755 -D clients/simple-egl "${pkgdir}/usr/bin/weston-simple-egl"
#       install -m 755 -D clients/simple-shm "${pkgdir}/usr/bin/weston-simple-shm"
#       install -m 755 -D clients/simple-touch "${pkgdir}/usr/bin/weston-simple-touch"
#       install -m 755 -D clients/smoke "${pkgdir}/usr/bin/weston-smoke"
#       install -m 755 -D clients/terminal "${pkgdir}/usr/bin/weston-terminal"
#       install -m 755 -D clients/view "${pkgdir}/usr/bin/weston-view"
#       install -m 755 -D clients/weston-desktop-shell "${pkgdir}/usr/bin/weston-desktop-shell"
#       install -m 755 -D clients/weston-tablet-shell "${pkgdir}/usr/bin/weston-tablet-shell"
#       install -m 755 -D clients/wscreensaver "${pkgdir}/usr/bin/weston-wscreensaver"
}

It seems to install all the necessary stuff.

Unfortunately my mesa seems to be missing a symbol...

~ % EGL_LOG_LEVEL=debug weston
libEGL debug: Native platform type: x11 (autodetected)
libEGL debug: ignore EGL_DRIVERS_PATH for setuid/setgid binaries
libEGL debug: EGL search path is /usr/lib/egl
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: failed to open /usr/lib/xorg/modules/dri/r600_dri.so: /usr/lib/libglsl.so: undefined symbol: _mesa_symbol_table_add_symbol

libEGL warning: DRI2: failed to open r600 (search paths /usr/lib/xorg/modules/dri)
libEGL debug: failed to open /usr/lib/xorg/modules/dri/swrast_dri.so: /usr/lib/xorg/modules/dri/swrast_dri.so: cannot open shared object file: No such file or directory

libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/xorg/modules/dri)
caught segv
  [0000000000405e23]  --  (weston)
  [00007fd46cd5e9b0]  --  (/lib/libc.so.6)
  [00007fd468ac7cc0]  --  (/usr/lib/libGL.so)
  [00007fd468aa2789]  --  (/usr/lib/libGL.so)
  [00007fd468a9e029]  glXQueryVersion  (/usr/lib/libGL.so)
  [00007fd46ddbeded]  --  (/usr/lib/libEGL.so.1)
  [00007fd46ddb66bc]  --  (/usr/lib/libEGL.so.1)
  [00007fd46ddb6acf]  --  (/usr/lib/libEGL.so.1)
  [00007fd46ddb1d32]  eglInitialize  (/usr/lib/libEGL.so.1)
  [00007fd46aaccc16]  backend_init  (/usr/lib/weston/x11-backend.so)
  [0000000000405af3]  --  (weston)
  [00007fd46cd4b38d]  __libc_start_main  (/lib/libc.so.6)
  [0000000000405d01]  --  (weston)
[1]    6688 segmentation fault  EGL_LOG_LEVEL=debug weston

[1] http://www.phoronix.com/scan.php?page=n … px=MTA1MDc


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#70 2012-01-31 13:59:36

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: Wayland on Arch Linux?

Looks like you're missing some configure flags for mesa

Here is the build part of my PKGBUILD. I hope it helps you.

  WAYLAND_LIBS=`pkg-config wayland-egl wayland-client wayland-server --libs`
  msg 'Connecting to git.freedesktop.org GIT server....'
  if [ -d ${_gitname} ] ; then
    cd ${_gitname} && git pull origin
  else
    git clone ${_gitroot}
  fi

  msg 'GIT checkout done or server timeout'
  msg 'Starting make...'

  cd "${srcdir}"

  # Cleanup and prepare the build dir
  [ -d build ] && rm -rf build
  cp -r ${_gitname} build
  cd build
    
    autoreconf -vfi
    ./autogen.sh --prefix=/usr \
    --with-gallium-drivers=r600,swrast \
    --with-dri-driverdir=/usr/lib/xorg/modules/dri \
    --enable-gallium-egl \
    --enable-glx-tls \
    --enable-xcb \
    --enable-gles1 \
    --enable-gles2 \
    --enable-egl \
    --enable-gbm \
    --with-egl-platforms=x11,wayland,drm \
    --enable-texture-float \
    --enable-shared-glapi \
    --enable-shared-dricore \
    --enable-shared-driglx-direct \
    --enable-vdpau \
    --enable-xvmc \
    --enable-gallium-g3dvl \
    --enable-xorg
    # --enable-va --enable-xorg --enable-64-bit #--enable-d3d1x
    # --with-egl-platforms=x11,wayland,drm \
  make

Offline

#71 2012-01-31 14:05:39

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: Wayland on Arch Linux?

Actually my PKGBUILD looks like this:

pkgname=mesa-full-r600g
pkgver=20120131
_realver=7.12
pkgrel=1
pkgdesc="Full Mesa 3D graphics library with all its components, built from the git master branch (mesa 7.12). Compiles mesa for r600g (gallium)."
arch=(i686 x86_64)
url="http://mesa3d.org/"
license=('LGPL')
depends=('libdrm-git' 'dri2proto>=2.1' 'glproto>=1.4.10' 'libxxf86vm' 'libxdamage' 'expat>=2.0.1' 'libxmu' 'talloc' 'llvm')
makedepends=('pkgconfig' 'imake' 'xorg-server-devel')
provides=("libgl=${_realver}" "mesa=${_realver}" "ati-dri=${_realver}" 'libglapi' 'libegl' 'libgles' 'khrplatform-devel')
replaces=('libgl' 'mesa' 'ati-dri' 'libglapi' 'libegl' 'khrplatform-devel' 'libgles') 
conflicts=('libgl' 'mesa' 'ati-dri' 'mesa-full' 'libglapi' 'libegl' 'khrplatform-devel' 'libgles')

_gitroot="git://anongit.freedesktop.org/git/mesa/mesa"
_gitname="mesa"

build() {
   msg "Connecting to git.freedesktop.org GIT server...."

#   if [ -d $startdir/src/$_gitname ] ; then
#      cd $_gitname && git pull origin
#      msg "The local files are updated."
#   else
#      git clone $_gitroot
#   fi

 #  msg "GIT checkout done or server timeout"
   msg "Starting make..."

   rm -rf $startdir/src/$_gitname-build
   cp -rH $startdir/src/$_gitname $startdir/src/$_gitname-build
   cd ${srcdir}/${_gitname}-build

   cd "${startdir}/src/mesa-build"
   ./autogen.sh --prefix=/usr \
   --with-dri-driverdir=/usr/lib/xorg/modules/dri \
   --with-gallium-drivers=r600,svga \
   --with-dri-drivers= \
   --with-egl-platforms=x11,drm,wayland \
   --enable-texture-float \
   --enable-gles1 \
   --enable-gles2 \
   --enable-osmesa \
   --enable-egl \
   --enable-xorg \
   --enable-xa \
   --enable-xvmc \
   --enable-vdpau \
   --enable-gallium-g3dvl \
   --enable-glx-tls \
   --enable-glu \
   --enable-gbm \
   --enable-gallium-gbm \
   --enable-shared-glapi \
   --enable-xorg \
   --enable-gallium-llvm \
   --enable-openvg \
   --enable-gallium-egl || return 1

   # not possible to compile afaik
   # --enable-d3d1x

   make || return 1
   make DESTDIR="${pkgdir}" install || return 1

   install -m755 -d "${pkgdir}/usr/lib/xorg/modules/extensions"
   ln -sf libglx.xorg ${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so || return 1

   install -d ${pkgdir}/etc/profile.d
   echo '#!/bin/bash' > ${pkgdir}/etc/profile.d/mesa.sh
   echo 'export LIBGL_DRIVERS_PATH=/usr/lib/xorg/modules/dri:$LIBGL_DRIVERS_PATH
export VDPAU_DRIVER=r600
export R600_ENABLE_S3TC=1
export force_s3tc_enable=true

#opengl3
export R600_GLSL130=1
export R600_STREAMOUT=1

#introduces graphics errors (at least for me)
#export R600_TILING=1
' >> ${pkgdir}/etc/profile.d/mesa.sh
  chmod +x ${pkgdir}/etc/profile.d/mesa.sh
}

autogen.sh says that --enable-shared-dricore is an unrecognized option so I think it has been removed.

But I will try another build with swrast (seems that in the past it too often didn't work correctly with swrast not built) and --enable-shared-driglx-direct though I don't see why this should be the problem.
(edit: configure: WARNING: unrecognized options: --enable-shared-driglx-direct)

A mesa build from two days ago with the same PKGBUILD works fine. Also, the whole OpenGL and direct rendering in X doesn't work currently, it's not just wayland.

Last edited by Cdh (2012-01-31 14:12:32)


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#72 2012-01-31 14:08:08

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: Wayland on Arch Linux?

EDIT: Apparently I am stupid, so Ignore this message

Last edited by Giselher (2012-01-31 14:18:11)

Offline

#73 2012-01-31 14:15:21

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: Wayland on Arch Linux?

Probably that big update yesterday/today in testing with a new libpng... I did build my weston with libpng14 and for the time being I have also installed libpng14 from AUR...


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#74 2012-01-31 14:25:03

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: Wayland on Arch Linux?

Nice now it works.
ku6TZs.png

Offline

#75 2012-01-31 14:46:40

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: Wayland on Arch Linux?

How...?

  WAYLAND_LIBS=`pkg-config wayland-egl wayland-client wayland-server --libs`
% pkg-config wayland-egl --libs
Package wayland-egl was not found in the pkg-config search path.
Perhaps you should add the directory containing `wayland-egl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'wayland-egl' found

฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

Board footer

Powered by FluxBB