Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
45 views

How to change the format of tarballs when running `make dist` in autotools

I'm using GNU Autotools to build my C++ project. And I want to use make dist to create a tarball of my project. However, the default format of tar is gnu, which supports only paths with no more than ...
Timothy Liu's user avatar
1 vote
0 answers
37 views

macOS 12.7.4: compile error from Xcode14.2 module "map"

On macOS 12.7.4, I'm trying to port from linux a beloved old app for small-scale scientific data processing (used by me for about 40 years on various platforms), called eXtrema. After struggling with ...
c-andy's user avatar
  • 11
0 votes
1 answer
35 views

configure.ac proper syntax

ALL, Im adding the following in my configure,ac: AX_HAVE_QT() if have_qt=yes ; then MY_CXXFLAGS+=@(QT_CXXFLAGS)@ MY_LIBS+=@(QT_LIBS)@ fi AC_SUBST(MY_CXXFLAGS) AC_SUBST(MY_LBS) problem is, ...
Igor's user avatar
  • 5,972
0 votes
1 answer
48 views

make fails on a system without Qt

I made a modification to my project to recognize whether I'm building against GTK or Qt. I can build my project on the system where Qt is installed, but if there is no Qt it fails with: g++: warning: @...
Igor's user avatar
  • 5,972
0 votes
0 answers
16 views

Dynamic library tries to link to static one

ALL, In my configure.ac I have added following line: AX_HAVE_QT() and then in Makefile.am I'm doing this: QT_CXXFLAGS = @QT_CXXFLAGS@ QT_DIR = @QT_DIR@ QT_LIBS = @QT_LIBS@ QT_LRELEASE = @QT_LRELEASE@ ...
Igor's user avatar
  • 5,972
-1 votes
1 answer
55 views

Can I omit Makefile.in from version control if it's generated from Makefile.am?

My project contains 1 binary and 14 subprojects. Each one is located in its own folder. Each folder have Makefile.am, Makefile.in, and then in the Debug/Release folders in the top of the tree there ...
Igor's user avatar
  • 5,972
0 votes
1 answer
62 views

Does Qt use pkg-config

Does Qt use pkg-config? If not, what is the best way to find where Qt is installed for the Automake & friends project? My project is based on the Autotools and Makefile is generated by Anjuta. ...
Igor's user avatar
  • 5,972
2 votes
1 answer
43 views

How to access default value of $prefix (/usr/local) in configure.ac?

Despite the documentation stating that $prefix is defined as /usr/local by default, when trying to expand the $prefix variable in configure.ac, it expands to NONE. Testing with the following configure....
nfl's user avatar
  • 65
3 votes
3 answers
101 views

Make Autotools project with SDL2

I am spinning up a new project. I want to use autotools for my build system, and the project will link to SDL2. However, I'm stuck writing the configure.ac file. The documented way to link to SDL2 ...
Orion's user avatar
  • 1,208
0 votes
0 answers
28 views

GNUAutomake: Can a target be added to `target_SOURCES` [duplicate]

Let's say I would like to build a target foo that depends on another target bar (which could be anything). How can I achieve this in Automake syntax? Simply adding the target to foo_SOURCES in ...
ArtPe's user avatar
  • 13
1 vote
1 answer
65 views

How to properly specify public and private headers with autotools? (library in C or C++)

I have a library in C which can be built with both autotools and CMake. In CMake, it is possible to define public and private headers (.h), so that the public ones are then installed (to be used in ...
t-w's user avatar
  • 41
1 vote
0 answers
74 views

How to Set gfortran Compiler Flags in a Complex Build System Involving Makefile.am, configure.ac, and setup.py?

Following this question, I am working on building a project that involves compiling FORTRAN 77 code using gfortran, but I am encountering a compilation error due to missing compiler flags. The ...
Foad S. Farimani's user avatar
3 votes
1 answer
48 views

How to trace which `configure.ac` m4 macro expands to a specific bash code block in `configure`?

Following this question, I am working on debugging a legacy build system and need to understand how a specific section of the generated configure script is produced from its configure.ac m4 source. ...
Foad S. Farimani's user avatar
2 votes
1 answer
492 views

"Command not found" errors in configure script how to diagnose?

I am maintaining a legacy project and encountered an issue while running the configure script in the build process. The script fails with multiple "command not found" errors pointing to some ...
Foad S. Farimani's user avatar
0 votes
2 answers
56 views

Flint installation error: make: *** [build/generic_files/memory_manager.lo] Error 1

I'm trying to install v3.1.2 of flint into my account on the MPCDF HPC cluster. I managed to install GMP 6.3.0, MPFR 4.2.1 in my home directory with ./configure --prefix=$HOME/software/<packagename&...
Thejasvi's user avatar
  • 212
1 vote
2 answers
102 views

How to Handle File Existence Check in `configure.ac` When Cross Compiling on WSL

I am working on a project that requires conditional compilation based on the presence of certain files, specifically for integrating IPOPT (an optimization library). My development environment is ...
Foad S. Farimani's user avatar
0 votes
0 answers
50 views

Re-flex library not found in C++ autotools project

I am working on a compiler project so I am using Re-flex for the lexer and Bison for the parser. The build project is based on autotools and everything is fine except one thing : fatal error: 'reflex/...
Lazyx's user avatar
  • 11
1 vote
1 answer
79 views

How to configure/build external libraries in order to achieve relocatable builds?

I'm referring to OpenSSL as an example but I guess my question as well applies to similarly configured/built libraries. In order to avoid unnecessary rebuilds (and to track upstream changes and build ...
frans's user avatar
  • 9,656
0 votes
0 answers
57 views

How to make a customized release on gitlab?

I am trying to setup the automatic generation of a nightly release on a (public) gitlab instance. The project uses the GNU Autotools and the release I want to publish is the tarball generated by make ...
Caulder's user avatar
  • 71
0 votes
1 answer
85 views

How to detect in autotools what libc uses Linux distributive: glibc, uclibc, musl, etc

There are different implementation of some (for example backtrace) function in code. This implementation differs depending on libc version. In my case it could be glibc (Debian) or musl libc (openwrt)....
Misha T's user avatar
  • 355
0 votes
1 answer
76 views

CMake forwarding parallel builds to make when using ExternalProject_Add on a Autotools-generated project

I'm trying to have CMake to call make in parallel mode when using ExternalProject_Add, but the external project's makefiles aren't being generated by CMake, but with Autotools. I don't want to hard-...
Leonardo's user avatar
  • 1,722
0 votes
0 answers
165 views

How to compile and link a cpp file separately in unity builds?

I have a file for which I wish to disable unity builds as it causes linker error. For CMake I achieved the result using this- set_source_files_properties(foo.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION ...
Siddharth Mehrotra's user avatar
0 votes
0 answers
38 views

How to replicate, sort of, CMakeLists.txt files into autotools files?

I have a directory structure with source code cpp- and header-files in many subdirectories at many different levels. Each directory has its own CMakeLists.txt specifying how the library target in that ...
apprentice's user avatar
0 votes
1 answer
135 views

automake gives the error ".la: file not recognized: file format not recognized"

I want to use a library created by libtool in an autoconf subproject but I get: $ make [...] gcc -g -O2 -o test test.o liba/liba.la liba/liba.la: file not recognized: file format not recognized ...
Fabio Porcedda's user avatar
0 votes
1 answer
1k views

How to successfully run make install without root privileges

I'm trying to package an RPM of a systemd service written in C and managed by autoconf and autotools. I've learned that I should not build programs as root, which means that I should run make instead ...
wwillfred's user avatar
0 votes
1 answer
155 views

How to package an RPM with an old autoconf/automake project

I'm trying to package an RPM of a systemd service written in C and managed by autoconf and autotools. When I attempt to package an RPM using the sudo make rpm command as instructed in the project's ...
wwillfred's user avatar
0 votes
1 answer
37 views

share AC_DEFINE trough AC_CONFIG_SUBDIRS in autoconf

I have two progrects using autoconf. Project A uses project B through AC_CONFIG_SUBDIRS() project A configure.ac: AC_CONFIG_SUBDIRS([projectb]) project B configure.ac: AC_DEFINE([NEWDEFINE]) I ...
Fabio Porcedda's user avatar
1 vote
1 answer
130 views

How to correctly use both Doxygen and GNU Autotools together

I wish to use the GNU build system to automatically compile C++ documentation with Doxygen and then install the resulting html and PDF. I found the following m4 script (ax_prog_doxygen) that is ...
sel's user avatar
  • 23
0 votes
1 answer
134 views

Autotools: If I only change the installation directory do I need to rebuild everything? If not how can I avoid this

I build a C++ code with autotools i.e. ./configure && make && make install, but now I want to change the directory where the code installs so I should do ./configure --prefix=${...
krabby patty's user avatar
0 votes
1 answer
163 views

automake -- SUBDIRS -- "No such file or directory"

I am using autoconf/automake for my build system. So far it has been working just fine. However, I want to split some code out into another lib that I will be loading dynamically from within my main ...
Matthew Hoggan's user avatar
0 votes
2 answers
91 views

Makefile.am: How to list all files (of specific extension) in `foo_HEADERS`?

In a Makefile.am, there is the following rule that mentions all *.h files in that specific folder (several hundreds of them): foo_HEADERS = file1.h file2.h ... As the project evolves, new header ...
emacs drives me nuts's user avatar
2 votes
1 answer
581 views

cross compile libcurl to run on ios simulator

I need to cross compile libcurl so that I can use its API from within an iOS app running on the Xcode iOS simulator. I have a simple app in swift that calls out to a C driver function, which then ...
asmvolatile's user avatar
0 votes
0 answers
31 views

Where does cmake store the results of the environment tests that it performs at the beginning of each configure? [duplicate]

Cmake has the configure_file function to perform an operation similar to autotools' configure script processing foo.h.in into a foo.h, that contains macros describing relevant parameters of the ...
cycollins's user avatar
  • 445
0 votes
1 answer
79 views

Apart from complexity, are there technical barriers to have a "crossplatform autotools"? [closed]

I'm asking out of curiosity. If this kind of question is not welcome, please let me know. I am aware of the autotools stack and its problems, but one major, albeit theoretical benefit of them is that ...
lightspot21's user avatar
1 vote
0 answers
70 views

How to make customized release on gitlab?

I am trying to setup the automatic generation of a nightly release on a (public) gitlab instance. The project uses the GNU Autotools and the release I want to publish is the tarball generated by make ...
caulder's user avatar
  • 83
0 votes
1 answer
262 views

Termux autotools/libtool cannot determine link -lib interface

I'm using Termux for Android 12. I've got a simple C project using autotools. I run: autoreconf -i ./configure And it fails saying: checking the archiver (link -lib) interface... unknown configure: ...
Innovations Anonymous's user avatar
0 votes
1 answer
217 views

automake: how to portably throw an error and aborting the target

Depending on a condition checked for in the configure script, I want to throw an error, thus aborting the target. (i.e. refuse to compile tests on 'make check', if the test framework is not installed) ...
caulder's user avatar
  • 83
0 votes
0 answers
99 views

Autoconf macro to check if gcc-multilib is present (if gcc can compile 32bit code)

A C-project uses GCC to produce 32-bit objects. To that end, a user building the project in a 64-bit host machine is required to have multilib enabled (e.g. in Unbuntu, apt install gcc-multilib). What ...
fjm's user avatar
  • 46
0 votes
1 answer
773 views

What are .Plo files and how are they used by the source code and GNU Autotools?

I am relatively new to C++ coding. I have a repository of C++ source code which along with the rest of the .h, .cpp, configure and Makefiles has many .Plo files. What are .Plo files and how are they ...
skinnybb's user avatar
  • 121
1 vote
3 answers
919 views

How to build c++20 using modules with autotools?

This is the project: Source program using the keyword import: hello.cpp import <iostream>; #include "config.h" int main() { std::cout << "Hello World, " << &...
Ventura's user avatar
  • 21
1 vote
0 answers
94 views

Automake fails to detect header, despite specifying include dir

I am relatively new to GNU AutoTools but was put on a large C/C++ project that uses it. My role is to fork and implement an experimental feature for this project. Edit: Link is there if you would like ...
satosan121's user avatar
1 vote
1 answer
81 views

Linux shared object version scheme

In Linux, every shared object filename has libfoo.so.X.Y.Z scheme, with symbolic link libfoo.so.X -> libfoo.so.X.Y.Z, and symbolic link libfoo.so -> libfoo.so.X usually coming from devel package....
0x2207's user avatar
  • 908
0 votes
0 answers
3k views

checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized

./configure gives me the following error upon compilation attempt: loading cache ./config.cache checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' ...
Hashem HZ's user avatar
1 vote
2 answers
83 views

How to do autotools VPATH builds with Rust

I am working on a library project which mixes C, C++, and Rust code. For historical reasons I use autotools to drive building. Essentially, my Makefile.am looks like this: libfoo_la_LIBADD += rustfoo/...
Jose Gracia's user avatar
1 vote
0 answers
372 views

How can i make the configure file search for a library in particular directory

I am trying to build the arp-scan tool from source.When i first tried it was missing the library libpcap. So i downloaded the libcap source and build the source successfully.Now i have the library ...
ABHIJITH EA's user avatar
1 vote
1 answer
149 views

How do I convert architecture-based checks to autoconf?

I'm working on trying to convert a project to autoconf which has a hand-written configure script. In this script, there are several occasions where variables are set based on CPU architecture, such as ...
Galladite's user avatar
  • 127
0 votes
1 answer
72 views

Autotools build code and unit tests in a singularity container

The question: Is there a way in autotools to build my code and unit tests without running the unit tests? I have a code base that uses autotools and running make check compiles the code and runs unit ...
byrdman1982's user avatar
0 votes
0 answers
49 views

how do I use autotools with relative directories for GitLab jobs?

I'm trying to use GNU autotools to configure, make, and install a program. I'm running into problems when I configure and make the program inside a GitLab job. It builds without errors, the problem is ...
grace9's user avatar
  • 87
1 vote
2 answers
214 views

configure - check for availability of Perl headers (solved)

I'm developing an open source application where I'd like to include Perl conditionally (for different text processing purposes - that's just for information, not to be criticized as a concept :-). How ...
Sergey S.'s user avatar
0 votes
1 answer
67 views

Prepending custom dirs ($ZPFX/{include,libs}) to CPP..../LDFLAGS with use of config.site file of autotools?

I'm using a $CONFIG_SITE set to $ZPFX/share/config.site file containing: CPPFLAGS="-I$ZPFX/include $CPPFLAGS" LDFLAGS="-L$ZPFX/lib $LDFLAGS" where $ZPFX variable is my custom user ...
psprint's user avatar
  • 23

1
2 3 4 5
31