C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 02-08-2005, 08:08 PM   #1
Registered User
 
Join Date: Dec 2004
Posts: 25
compiling a program that has no configure script

i'm trying to compile a program that has no configure script, only a makefile. i've tried several things:

Code:
$ cd R-1.9.0/tests/Embedding/
$ ./configure
-/bin/bash: ./configure: No such file or directory
$ make
make: *** No targets specified and no makefile found.  Stop.
$ aclocal
aclocal-1.9: `configure.ac' or `configure.in' is required
$ automake
automake-1.9: `configure.ac' or `configure.in' is required
$ autoconf
autoconf-2.59: no input file
the contents of Makefile.in can be found here: http://rafb.net/paste/results/VpZyPG23.html

what do i have to do to build it? thanks.
serfurj is offline   Reply With Quote
Old 02-08-2005, 08:29 PM   #2
Registered User
 
Scribbler's Avatar
 
Join Date: Sep 2004
Location: Aurora CO
Posts: 266
Have you tried make -f <name of makefile>? In your case make -f Makefile.in.

Quote:
make executes commands in the makefile to update one or more target
names, where name is typically a program. If no -f option is present,
make will look for the makefiles GNUmakefile, makefile, and Makefile,
in that order.
Scribbler is offline   Reply With Quote
Old 02-08-2005, 08:41 PM   #3
Registered User
 
Join Date: Dec 2004
Posts: 25
here's what happens:
Code:
$ make -f Makefile.in
Makefile.in:11: ../../Makeconf: No such file or directory
make: *** No rule to make target `../../Makeconf'.  Stop.
so i copied ../../Makeconf.in to ../../Makeconf and tried again:
Code:
$ make -f Makefile.in
../../Makeconf:4: @top_srcdir@/share/make/vars.mk: No such file or directory
../../Makeconf:98: *** missing separator.  Stop.
i wonder if they intended for users to build the application with a different set of make tools (non-gnu). any other suggestions? should i consult the developers?
serfurj is offline   Reply With Quote
Old 02-09-2005, 02:41 AM   #4
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,680
How about just
make

Maybe the makefile (not the makefile.in) is simple enough not to need a configuration.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Salem is offline   Reply With Quote
Old 02-09-2005, 03:44 AM   #5
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,492
Or rather, the program is simple enough not to need platform adaption. Or the programmer never intended to target any platform but Linux.


OR


If a Makefile.in exists, then the programmer probably didn't run autoconf himself. Type:
autoconf
and it should generate the configure script. Then do
./configure
to configure and
make
to build.
__________________
All the buzzt!
CornedBee

"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
CornedBee is offline   Reply With Quote
Old 02-09-2005, 09:06 AM   #6
Registered User
 
Join Date: Dec 2004
Posts: 25
Code:
$ autoconf
autoconf-2.59: no input file
the autoconf man page says it expects a configure.ac or configure.in file, neither of which exist.
Code:
$ make
make: *** No targets specified and no makefile found.  Stop.
serfurj is offline   Reply With Quote
Old 02-09-2005, 10:00 AM   #7
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,680
How about

make all

Or even just posting more information so we don't keep guessing.......
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Salem is offline   Reply With Quote
Old 02-09-2005, 10:18 AM   #8
Registered User
 
Join Date: Dec 2004
Posts: 25
Code:
$ make all
make: *** No rule to make target `all'.  Stop.
Quote:
Originally Posted by Salem
Or even just posting more information so we don't keep guessing.......
your first question (and CornedBee's question) were both answered in my initial post. i was being polite by not bringing this to your attention in my last post.

here is what i'm trying to build (it depends on R libraries):
http://129.109.84.26/r.tar.gz
serfurj is offline   Reply With Quote
Old 02-09-2005, 10:36 AM   #9
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,492
OK, some research showed me your problem. You're trying to compile part of a larger source tree. The configure script is two directories above the thing you're trying to compile. As shown here:
https://svn.r-project.org/R/trunk/
You're trying to compile only the tests/Embedding subdirectory. You need the whole source.
__________________
All the buzzt!
CornedBee

"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
CornedBee is offline   Reply With Quote
Old 02-09-2005, 10:53 AM   #10
Registered User
 
Join Date: Dec 2004
Posts: 25
ah, i see. that's supposed to be an example of how to embed R into your C program, so i figured it was self-contained.

thanks for the help!
serfurj is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Program Plan Programmer_P C++ Programming 0 05-11-2009 01:42 AM
Stray Error while compiling Mankthetank19 C Programming 4 12-02-2008 05:55 AM
Screwy Linker Error - VC2005 Tonto C++ Programming 5 06-19-2007 02:39 PM
compiling a program that is splitted in several files with gcc incognito54 C Programming 3 04-19-2004 08:09 AM
Help compiling a program jjj93421 C++ Programming 1 03-08-2004 06:38 PM


All times are GMT -6. The time now is 08:04 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22