Originally posted by schnelle
View Post
Announcement
Collapse
No announcement yet.
I need help: How to patch radeon driver?
Collapse
X
-
-
I builded and installed libdrm from git but it doesn't help. Make gives me same error: http://paste.kde.org/485372/
Anyone have idea what's wrong?
Leave a comment:
-
Originally posted by DanL View PostMake sure you install m4, xutils-dev and libtool packages. Actually, this command may be the most helpful:
Code:sudo apt-get build-dep xserver-xorg-video-ati
Code:snele@KDevil:~/xf86-video-ati$ make make all-recursive make[1]: Entering directory `/home/snele/xf86-video-ati' Making all in src make[2]: Entering directory `/home/snele/xf86-video-ati/src' CC ati.lo CC atimodule.lo CCLD ati_drv.la CC radeon_accel.lo radeon_accel.c: In function 'RADEONEngineReset': radeon_accel.c:232:20: warning: variable 'host_path_cntl' set but not used [-Wunused-but-set-variable] CC radeon_cursor.lo CC radeon_legacy_memory.lo CC radeon_driver.lo CC radeon_video.lo radeon_video.c: In function 'radeon_pick_best_crtc': radeon_video.c:174:2: error: unknown type name 'drmmode_crtc_private_ptr' radeon_video.c:174:42: warning: initialization makes integer from pointer without a cast [enabled by default] radeon_video.c:176:18: error: invalid type argument of '->' (have 'int') radeon_video.c: In function 'RADEONPutImage': radeon_video.c:2894:36: warning: variable 'bpp' set but not used [-Wunused-but-set-variable] radeon_video.c: In function 'RADEONPutVideo': radeon_video.c:3452:53: warning: variable 's2offset' set but not used [-Wunused-but-set-variable] radeon_video.c:3451:17: warning: variable 'pitch' set but not used [-Wunused-but-set-variable] make[2]: *** [radeon_video.lo] Error 1 make[2]: Leaving directory `/home/snele/xf86-video-ati/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/snele/xf86-video-ati' make: *** [all] Error 2
Leave a comment:
-
Make sure you install m4, xutils-dev and libtool packages. Actually, this command may be the most helpful:
Code:sudo apt-get build-dep xserver-xorg-video-ati
Leave a comment:
-
Originally posted by AlbertP View PostOn Ubuntu (and derivatives) you don't need to specify --libdir at all, even on 64-bit as /lib is used there, /lib64 is a symlink.
Code:snele@KDevil:~/xf86-video-ati$ ./autogen.sh --prefix=/usr ./autogen.sh: 9: ./autogen.sh: autoreconf: not found
Code:snele@KDevil:~/xf86-video-ati$ ./autogen.sh --prefix=/usr Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 196. Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 196. autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal configure.ac:34: error: must install xorg-macros 1.8 or later before running autoconf/autogen configure.ac:34: 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
Leave a comment:
-
Originally posted by oibaf View PostYou have to replace 'fdo49761.diff' with the name of the patch attached and downloaded from the bug.
Now I manually downloaded the patch and command works
Leave a comment:
-
Originally posted by agd5f View PostOn 32bit, you can just use ./autogen.sh --prefix=/usr which is equivalent to ./autogen.sh --prefix=/usr --libdir=/usr/lib
Leave a comment:
-
Originally posted by schnelle View PostThank you Alex Deucher for helping me.
"To apply the patch, download the radeon driver (xf86-video-ati) and build deps
and save a copy of the patch.
1. git clone git://anongit.freedesktop.org/xorg/driver/xf86-video-ati
2. cd xf86-video-ati
3. patch -p1 -i fdo49761.diff
you many need to adjust the configure options below depending on your distro
4. ./autogen.sh --prefix=/usr --libdir=/usr/lib64
5. make
6. make install"
On 3rd step I got this error:Code:snele@KDevil:~/xf86-video-ati$ patch -p1 -i fdo49761.diff patch: **** Can't open patch file fdo49761.diff : No such file or directory
Leave a comment:
-
On 32bit, you can just use ./autogen.sh --prefix=/usr which is equivalent to ./autogen.sh --prefix=/usr --libdir=/usr/lib
Leave a comment:
-
Thank you Alex Deucher for helping me.
"To apply the patch, download the radeon driver (xf86-video-ati) and build deps
and save a copy of the patch.
1. git clone git://anongit.freedesktop.org/xorg/driver/xf86-video-ati
2. cd xf86-video-ati
3. patch -p1 -i fdo49761.diff
you many need to adjust the configure options below depending on your distro
4. ./autogen.sh --prefix=/usr --libdir=/usr/lib64
5. make
6. make install"
On 3rd step I got this error:Code:snele@KDevil:~/xf86-video-ati$ patch -p1 -i fdo49761.diff patch: **** Can't open patch file fdo49761.diff : No such file or directory
Code:./autogen.sh --prefix=/usr --libdir=/usr/lib
Sorry for stupid noob questions, but I really don't know what I am doing
Leave a comment:
Leave a comment: