autotools

Why does my BitBake autotools recipe fail during do_configure?

流过昼夜 提交于 2019-12-25 18:20:12
问题 I am attempting to create a fairly simple BitBake recipe that uses autotools, which you can see here: SUMMARY = "an example autotools recipe" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" inherit autotools SRC_URI = "file://${TOPDIR}/piu/geo_utilities" S = "${TOPDIR}/piu/geo_utilities" After starting a BitBake build with this recipe's default package included, do_configure fails with the following: configure: exit 0 WARNING: /home

Fail to Link Portaudio Library

旧城冷巷雨未停 提交于 2019-12-25 12:40:12
问题 I have made a simple Makefile project using Portaudio libraries and the project has been working fine with the following Makefile: CXXFLAGS = -O2 -g -Wall -fmessage-length=0 OBJS = RecAudio.o LIBS = ../Portaudio/portaudio/lib/.libs/libportaudio.a -lpthread -lrt -lasound #LIBS = -lportaudio -lpthread -lrt -lasound TARGET = RecAudio $(TARGET): $(OBJS) $(CXX) -o $(TARGET) $(OBJS) $(LIBS) all: $(TARGET) clean: rm -f $(OBJS) $(TARGET) I'll try to integrate Portaudio libraries into another project

Cause of change from `-arch ppc` to `-arch ppc7400`?

◇◆丶佛笑我妖孽 提交于 2019-12-25 05:48:12
问题 This is related to Git 2.4.8 built from kernel.org sources and missing HTTP/HTTPS helpers. I found cURL's library was effectively configured with -arch ppc -arch ppc64 , but the fat library that was built has the architectures -arch ppc7400 -arch ppc64 . That's causing a Git configure/link failure, so Git's configure is [silently] dropping cURL, which is [silently] removing the HTTP/HTTPS helpers. The really odd thing is the other eight or so dependent libraries are fine when built using the

How to build in a separate directory with autotool

给你一囗甜甜゛ 提交于 2019-12-25 01:32:14
问题 I have a working directory as below: ./ |----HelloWorld/ |----|----main.cpp |----|----Makefile.am |----Pet/ |----|----Pet.h |----|----Pet.cpp |----build/ |----configure.ac |----Makefile.am I would like to use the autotool to construct makefile and then build the project in the build directory. The ./configure.ac is # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) AC_INIT([Hello], [1.0], [qub@oregonstate.edu]) AM_INIT_AUTOMAKE([-Wall -Werror

libxml2 not compilable on Cray, static/dynamic library missmatch

你说的曾经没有我的故事 提交于 2019-12-24 19:02:53
问题 Since I cannot seem to use the available libxml2 (see my other question), I want to compile it myself from scratch. I need to use the Cray wrapped Intel compiler for this. During the linking stage, I get many of these errors: ld: attempted static link of dynamic object `./.libs/libxml2.so' The configure line is this: libxml2/configure --prefix=local-icc CC=/opt/cray/pe/craype/2.5.14/bin/cc CXX=/opt/cray/pe/craype/2.5.14/bin/CC --enable-option-checking --host=x86_64-linux-gnu --without-zlib -

Control GNU autotools make output

假如想象 提交于 2019-12-24 06:29:09
问题 I am using GNU autoconf/automake. Is there any way I can control what make prints to stdout from configure.ac or Makefile.am? For example, suppress mv and cp commands being printed out to the screen, only print the name of the file being compiled by gcc rather than the whole command line, highlight gcc warnings in some way. 回答1: Is Prettify Automake what you want? Edit : As of Automake 1.10b, silent-rules is built-in. Not the same code or style but similar in effect. 回答2: Modern Automake

C preprocessor “/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cpp” fails sanity check

两盒软妹~` 提交于 2019-12-24 04:49:07
问题 On macOS Mojave with Xcode 11.3, I have an Autotool based thirdparty lib builds just fine when running my build script in Terminal, but fails when run in Xcode Run Script step as ./"$BuildScript" Showing All Messages /configure:1:1: C preprocessor "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cpp" fails sanity check This seems to correspond to my CPP variable in the script export CPP=$(xcrun --find --sdk "${SDK}" cpp) But I can't figure out why

How do I access a user defined variable as defined at the top of a Makefile.am file?

萝らか妹 提交于 2019-12-23 20:14:22
问题 Specifically, I want to do something along the following lines. For a Makefile.am script that defines how a library file should be built, I want to be able to access a common library name throughout. For example, assuming I want the name of the library to be called 'name', I might start with the following variable: LIBNAME = name Then I might have something like this: lib_LTLIBRARIES = lib$(LIBNAME).la But then automake starts to complain when I want to do something like the following: lib$

How to get shell script output into Makefile.am at make time?

无人久伴 提交于 2019-12-23 18:09:22
问题 I am working on an autotools project, and am a newbie to the autotools world. For various reasons, detailed at the bottom for completeness, I have a shell script from which I want to get the output for use in my makefile. I have a situation similar to the following. Autoconf generates a script from an AC_CONFIG_FILES command. e.g. AC_CONFIG_FILES([thescript], [chmod +x thescript]) thescript.in #!/bin/sh # -*- sh -*- # @configure_input@ echo @abs_top_builddir@/bar/foo What I really want to do

Query pkg-config variable through autotools

☆樱花仙子☆ 提交于 2019-12-23 16:18:46
问题 To install a catalog file, I'd like to get the directory for Glade (an UI designer) like so: $ pkg-config --variable=catalogdir gladeui-2.0 /usr/share/glade/catalogs but in a variable inside my Makefile.am. Is there a (portable) way to do this? 回答1: Get this value in configure.ac . I think the latest version of pkg-config is 0.28. Let's assume that 0.25 or above is good enough: configure.ac ... PKG_PROG_PKG_CONFIG([0.25]) # check and set $PKG_CONFIG PKG_CHECK_MODULES([GLADEUI],[gladeui-2.0],