autotools

Using maven2 to build autotools-based C/C++ package

孤人 提交于 2019-12-04 14:42:45
I am working on a collection MATLAB, Java, and C/C++ components that all inter-operate, but have distinctly different compilation/installation steps. We currently don't compile anything for MATLAB, use maven2 for our Java build and unit tests, and use autotools for our C/C++ build and unit tests. I would like to move everything to a single build and unit test system, using maven2, but have not been able to find a plugin that will allow the C/C++ codestream to remain autotools-based and simply wrap it in a maven build. Having to rip out autotools support and recreate all the dependencies in

Relative or independent paths in libtool .la file

为君一笑 提交于 2019-12-04 12:06:20
问题 My .la file has full pathnames in both the dependency_libs= section and the libdir= section which makes it difficult to copy my libraries to a different machine (same arch but different path structure). What is the solution to this, besides having some script to hack the .la file to adjust for the paths on the new machine? ==Details== When I ./configure; make; make install my libfoo , depending on how I use the --prefix , --exec-prefix , and DESTDIR= flags, I'll get an entry in the libfoo.la

Autoconf — including a static library (newbie)

回眸只為那壹抹淺笑 提交于 2019-12-04 10:15:23
问题 I am trying to migrate my application from manual build to autoconf, which is working very nicely so far. But I have one static library that I can't figure out how to integrate. That library will NOT be located in the usual library locations - the location of the binary (.a file) and header (.h file) will be given as a configure argument. (Notably, even if I move the .a file to /usr/lib or anywhere else I can think of, it still won't work.) It is also not named traditionally (it does not

Check framework example giving me error when running './configure'

孤街浪徒 提交于 2019-12-04 09:15:43
I'm building the check framework example 'check_money', but it's not building on my machine. The error is: configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." I've tried installing it using: libtoolize --force aclocal autoheader automake --force-missing --add-missing autoconf ./configure It's still giving me the same error. So, I copied the same directory to another directory and ran: autoreconf --install ./configure And it's still giving me the same error. I don't know what else to try. I'm on Mac OS X Mavericks (10.9) Autoconf 2.69 Automake 1.15 Libtool 2

how to set include paths with autotools

爷,独闯天下 提交于 2019-12-04 07:59:57
问题 I'm working on a C++ project that uses autoconf & automake , and I'm struggling to correctly set up the include paths in *CPPFLAGS . I've read about 3 hours worth of documents, and I can't figure it out yet. I'm not looking for a hack, but for the correct way to do this. Here is my conundrum. As I see it, there are 3 completely different sources for include paths: External libraries that must be installed along with my package, which are configured by configure --with-XXX=<PATH> . Within my

Alternatives to Autoconf and Autotools? [closed]

a 夏天 提交于 2019-12-04 07:27:42
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm a very frequent user of the GNU Autotools (mostly Autoconf, occasionally Libtool). I'm working on a project where portability is

How do I convert an Autotools project to a CMake project? [closed]

大兔子大兔子 提交于 2019-12-04 07:26:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . So there seems to be a lot of writing on the subject of Autotools vs. CMake, but for the life of me I can't seem to find a good tutorial on how to convert a project from Autotools ( Makefile.am and configure.ac files) to CMake ( CMakeLists.txt files). How does one go about doing this? 回答1: There is no automated

Why does autoconf erroneously find a function which isn't available later?

人走茶凉 提交于 2019-12-04 06:06:55
问题 On a Linux system I configured a software package (llvm) and autoconf finds the arc4random function. Here an extraction of the output during configuration: checking for strerror... yes checking for strerror_r... yes checking for setenv... yes checking for arc4random... yes checking for strtoll... yes checking for strtoq... yes checking for sysconf... yes Configuring goes fine. Later, when building the package I get an error about an undeclared specifier arc4random : [removed]/lib/Support/Unix

How to disable C compiler in C++ Autotools project

时光毁灭记忆、已成空白 提交于 2019-12-04 05:53:13
问题 I'm in the early stages of adding Autotools support to a C++ library. At this point I'm running autoreconf with the following configuration. $ cat Makefile.am AUTOMAKE_OPTIONS = foreign bin_PROGRAMS=cryptest $ cat configure.ac AC_INIT(Crypto++, 6.0, http://www.cryptopp.com/wiki/Bug_Report) AM_INIT_AUTOMAKE AC_PROG_CXX AC_CONFIG_FILES([Makefile]) It is producing: $ autoreconf --install --force /usr/share/automake-1.15/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL /usr

Autotools cross compilation and generated sources

三世轮回 提交于 2019-12-04 04:48:49
问题 I'm trying to create a library using autotools (autoconf, automake, libtool) as a build system. The library has to be cross-compileable, but one of the steps of building it is to generate sources by executable built from sources during the whole process. The problem is I cannot use automake's system to build the intermediate binary because when it's cross compile it wouldn't run on '--build' to generate sources. One way to work this around it to create separate autools project to build