So, I'm trying to compile ATI drivers (fglrx) for kernel 2.6.13-15.8-default and Xorg server 6.8.2-100. Right now I am actually trying to compile the 32-bit drivers although I have a 64-bit system. But my friend has a 32-bit system (same kernel/xorg as well) and he gets the exact same error, so I just tried it on mine so I could copy and paste the exact error here.
linux:/home/andy/fglrx/lib/modules/fglrx/build_mod # sh make.sh
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.13-15.8-default/build SUBDIRS=/home/andy/fglrx/lib/modules/fglrx/build_mod/2.6.x modules
make: *** /lib/modules/2.6.13-15.8-default/build: No such file or directory. Stop.
(I had no trouble getting nvidia drivers to compile.)
Apparently I'm missing some 'build' directory. There's actually a file in that directory called build already that seems to be a program but not a directory. Any ideas? I have the 32-bit source installed here right now. I figured I should be to compile it anyway, but that's besides the point because I get the same exact thing doing it on his 32-bit system.
Prior to doing make.sh in the ATI module source directory build_mod, I ran these commands (on both my and my friend's systems):
# cd /usr/src/linux
# make mrproper
# make cloneconfig
# make modules_prepare
Is there any reason at all I would have to do 'init 3' before compiling this? The guide says to do that but I assume it's just to shut down the X server. Right now I'm just trying to compile a .ko driver on either my or my friend's system so I can setup his ATI card.
linux:/home/andy/fglrx/lib/modules/fglrx/build_mod # sh make.sh
ATI module generator V 2.0
==========================
initializing...
cleaning...
patching 'highmem.h'...
assuming new VMA API since we do have kernel 2.6.x...
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.13-15.8-default/build SUBDIRS=/home/andy/fglrx/lib/modules/fglrx/build_mod/2.6.x modules
make: *** /lib/modules/2.6.13-15.8-default/build: No such file or directory. Stop.
(I had no trouble getting nvidia drivers to compile.)
Apparently I'm missing some 'build' directory. There's actually a file in that directory called build already that seems to be a program but not a directory. Any ideas? I have the 32-bit source installed here right now. I figured I should be to compile it anyway, but that's besides the point because I get the same exact thing doing it on his 32-bit system.
Prior to doing make.sh in the ATI module source directory build_mod, I ran these commands (on both my and my friend's systems):
# cd /usr/src/linux
# make mrproper
# make cloneconfig
# make modules_prepare
Is there any reason at all I would have to do 'init 3' before compiling this? The guide says to do that but I assume it's just to shut down the X server. Right now I'm just trying to compile a .ko driver on either my or my friend's system so I can setup his ATI card.