autotools

Yocto + Autotools library + CMake application = linker error

廉价感情. 提交于 2019-12-13 05:13:23
问题 I have a Yocto BSP with my own layer that includes an autotools 3rdy part library (libcoap). My application ".bb" file has the following lines, telling libcoap is needed: DEPENDS += "libcoap" RDEPENDDS_${PN} += " libcoap libcoap-dev libcoap-devstatic" I can see the library files are being copied to sysroot: $ ls -l /projects/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/coap-playground/1.0-r0/recipe-sysroot/usr/lib/libcoap* -rw-r--r-- 2 udev udev 286430 Ago 21 13:53

How to deploy a Find*.cmake file for an Autotools library in the correct place for Yocto?

≡放荡痞女 提交于 2019-12-13 04:27:39
问题 I created a new layer over an existing Yocto git for my company project. In this layer I added a few external autotools based libraries. A few applications need to link against this libraries and the application projects are all cmake based. Taking one of this libraries (e.g. libcoap) I could easily find some FindCoAP.cmake to add to my library recipe. Now if I was running on PC, it would simply be a matter of placing this FindCoAP.cmake file in cmake 's ${CMAKE_ROOT}/Modules dir, but how

config.h.in not being used as a template

人盡茶涼 提交于 2019-12-13 04:05:53
问题 I'm trying to supply a config.h.in to Autotools. The topic is covered in the Autoconf manual at 4.8.1 Configuration Header Templates. config.h.in looks like so: /// \file config.h /// \brief Library configuration file #ifndef CRYPTOPP_CONFIG_H #define CRYPTOPP_CONFIG_H // define this if running on a big-endian CPU #undef CRYPTOPP_BIG_ENDIAN // define this if running on a little-endian CPU #undef CRYPTOPP_LITTLE_ENDIAN #endif // CRYPTOPP_CONFIG_H Our configure.ac includes the following for

VPATH out-of-source build

北慕城南 提交于 2019-12-13 03:39:00
问题 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: root_dir/ | --------------------------------------------------- | | | | configure.ac mex/ Makefile.am non-mex-source/ | ------------------------------ | | sources/ build/ | | ----------- ------------------------------- | | | | | | mex1/ ... mexN/

What is the proper method to modify the autotools options of a Buildroot source package using BR2_EXTERNAL?

本秂侑毒 提交于 2019-12-13 00:30:06
问题 I want to change the <PKG>_CONF_OPTS config options for a package included in Buildroot without altering the baseline <pkg>.mk file. Based on what I'm reading, it shouldn't be necessary to completely override the package using the BR2_PACKAGE_OVERRIDE_FILE as I don't want to change the source or anything else significant. It has been suggested that this can be done using BR2_EXTERNAL and external.mk , but I cannot find any examples and my attempts have failed. The Buildroot documentation is

Autoconf spaces in path

╄→гoц情女王★ 提交于 2019-12-12 22:22:49
问题 I just converted a c++ project to a autotools project and written a few lines in configure.ac from here. Build fails saying "sh: /home/me/bla: No such file or directory" when my path should be "bla bla". The problem is I didn't write any path anywhere. What shoul I do? Except for renaming the path... Doh! 回答1: Sorry, there are just a few things that you can't do with autoconf and have a path with spaces in the name is one of them. 来源: https://stackoverflow.com/questions/16194124/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

Makefile.am create empty directory

吃可爱长大的小学妹 提交于 2019-12-12 11:46:27
问题 Using autotools, I need to create an empty directory tree when typing make install, like: /etc/myprg/ |-- foo right now, I do this by specifying empty targets, like this: myprgdir = $(sysconfdir)/myprg/ myprgfoodir = $(sysconfdir)/myprg/foo and then dist_myprg_DATA = dist_myprgfoo_DATA = But, I wonder if a better way to do something like this exists! 回答1: Perhaps like this: install-data-local: $(MKDIR_P) $(DESTDIR)$(sysconfdir)/myprg/foo uninstall-local: rmdir $(DESTDIR)$(sysconfdir)/myprg

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

Adding a path to AC_CHECK_LIB

主宰稳场 提交于 2019-12-12 07:55:54
问题 I have the following problem with configure.ac: I would like to add a library search path because the libraries I have to use are in some crazy folders. My idea is to do this with an option: AC_ARG_WITH([cplex-lib-path], [AS_HELP_STRING([--with-cplex-libs], [location of the CPLEX library])], [CPLEX_LIBS="-L$withval --lcplex"], []) If someone specifies the library path I would of course like to see if the library can be found: AC_CHECK_LIB([cplex], [CPXcreateprob], [], [ AC_MSG_ERROR([Could