Autotools setting

本文介绍如何正确设置编译参数,包括使用./configure指定CC编译器路径的方法,并强调了通过环境变量设定编译参数的做法不被推荐。
./configure CFLAGS="-ggdb3 -O0" CXXFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3"

CXXFLAGS="-g -O2 -std=c++11"
c++0x

./configure CC="/usr/bin/gcc-4.6" CXX="/usr/bin/g++-4.6" CFLAGS="-ggdb3 -O0" CXXFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3"






CC="gcc-4.5" ./configure
CC="gcc-4.5" make
This works, but is discouraged. The recommended way to specify CC is in an argument to configure, not in the environment. In other words, you should do 
"./configure CC=/path/to/desired/compiler"


转载于:https://www.cnblogs.com/huashiyiqike/p/3902629.html

The following NEW packages will be installed: liba52-0.7.4 libfaad2 libffms2-5 libglu1-mesa libgpac11 libmad0 x264 0 upgraded, 7 newly installed, 0 to remove and 160 not upgraded. Need to get 4009 kB of archives. After this operation, 10.7 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://repo.huaweicloud.com/ubuntu jammy/universe amd64 liba52-0.7.4 amd64 0.7.4-20 [30.5 kB] Get:2 https://repo.huaweicloud.com/ubuntu jammy/universe amd64 libfaad2 amd64 2.10.0-2 [197 kB] Get:3 https://repo.huaweicloud.com/ubuntu jammy/universe amd64 libffms2-5 amd64 2.40+git20211209-2 [63.6 kB] Get:4 https://repo.huaweicloud.com/ubuntu jammy/main amd64 libglu1-mesa amd64 9.0.2-1 [145 kB] Get:5 https://repo.huaweicloud.com/ubuntu jammy/universe amd64 libmad0 amd64 0.15.1b-10ubuntu1 [63.1 kB] Get:6 https://repo.huaweicloud.com/ubuntu jammy/universe amd64 libgpac11 amd64 2.0.0+dfsg1-2 [3423 kB] Get:7 https://repo.huaweicloud.com/ubuntu jammy/universe amd64 x264 amd64 2:0.163.3060+git5db6aa6-2build1 [86.9 kB] Fetched 4009 kB in 11s (368 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package liba52-0.7.4:amd64. (Reading database ... 51873 files and directories currently installed.) Preparing to unpack .../0-liba52-0.7.4_0.7.4-20_amd64.deb ... Unpacking liba52-0.7.4:amd64 (0.7.4-20) ... Selecting previously unselected package libfaad2:amd64. Preparing to unpack .../1-libfaad2_2.10.0-2_amd64.deb ... Unpacking libfaad2:amd64 (2.10.0-2) ... Selecting previously unselected package libffms2-5:amd64. Preparing to unpack .../2-libffms2-5_2.40+git20211209-2_amd64.deb ... Unpacking libffms2-5:amd64 (2.40+git20211209-2) ... Selecting previously unselected package libglu1-mesa:amd64. Preparing to unpack .../3-libglu1-mesa_9.0.2-1_amd64.deb ... Unpacking libglu1-mesa:amd64 (9.0.2-1) ... Selecting previously unselected package libmad0:amd64. Preparing to unpack .../4-libmad0_0.15.1b-10ubuntu1_amd64.deb ... Unpacking libmad0:amd64 (0.15.1b-10ubuntu1) ... Selecting previously unselected package libgpac11:amd64. Preparing to unpack .../5-libgpac11_2.0.0+dfsg1-2_amd64.deb ... Unpacking libgpac11:amd64 (2.0.0+dfsg1-2) ... Selecting previously unselected package x264. Preparing to unpack .../6-x264_2%3a0.163.3060+git5db6aa6-2build1_amd64.deb ... Unpacking x264 (2:0.163.3060+git5db6aa6-2build1) ... Setting up libffms2-5:amd64 (2.40+git20211209-2) ... Setting up liba52-0.7.4:amd64 (0.7.4-20) ... Setting up libfaad2:amd64 (2.10.0-2) ... Setting up libmad0:amd64 (0.15.1b-10ubuntu1) ... Setting up libglu1-mesa:amd64 (9.0.2-1) ... Setting up libgpac11:amd64 (2.0.0+dfsg1-2) ... Setting up x264 (2:0.163.3060+git5db6aa6-2build1) ... Processing triggers for libc-bin (2.35-0ubuntu3.4) ... /sbin/ldconfig.real: File /lib/x86_64-linux-gnu/libcuda.so.535.98 is empty, not checked. /sbin/ldconfig.real: File /lib/x86_64-linux-gnu/libcudadebugger.so.535.98 is empty, not checked. /sbin/ldconfig.real: File /lib/x86_64-linux-gnu/libnvidia-allocator.so.535.98 is empty, not checked. /sbin/ldconfig.real: File /lib/x86_64-linux-gnu/libnvidia-cfg.so.535.98 is empty, not checked. /sbin/ldconfig.real: File /lib/x86_64-linux-gnu/libnvidia-ml.so.535.98 is empty, not checked. /sbin/ldconfig.real: File /lib/x86_64-linux-gnu/libnvidia-opencl.so.535.98 is empty, not checked. /sbin/ldconfig.real: File /lib/x86_64-linux-gnu/libnvidia-pkcs11.so.535.98 is empty, not checked. /sbin/ldconfig.real: File /lib/x86_64-linux-gnu/libnvidia-ptxjitcompiler.so.535.98 is empty, not checked. (base) root@autodl-container-10a44fbcf4-f3e5bace:~/autodl-tmp/LatentSync-main# ./configure --enable-libx264 --enable-shared make sudo make install -bash: ./configure: No such file or directory make: *** No targets specified and no makefile found. Stop. make: *** No rule to make target 'install'. Stop.
08-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值