automake

使用automake准备编译 的步骤

匿名 (未验证) 提交于 2019-12-02 23:43:01
2019独角兽企业重金招聘Python工程师标准>>> 使用automake准备编译 的步骤 安装好 automake 后, klaus @ubuntu 有关更详细 的范例请参考网上其他资料 这里仅仅是记录基本过程 。 转载于:https://my.oschina.net/mysticboy/blog/541346 文章来源: https://blog.csdn.net/weixin_34129696/article/details/92064635

多媒体开发(12):解码aac到wav文件

匿名 (未验证) 提交于 2019-12-02 23:38:02
版权声明:转载就注明出处,谢谢。 https://blog.csdn.net/freejet2018/article/details/90766983 简单来说,aac是一种音频编码格式,需要解码后才能用于音频输出。aac编码格式,已经是一种很常见的音频编码格式,以至于很多系统都支持aac的编解码,比如iOS上的AudioConverterRef接口、Android上的MediaCodec接口等。 但是,不要以为用了系统的接口就是用了硬件解码,因为,这个系统接口有可能最终还是使用软件解码,比如有些手机(比如小米)的MediaCodec对于acc的解码,就是软解码,用的是google提供的OMX.google.aac.decoder,不要以为用了系统接口解码的速度就飞快了,要真是硬件支持才行的。 那什么是硬解码,什么是软解码呢?很简单,如果硬件芯片专门来做解码,就是硬解码,比如使用GPU或DSP之类的模块来处理解码就是硬解码(一般不会使用CPU),这需要硬件上的支持。而软解码就是用软件来解码了,就相当你写一个程序来解码,使用CPU来做事。优缺点方面,硬解速度快功耗低但兼容性差,软解速度慢功耗高但兼容性好。 但话说回来,不是非得要硬解码的,对于音频来说,当今的手机,除非你要大量的音效运算或合成处理,否则一般的解码,用软解码就足够了,根本就不需要硬解,硬解是视频的事情。 对于aac的解码

How to write multiple conditions in Makefile.am with “else if”

邮差的信 提交于 2019-12-02 23:15:44
I want to compile my project with autoconf/automake. There are 2 conditions defined in my configure.ac AM_CONDITIONAL(HAVE_CLIENT, test $enable-client -eq 1) AM_CONDITIONAL(HAVE_SERVER, test $enable-server -eq 1) I want to separate _LIBS from these 2 conditions in Makefile.am if HAVE_CLIENT libtest_LIBS = \ $(top_builddir)/libclient.la else if HAVE_SERVER libtest_LIBS = \ $(top_builddir)/libserver.la else libtest_LIBS = endif but else if HAVE_SERVER does NOT work. How to write 'else if' in makefile.am? R.D. ptomato's code can also be written in a cleaner manner like: ifeq ($(TARGET_CPU),x86)

automake:autotools 工具集使用速成

匿名 (未验证) 提交于 2019-12-02 22:59:29
automake:autotools 工具集使用速成 一般而言,对于小项目或玩具程序,手动编写 Makefile 即可。但对于大型项目,手动编写维护 Makefile 成为一件费时费力的无聊工作。 本文介绍 autotools 工具集自动生成符合 Linux 规范的 Makefile 文件。 如果读者没有安装 autotools 工具集,ubuntu默认自带了,如果没有,安装命令如下, $ sudo apt-get install automake 安装完成之后,会有如下工具可用, 一般大型项目,代码组织结构分为两种,一种是所有文件都在同一个目录下的 flat 结构,另一种是按层次组织的多文件夹形式。 先来看第一种: flat 结构的项目使用 autotools 工具集 本篇测试代码如下, #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "sum.h" #include "sub.h" #include "mul.h" #include "div.h" int main() { printf("======== < Integer Arithmethic > ========\n"); int x, y; printf("Enter two integer: "); scanf("%d%d",

centos7安装thrift

匿名 (未验证) 提交于 2019-12-02 22:56:40
yum -y update 2.安装开发工具 yum -y groupinstall "Development Tools" 3.安装wget yum -y install wget 4.升级autoconf/automake/bison autoconf和automake两个工具来帮助我们自动地生成符合自由软件惯例的Makefile GNU 语法分析器 C++ from百度百科 ) wget http: // ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz tar -zxvf autoconf- 2.69 .tar.gz cd autoconf - 2.69 . /configure --prefix=/ usr make make install wget http: // ftp.gnu.org/gnu/automake/automake-1.14.tar.gz tar -zxvf automake- 1.14 .tar.gz cd automake - 1.14 . /configure --prefix=/ usr make make install wget http: // ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz tar -zxvf bison- 2.5 . 1 .tar.gz cd

automake and project dependencies

这一生的挚爱 提交于 2019-12-02 21:04:57
I have a project that I want to build using automake. The project consists of different components or modules, and there are inter module dependencies which require the project to be built in a specific order. For example: project dir/ module1 (core C shared lib) module2 (C++ shared lib wrapper around module 1) module3 (C++ application with dependency on module2) module4 (C library with dependency on module1) module5 (C application with dependency on module4) I am relatively new to automake, but I (just about) know how to use it to successfully build a single project. I would like to have a

how to set include paths with autotools

徘徊边缘 提交于 2019-12-02 19:20:34
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 package, some source files use #include <file.h> even when file.h is part of the package, so to compile

Any difference between configure.ac and configure.in, and Makefile.am and Makefile.in?

半腔热情 提交于 2019-12-02 17:32:00
I have seen both in different things I have configured. What I the difference? Is it notable to use only one? Or does it not matter which one to use? configure.ac and configure.in are two possible names for the master Autoconf source file, which is processed by autoconf to generate the configure shell script. configure.ac is preferred for new packages, configure.in is an older name which still works. (The .in suffix is now recommended to be used only for files which will be processed by config.status , which is the result of running configure .) Makefile.am is an Automake source file. Automake

Automake error './ltmain.sh' not found

强颜欢笑 提交于 2019-12-02 16:44:05
I've installed mingw and msys by using mingw-get-setup.exe . I've also installed Autotools(autoconf, automake,m4,libtool) into C:\/opt/autotools . When I run automake, the following error always occurs: configure.ac:11: error: required file './ltmain.sh' not found If I copy ltmain.sh from libtool’s installed tree, execution will finish normally. How can I configuure automake to find ltmain.sh without copying? In an autoconf / automake / libtool project you have to invoke: libtoolize : this copies/links a few support scripts, including ltmain.sh (which is the main component of libtool). aclocal

What is the difference between LDADD and LIBADD?

六眼飞鱼酱① 提交于 2019-12-02 15:52:31
I'm trying to setup an automake project that uses a mix of libtool libraries and exectuables, and I'm having a hard time grokking the automake documentation, esp. as relates to telling the compiler to link against. So can someone explain the differences between LDADD and LIBADD ? Things like: when is one used over the other, which one takes -lname_of_library style values vs. direct filenames, etc. Whenever I try to read the relevant documentation, it seems like it assumes that I know things that I don't. Use the LIBADD primary for libraries, and LDADD for executables. If you were building a