LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-28-2005, 11:15 AM   #1
ColKurtz
Member
 
Registered: Jan 2005
Location: Earth
Distribution: Fedora
Posts: 40

Rep: Reputation: 15
Help with GCC, please.


I'm running Ubuntu 4.1 under VMware on my Thinkpad T42, and one of the annoying things is the trackpoint scroll feature doesn't work in Linux (fyi... a trackpoint is the little pencil-eraser-looking mouse "nub" on thinkpads and scrolling is achieved by holding down the middle button and moving the trackpoint).

So I found this link that might fix it - http://rsim.cs.uiuc.edu/~sachs/tp-scroll/ . I've downloaded the tp-scroll.c and am ready to follow the first instruction, which is to execute the following command: gcc -o tp-scroll tp-scroll.c -lm

Questions:

1) What exactly am I doing by running GCC? Just taking a guess, it looks like I'm using tp-scroll.c source code to make a tp-scroll file (please correct me if I'm wrong). Am I re-compiling the kernel, which I read a lot about, in any way or just compiling the trackpoint driver?

2) Where should I put the xxx.c file before I complile it? In /tmp? Does it matter?

3) Does it matter where I put the resulting tp-scroll file? I know I can point the rc.local file to wherever I place it, but is there a "proper" place for it? /bin?

Thanks in advance.
 
Old 01-28-2005, 11:24 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
you're not recompiling the kernel. you're just creating an executable like you think you are. put the resulting file anywhere in your path.
such as /usr/local/bin. compile it anywhere you wish.
 
Old 01-28-2005, 11:46 AM   #3
ColKurtz
Member
 
Registered: Jan 2005
Location: Earth
Distribution: Fedora
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for the quick reply.

Why not just distribute the binary, as opposed to making users compile it? (Actually, I see the rpm there but it's a general question - I've seen other utilities that distribute source-only). Is this a GPL thing, or are there kernel-specifc issues that make compiling preferable?

Thanks again.
 
Old 01-28-2005, 12:01 PM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
programs have to link to the correct locations in the libraries on your system. or they could be static and that would make the files huge.
 
  


Reply


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
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 03:13 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 12:38 PM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 11:23 PM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 05:02 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 01:07 AM


All times are GMT -5. The time now is 04:29 PM.

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