autotools

Autotools cross compilation and generated sources

孤街浪徒 提交于 2019-12-02 01:40:39
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 intermediate binaries but I want to avoid it because there are many headers and other "data" files common for

How to change the include file path with autotools?

只谈情不闲聊 提交于 2019-12-02 01:19:58
问题 I am developing a simple chat application, which use crypto++, in ubuntu. The folder for crypto++'s header files is /usr/include/crypto++/ . After I upload the source tagbar to CentOS , I found that the folder for crypto++'s header files is /usr/include/cryptopp . So in CentOS , the compiler could not find the head files for cryptopp . Source File: #include "crypto++/md5.h" Configure.ac: AC_SEARCH_LIBS([_ZTIN8CryptoPP14CBC_EncryptionE], [crypto++ cryptopp], [],[AC_MSG_ERROR([avchat requires

How do I get autotools to compile with the Intel compiler?

女生的网名这么多〃 提交于 2019-12-01 15:56:13
I want my code to compile with the Intel compiler(s) or with gcc/g++ depending on a configure argument. Is this possible? What do I need to put in my configure.ac and Makefile.am files to make this happen? If you want to use a compiler other than gcc when you compile, pass 'CC=/path/to/compiler' as an argument to configure. (That is, run ./configure CC=/path. Do not use the form CC=/path ./configure.) If you want the default compiler to be something other than gcc, you can put CC=${CC-/path/to/default/compiler} in configure.ac before the invocation of AC_PROG_CC. I would do this: AC_PROG_CC(

How do I get autotools to compile with the Intel compiler?

℡╲_俬逩灬. 提交于 2019-12-01 14:39:42
问题 I want my code to compile with the Intel compiler(s) or with gcc/g++ depending on a configure argument. Is this possible? What do I need to put in my configure.ac and Makefile.am files to make this happen? 回答1: If you want to use a compiler other than gcc when you compile, pass 'CC=/path/to/compiler' as an argument to configure. (That is, run ./configure CC=/path. Do not use the form CC=/path ./configure.) If you want the default compiler to be something other than gcc, you can put CC=${CC-

Correct installation of config.h for shared library using autotools

早过忘川 提交于 2019-12-01 06:06:44
问题 I am converting a C++ program which uses the autotools build system to use a shared library, introducing the use of libtool. Most of the program functionality is being placed in the shared library, which is loaded by the main program, so that the common code can be accessed by other programs in future. Throughout the program and library sources the autoheader generated config.h is used with the usual macro: #if HAVE_CONFIG_H # include <config.h> #endif In configure.ac I use the macro to

Install arbitrary data files in fixed location with Automake?

做~自己de王妃 提交于 2019-12-01 05:11:49
How can I tell automake to install arbitrary data files in places I want? I have some files I need to put in specific places, e.g. " datafile1 ", in my project, needs to be copied to " /usr/MyProduct/flash_memory ". " /usr/MyProduct/flash_memory " is an absolute path that I can't change. " datafile1 " is a binary data file that is not "built" by make , but just needs to be copied by make install . I can't bear on make dist . It needs to be copied by make install (its a long explanation, so, pelase just take this into account). I rather not use install-hook , but prefer to have a more elegant

BLAS and LAPACK libraries required for compiling

◇◆丶佛笑我妖孽 提交于 2019-12-01 04:43:22
I recently downloaded the latest stable release of Gnu Octave, and was attempting to build and install it on my machine (Ubuntu 10.0.4 LTS 64bit). When I run ./configure, I got this error message: configure: error: You are required to have BLAS and LAPACK libraries Does anyone know Where do I obtain these libraries from? Try to run this apt-get install libblas-dev libatlas-dev liblapack-dev All libraries, required by octave package in ubuntu are listed here: http://packages.ubuntu.com/lucid/octave3.2 and to build new octave you need -dev packages of some listed libs. The octave in ubuntu

BLAS and LAPACK libraries required for compiling

随声附和 提交于 2019-12-01 02:09:38
问题 I recently downloaded the latest stable release of Gnu Octave, and was attempting to build and install it on my machine (Ubuntu 10.0.4 LTS 64bit). When I run ./configure, I got this error message: configure: error: You are required to have BLAS and LAPACK libraries Does anyone know Where do I obtain these libraries from? 回答1: Try to run this apt-get install libblas-dev libatlas-dev liblapack-dev All libraries, required by octave package in ubuntu are listed here: http://packages.ubuntu.com

autotools syntax error with ax_check_compile_flag

余生颓废 提交于 2019-11-30 18:50:57
I am using autotools for building my C++ application. In my configure.ac I have the following line: AX_CHECK_COMPILE_FLAG([-Wall], [CPPFLAGS="$CPPFLAGS -Wall"]) which causes the following error when executing ./configure (after running autoreconf -i ): ./configure: line 3825: syntax error near unexpected token `-Wall,' ./configure: line 3825: `AX_CHECK_COMPILE_FLAG(-Wall, CPPFLAGS="$CPPFLAGS -Wall")' My system: Linux web 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64 GNU/Linux On my Ubuntu machine it works well, why do I get this error? autoreconf isn't magic (though I encounter package

Installing GMP on Windows with cygwin

爱⌒轻易说出口 提交于 2019-11-30 16:43:17
I am new to C++ and I have to handle large integers, so I have to install GMP through Cygwin. Any documentation I can find on installing this already assumes that you know what you are talking about, and I really don't. Anyway, I got the right .tar or whatever, extracted it properly, and now any website I see says to run ./configure --prefix=${gmp_install} ... What in the world is gmp_install ? And what directory do I run configure from? Huh? I can run it from my little Cygwin terminal, but it just says no such file. Next, I am supposed to type make . From where? Help... Welcome to