Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-24-2004, 08:02 PM   #1
LQ Newbie
Registered: Jul 2003
Location: Purdue Univ, IN
Distribution: Red Hat 9
Posts: 15

Rep: Reputation: 0
Point to current kernel source directory


I'm running Knoppix installed onto my harddisk using the install script.

I am trying to get my Logitech iFeel mouse to work and have found:

While trying to install the driver, the README file says:

"Edit the Makefile to point to your current kernel source directory"

Where is my source directory? More importantly, how do i edit the Makefile to point to it?

Any help is greatly appreciated.


Currently the Makefile looks like this:
@echo "use 'make beos' or 'make linux'"

beos: support/usbkit/usb/USBKit.a
gcc -o ifeel ifeel-beos.cpp -Isupport/usbkit/usb support/usbkit/usb/USBKit.a -lbe

# BeOS specific support
support/usbkit/usb/USBKit.a: support/usbkit/usb/Makefile
cd support/usbkit/usb; make; cd ../../..

support/usbkit/usb/Makefile: support/usbkit_99-03-23.tgz
cd support; tar -xzvf usbkit_99-03-23.tgz; cd ..

rm -f *.o ifeel; rm -rf support/usbkit

# dead code
#mouse: mouse.o
# $(CC) -o mouse mouse.o $(LIBS)

#CFLAGS = -O2 -Iusbkit/usb -Lusbkit/usb
#LIBS = USBKit.a -lbe
#CC = gcc

#%.o: %.cpp
# $(CC) $(CFLAGS) -c $<
Old 10-24-2004, 08:33 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
By default, the kernel source is in /usr/src/linux, but a lot of distro's don't install it. You'll need to install your distro's kernel-source package.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install/create kernel source directory in RH acrors Red Hat 4 08-10-2004 04:37 AM
where is linux source build directory/kernel source tree? webazoid Linux - Software 2 07-01-2004 09:37 PM
Current instructins to upgrade Kernel from source Ook Slackware 7 04-05-2004 03:19 AM
where is my kernel source directory? Veivann Linux - Newbie 3 02-19-2004 04:15 PM
Where is the kernel source directory in Libranet? seppe Debian 1 09-21-2003 10:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration