Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 21st February 2009, 10:27 PM
Library Eye Offline
Registered User
 
Join Date: Feb 2009
Location: Los Angeles
Posts: 166
Autoconf for total beginner [Solved]

Hi. I have a problem with my display, documented in Mac/PPC post. I've been trying to find a solution to it for most of the year- apparently it's not an uncommon problem (screen is off center). None of the suggestions I have found work. Finally I found one that looks like it would work. I need to edit the source code and then compile a driver. I found the source code and made the suggested edit. The file "configure.ac" says that I need to "Process this file with autoconf to produce a configure script"

I have googled & I have searched this forum looking to no avail for a beginner's guide to autoconf. I am a total newbie and can't make sense of what I find as none of it starts, well, at the beginning... I'd very much like to be able to use linux and learn what I need to to make required changes but I need to find documentation that I can utilize in this aim. Does anyone know where I can find the honest to gosh basics of using autoconf? Not a document that's going to presume an already working knowledge of it? I've looked and looked ... Any help would be greatly appreciated. I really want to fix my display for starters. Thanks everyone.
Reply With Quote
  #2  
Old 21st February 2009, 10:40 PM
Mariano Suárez-
Guest
 
Posts: n/a
What file did you have to edit? Most of the changes to a released autoconfigured package do not need a rerun of autoconf...
Reply With Quote
  #3  
Old 21st February 2009, 10:48 PM
Library Eye Offline
Registered User
 
Join Date: Feb 2009
Location: Los Angeles
Posts: 166
The file is called nv_dac.c
Reply With Quote
  #4  
Old 21st February 2009, 10:50 PM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,619
You can download a free book on autoconf here: http://sources.redhat.com/autobook/
Reply With Quote
  #5  
Old 21st February 2009, 10:52 PM
Mariano Suárez-
Guest
 
Posts: n/a
If that's the only change you made, and if the package you have the source for was properly released (that is, if it has files called "configure" and "Makefile" in its top firectory) you should simply follow the instructions provided with the package, with no need to autoreconfigure anything.

(Well, of course, this really depends on the nature of the change you did: if you added a new dependency or something like that, things will be more complicated... Without knowing any details, it is impossible to tell, but the abov is a safe bet in this case)
Reply With Quote
  #6  
Old 21st February 2009, 11:08 PM
Library Eye Offline
Registered User
 
Join Date: Feb 2009
Location: Los Angeles
Posts: 166
Rupert - thanks for the link.
Mariano - The only edit I made was to remove a couple of lines from the nv_dac.c file. there is a "configure.ac" as well as "makefile.am" file in main directory. But I still need to compile the driver correctly so I can install it? I tried using the code from the configure.ac file but I receive errors.

Last edited by Library Eye; 21st February 2009 at 11:11 PM.
Reply With Quote
  #7  
Old 21st February 2009, 11:14 PM
Mariano Suárez-
Guest
 
Posts: n/a
Well, I did not mention "configure.ac" nor "Makefile.am": I said "configure" and "Makefile". There is a difference...

If you do not have "configure" and "Makefile" in the top directory of the source, then you do need to autoconfigure the thing. Usually, the steps are
Code:
aclocal
autoconf
automake --add-missing
After that, things are setp up to compile, so that
Code:
./configure
make
will usually build the thing.

There are many places where this can fail: for example, you need to have all the required tools (autoconf, automake, and others) and development packages for every dependency.

Without having details about the package it is impossible to tell.
Reply With Quote
  #8  
Old 21st February 2009, 11:28 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
You could try



Code:
autoreconf -v --install
Code:
./configure
make
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
Reply With Quote
  #9  
Old 21st February 2009, 11:32 PM
Library Eye Offline
Registered User
 
Join Date: Feb 2009
Location: Los Angeles
Posts: 166
Looks like a couple of required files

`config.h.in'

`./ltmain.sh'

are missing . So I guess this isn't as ready as I was hoping. Maybe I should hunt down a different package?
Reply With Quote
  #10  
Old 21st February 2009, 11:39 PM
Library Eye Offline
Registered User
 
Join Date: Feb 2009
Location: Los Angeles
Posts: 166
leigh123 -
I tried your suggestion & I received a syntax error after ./configure and then I'm told "No targets specified and no makefile found". Obviously I don't know the first thing about this! I appreciate everyone's help. Thanks so much.

The package is nv-2.1.12
Reply With Quote
  #11  
Old 21st February 2009, 11:49 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
Try this source (non git)

http://xorg.freedesktop.org/releases...-2.1.12.tar.gz
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
Reply With Quote
  #12  
Old 22nd February 2009, 12:03 AM
Library Eye Offline
Registered User
 
Join Date: Feb 2009
Location: Los Angeles
Posts: 166
I downloaded http://xorg.freedesktop.org/releases...-2.1.12.tar.gz - opened it's directory in terminal, ran autoreconf -v --install. then when i ran ./configure
I got same error -
./configure: line 20790: syntax error near unexpected token `RANDR,'
./configure: line 20790: `XORG_DRIVER_CHECK_EXT(RANDR, randrproto)'


am I doing this all wrong?
Reply With Quote
  #13  
Old 22nd February 2009, 12:11 AM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
Quote:
Originally Posted by Library Eye View Post
I downloaded http://xorg.freedesktop.org/releases...-2.1.12.tar.gz - opened it's directory in terminal, ran autoreconf -v --install. then when i ran ./configure
I got same error -
./configure: line 20790: syntax error near unexpected token `RANDR,'
./configure: line 20790: `XORG_DRIVER_CHECK_EXT(RANDR, randrproto)'


am I doing this all wrong?

For the file I linked just run


Code:
./configure
make
su
make install
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
Reply With Quote
  #14  
Old 22nd February 2009, 12:24 AM
Library Eye Offline
Registered User
 
Join Date: Feb 2009
Location: Los Angeles
Posts: 166
I ran above & received error :

checking for XORG... configure: error: Package requirements (xorg-server >= 1.2 xproto fontsproto ) were not met:

No package 'xorg-server' found

I searched Add/Remove Software for xorg-server but found nothing? Is there somewhere safe I can find this? (Funny thing is, I';m not interested in development (obviously I don't know squat about programming - last attempt was in 8th grade) I just want to get my display working right.)
Reply With Quote
  #15  
Old 22nd February 2009, 11:05 PM
Mariano Suárez-
Guest
 
Posts: n/a
You need, at least, the "X Software Development" group installed:
Code:
yum groupinstall "X Software Development"
Someone should tell the xorg-nv guys to release dist'ed tarballs... it is rather silly not to.

Last edited by Mariano Suárez-; 22nd February 2009 at 11:08 PM.
Reply With Quote
Reply

Tags
autoconf, beginner, solved, total

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Total Beginner on Mac lixa Installation and Live Media 4 26th June 2007 08:17 PM
autoconf.h robert_mcnaught Using Fedora 1 7th March 2007 11:17 PM
total beginner tankcntdrv55 Programming & Packaging 10 6th March 2006 08:38 PM
autoconf problem skipper3k Using Fedora 1 29th August 2005 01:46 AM
FC4 Autoconf Koroviev Using Fedora 0 22nd June 2005 06:03 PM


Current GMT-time: 23:17 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat