autotools

apache2 build fails in yocto - “/usr/local/include” is unsafe for cross-compilation [-Wpoison-system-directories]

天大地大妈咪最大 提交于 2021-02-08 10:12:56
问题 I was trying to build apache2 on yocto. But I was getting below errors. ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. Rerun configure task after fixing this. Some googling led me to https://lists.yoctoproject.org/pipermail/yocto/2012-March/005125.html So I looked into conf.log and find out those lines: cc1: warning: include location "/usr/local/include" is unsafe for cross-compilation [-Wpoison-system

AM_PATH_PYTHON for python2 and python3

六眼飞鱼酱① 提交于 2021-01-27 06:59:25
问题 I am using automake's macro AM_PATH_PYTHON to find the pythondir variable. Till now I have been calling it without arguments which defaults to python 2.7 on Ubuntu. Now I also want to build it for python3.x (3.3 specifically). Is there a way where I can call AM_PATH_PYTHON([3]) to get python3.3 , store all the generated variables using AC_SUBST in a python3 specific variable and then call AM_PATH_PYTHON([2]) for python2 . I am doing this AM_PATH_PYTHON([3]) AC_SUBST(PYTHON3,$PYTHON) AC_SUBST

Linking against external libraries in gstreamer plugin using autotools

血红的双手。 提交于 2021-01-27 06:29:53
问题 I have written a gstreamer plugin using the boilerplate template refrenced in the gstreamer plugin writers guide (http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/chapter-building-boiler.html). I first built the plugin without full implementation of the chain function (basically an empty plugin that passed data from the source to sink with no changes). I am now implementing the chain function to perform a basic filtering on the data in the buffer. The filtering uses an

using libtool e gdb

末鹿安然 提交于 2020-07-05 10:22:34
问题 I'm working on a project that uses GNU autotools, so in order to debug the code using gdb, I'm running gdb from within libtool: libtool --mode=execute gdbtui foobar Is it possible to reload a modified version of the project without the annoyance of having to quit gdb/libtool and restart? 回答1: libtool --mode=execute creates a temporary executable which is passed to gdb. This executable is removed upon rebuild. The trick is to recreate it with something like libtool --mode=execute echo ./hello

How to test a C++ library usability in configure.in?

ⅰ亾dé卋堺 提交于 2020-06-27 06:56:14
问题 I'm working on a C++ project on GNU/Linux and I'm looking for a way to test the existence and usability of IBM Informix's library with the Autotools - namely, editing a configure.in . I don't have experience with Autotools, so basically I'm picking up from the project's configure.in et al. scripts and copying&changing where I feel needs to be changed. IOW, I've been adapting from the existing text in configure.in . So far I've been using successfully the AC_CHECK_LIB in configure.in to test

How to test a C++ library usability in configure.in?

浪子不回头ぞ 提交于 2020-06-27 06:55:38
问题 I'm working on a C++ project on GNU/Linux and I'm looking for a way to test the existence and usability of IBM Informix's library with the Autotools - namely, editing a configure.in . I don't have experience with Autotools, so basically I'm picking up from the project's configure.in et al. scripts and copying&changing where I feel needs to be changed. IOW, I've been adapting from the existing text in configure.in . So far I've been using successfully the AC_CHECK_LIB in configure.in to test

GDB: Set variable using pipe and awk

十年热恋 提交于 2020-06-16 17:27:15
问题 I would like to store the executable name of the current inferior in a variable. I way to obtain the executable name in the gdb CLI is the following: pipe info inferiors | awk '{ if ($1 == "*") { print $4} }' But I am unable to store the output of this expression in a variable. The expression uses single and double quotes, which makes gdb complain if it is combined with set and eval . (gdb) set $exec="pipe info inferiors | awk '{ if ($1 == "*") { print $4} }'" Argument to arithmetic operation

GDB: Set variable using pipe and awk

痴心易碎 提交于 2020-06-16 17:26:49
问题 I would like to store the executable name of the current inferior in a variable. I way to obtain the executable name in the gdb CLI is the following: pipe info inferiors | awk '{ if ($1 == "*") { print $4} }' But I am unable to store the output of this expression in a variable. The expression uses single and double quotes, which makes gdb complain if it is combined with set and eval . (gdb) set $exec="pipe info inferiors | awk '{ if ($1 == "*") { print $4} }'" Argument to arithmetic operation