autoconf

X-I.: command not found, and failed to build certain kind of software, what's wrong?

你离开我真会死。 提交于 2019-12-12 14:12:09
问题 the error message is as follows: ./libtool: line 1129: X-I.: command not found ./libtool: line 1129: X-DLT_CONFIG_H=<config.h>: command not found ./libtool: line 1129: X-DLTDL: command not found ./libtool: line 1129: X-I.: command not found ./libtool: line 1129: X-I.: command not found ./libtool: line 1129: X-Ilibltdl: command not found ./libtool: line 1129: X-I./libltdl: No such file or directory ./libtool: line 1129: X-I./libltdl: No such file or directory ./libtool: line 1129: X-g: command

why autogen.sh failed even with the correct autoconf?

霸气de小男生 提交于 2019-12-12 09:58:20
问题 autogen.sh failed, the output shows that i need an autoconf of higher version. but in fact i have a 2.6x autoconf.... why it still failed? [mirror@home 4]$ ./autogen.sh + autoreconf -i -f -v autoreconf: Entering directory `.' autoreconf: configure.in: not using Gettext autoreconf: running: aclocal --force -I m4 configure.in:4: error: Autoconf version 2.60 or higher is required configure.in:4: the top level autom4te: /usr/bin/m4 failed with exit status: 63 aclocal: autom4te failed with exit

Best way to add generated files to distribution?

若如初见. 提交于 2019-12-12 05:30:58
问题 I have a quite complex (C++) project using autoconf / automake, which includes some "generated" files (foo.yy -> foo.cc). Actual builds are done using a "control script" (Gentoo .ebuild for those familiar with the concept), on various platforms. Now, one of the target platforms does not properly support the foo.yy -> foo.cc step, and has to use the foo.cc file generated on a Linux box. Now I have two ways to go about this: 1) Check in foo.cc into the project repository and somehow patch

Building tesseract without leptonica

末鹿安然 提交于 2019-12-12 03:35:00
问题 I need to build tesseract without leptonica dependency for some work(to porting using emscripten). I looked into the make files and it seems tesseract requires leptonica header files and lib files in order to build. Providing header files is not an issue but i can't provide lib files because of some reason(emscripten doesn't generate lib files of leptonica). and i tried to stop tesseract asking for leptonica by editing make files but it seems i'm heading in wrong way. I'm very new to make

Mixing C++98 and C++11 source in automake/gcc

你离开我真会死。 提交于 2019-12-11 16:15:46
问题 I have a list of cpp files in project which is built using automake tools. Some of them are written using pre-C++11 standard (ie C++98) and they cannot compile with c++11 flag of gcc (-std=c++11). Latest cpp files are using C++11 standard and they need -std=c++11 flag in compile. Can I define in Automake two lists of cpp source files and give different compilation flags? 回答1: This is ripped directly from Setting per-file flags with automake You may bundle your c++11 code into a lib and

Check framework integration on project failed to build

爱⌒轻易说出口 提交于 2019-12-11 12:16:52
问题 I'm integrating C check framework for my project and I was able to run autoreconf --install successfully without any errors. But when I integrate the C check framework, I'm getting an error and warnings that doesn't make sense. Here is the error I'm getting src/Makefile.am:7: warning: variable 'main_LDADD' is defined but no program or src/Makefile.am:7: library has 'main' as canonical name (possible typo) tests/Makefile.am:2: error: 'SHELLTESTS_PROGRAMS' is used but 'SHELLTESTSdir' is

What is the difference between DEFS and CPPFLAGS in autoconf and automake

那年仲夏 提交于 2019-12-11 09:41:17
问题 I already read about the difference between CFLAGS and CPPFLAGS. But my Makefile.am currently uses both DEFS and CPPFLAGS and I am not sure about the difference. DEFS += -DLOCALEDIR=\"$(localedir)\" -DDATADIR=\"$(datadir)\" -DPKGDATADIR=\"$(pkgdatadir)\" and: src_foo_CPPFLAGS = \ $(AM_CPPFLAGS) \ -I$(top_builddir)/src \ -DDATADIR='"$(datadir)"' \ -DMODULEDIR='"$(moduledir)"' \ -DLIBEXECDIR='"$(libexecdir)"' Both the CPPFLAGS and the DEFS seems to create defines with the -D option. So whats

placing object files in different directories in nonrecursive build

二次信任 提交于 2019-12-11 07:38:21
问题 Background We build .mex files for both Matlab and Octave. The source code is common to both Matlab and Octave but with slight modifications here and there (taken care of via macro conditionals in the code). For reference, the source structure is: mex/ | ------------------------------ | | sources/ build/ | | ----------- ------------------------------- | | | | | | mex1/ ... mexN/ octave/ mex1.am ... mexN.am matlab/ | | | ----------- ------------- ------------- | | | | | | file1.cc ... fileM.cc

Autoconf Append to Output Variable and Program Specific LIBS

浪尽此生 提交于 2019-12-11 05:13:49
问题 Using autoconf in configure.ac I need to append to an output variable. Specifically I want to append to the LIBS variable differently for each of my programs (myprogram1 and myprogram2 in the Makefile.am). Lets imagine myprogram1 requires a -lboost_python and myprogram2 requires -losg. Essentially some programs require certain libs while others do not. Here is an example of what I am doing. Of course AC_SUBST does an assignment (= vs +=) from what I understand so that doesn't work. AC_CHECK

Conditionally disable shared library build

▼魔方 西西 提交于 2019-12-11 02:55:53
问题 I’ve written a C library that builds using Libtool, and I’d like to only build static libraries on Cygwin. To that end, I placed if test "$target_os" = "cygwin"; then AC_DISABLE_SHARED fi in my configure.ac . This does indeed disable building shared libraries on Cygwin; however, it also disables building them everywhere else. I assume this is because expanding AC_DISABLE_SHARED causes some unfortunate side effects. How can I use Libtool to avoid building shared libraries on Cygwin while still