Problems install fglrx

I have been following the instructions at http://en.opensuse.org/SDB:ATI_drivers with a fresh install of openSuSE 12.1.

However, the install seems to fail. The output I get is:

Used CPUs/Cores for compilation  =>   3 ]


********************************************************************************
*                                                                              *
*   Kernel:    3.1.0-1.2-desktop                                               *
*   Source:    /lib/modules/3.1.0-1.2-desktop/build                            *
*   Include:   /lib/modules/3.1.0-1.2-desktop/source/include                   *
*                                                                              *
********************************************************************************



Warning:
kernel includes at /lib/modules/3.1.0-1.2-desktop/source/include not found or incomplete
file: /lib/modules/3.1.0-1.2-desktop/source/include/asm-x86_64/compat.h

/usr/src/kernel-modules/fglrx/2.6.x /home/arnett
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make: *** /lib/modules/3.1.0-1.2-desktop/build: No such file or directory.  Stop.

******************************
Build of kernel module failed!
******************************

rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
/home/arnett
Calling 'depmod -a 3.1.0-1.2-desktop' this may take a while...


Summary report:
================================================================================

   Kernel     => 3.1.0-1.2-desktop
   Detected   => RPM package
   Build      =>  FAILURE ]
   Install    =>  FAILURE ]

I do have the kernel_devel pattern installed. Any clues as to the direction I should go?

Update to the latest kernel and use atiupgrade. It will install everything you need to compile the module, build a package with the fglrx driver and install it.
http://forums.opensuse.org/english/other-forums/development/programming-scripting/449058-upgrading-ati-driver-atiupgrade-13.html#post2436795



$ su -l 
# zypper ar http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_12.1/  PTA 
# zypper refresh -r PTA 
# zypper in atiupgrade
# atiupgrade

  • Don’t forget to update to the latest kernel and reboot first! Otherwise kernel and kernel sources wont’ match.