Hello
I'm trying to start with autoconf / automake for a new project. To get started, I'm reading "Using GNU Autotools" and trying to build the Hello-World-Tutorial.
The required files from page 96 (real Page=105 because it's a LaTeX-Presentation) configure.ac, Makefile.am and src/Makefile.am look exactly as stated in the document.
Af...
Hi all, Please help
I'm trying to build a third party library which uses auto-generated
source code files.
In normal case, this kind of files is generated by gnu build tools.
My question is How can I tell the Android NDK build tools to generate and build this kind
of files.
Thanks in advance
...
I just want to develop a C app in linux with the auto(make/conf/...) stuff automatically generated. I tried generating it with ede and anjuta, but it doesn't seem to generate Makefile.am. So, I tried running automake, and it says "ltmain.sh" isn't found. Is there some easy to generate the basic build files for linux C/C++ apps. What is t...
I recently learned how to use automake, and I'm somewhat annoyed that my compile commands went from a bunch of:
g++ -O2 -Wall -c fileName.cpp
To a bunch of:
depbase=`echo src/Unit.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I./src -g -O2 -MT src/Unit.o -MD -MP -MF $depbase.Tpo -c -o src/Unit.o src/Unit.cp...
Hello,
I have a Makefile.am file right now that looks like this:
lib_LIBRARIES = foo.a
foo_a_SOURCES = bar.F90 baz.F90
When compiled, bar.F90 gives bar.o. However, bar.F90 depends on several other Fortran files (cat.F90, dog.F90, pig.F90). I want to set up Automake to rebuild bar.o if the source of one of these dependencies change.
...
Hello,
I try to compile an application with kdevelop 3.5.4 on Ubuntu 10.04, but it fails with the following errors:
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... no
configure: error: in `/home/nts/wktools4':
configure: error: C++ compiler cannot create executables
See `conf...
I want to know how to set default compiler/linker/etc. flags if I use Autoconf/Automake combo.
For example, the default compiler flag is "-O2 -g" if I don't set anything. I can just override it with something else, for example if I want to debug:
./configure 'CXXFLAGS=-O0 -g'
But I find the default configuration stupid because if I e...
I have a C application I'm converting from a set of hand coded Makefiles to GNU AutoMake. It has a subdirectory that contains an interface header and several platform-dependent implementations. Currently an implementation is selected and built to an object file with a fixed name in that directory. The code that uses the driver interface ...
User > ~/mysql-5.1.46
$ automake
....
sh: fork: Resource temporarily unavailable
autom4te-2.65: need GNU m4 1.4 or later: /cygdrive/e/cygwin/bin/m4
automake-1.10: autoconf failed with exit status: 1
I did run ./configure and want to do make now..
Please suggest
...
I'm trying to convert libcsv to use libtool so I can use it on mac os x without mangling the makefile. When I try to run the makefile generated from the tools I get the following error:
~/software/libcsv (gnu_tools) $ make
tag=CC --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"...
Hello guys,
I see there are many version of autoconf and automake available in my ubuntu linux.
If I want create a new project from scratch, what's best choice, latest versions or older versions?
...
I have generated my autoconf/automake files for my project. So far eveything works fine when I issue the ./configure && make && make install, however, when I do ./configure on some other machine, I get configure: error: cannot find install-sh or install.sh in "." "./.." "./../.."
If I ls -la on the source directory where I generated the...
I recently switched from using Makefiles to using Automake, and I can't figure out how to write the following simple if statement using automake:
DEBUG ?= 1
ifeq (${DEBUG},1)
CXXFLAGS:=$(CXXFLAGS) -g
else
CXXFLAGS:=$(CXXFLAGS) -O3 -DNDEBUG
endif
Is this even possible to do if I'm using automake? Since it generates the makefile from au...
Suppose I want to add a runtime conditional to a Makefile generated by Automake. Is there any way to tell Automake about this conditional?
...
I'm using a 64bit system but want a set of 32bit binaries. What options must I pass to a configure script to generate a 32bit/x86 makefile?
...
After running make distcheck I get the message that I have successfully built the package and is ready for distribution. If I untar the tar.gz with tar -zxvf hello-0.2.tar.gz it successfully extracts all of its contents. However, when I try to extract them in different machines I get:
tar: This does not look like a tar archive
tar: Skip...
I am familiar with the if VAR_NAME, where VAR_NAME is defined by an AM_CONDITIONAL clause inside of configure.ac.
Is there a corresponding "if not defined" construct in Makefile.am?
...
For those unfamiliar with IDL (interface description language), it abstracts data description for use across platforms (java, c, c++, etc). My project has dependencies Foo.c, Foo.h, FooHelper.c, and FooHelper.h which are generated from Foo.idl. How do I run an arbitrary command when Foo.idl changes, but still include Foo.c, FooHelper.c, ...
Hi,
I'm trying to develop a program that uses another internal library done in the same project.
I want to link both. The lib is stored and succesfully compiled under ./lib/mylib and a mylib.a is created. The issue is that I need to include ./lib/mylib directory in the INCLUDE search and also link the program against the library.
Are ...
I'm using Automake to maintain the package, there are some shell scripts which don't need to compile, so I install them using _SCRIPT primary:
Makefile.am:
bin_SCRIPTS = script1.sh
But the tarball generated with make dist doesn't contain this script1.sh file. Is there something I missed in the Makefile.am?
...