我在编译GCC时遇到了一些麻烦。当我试图编译它时,会出现以下错误:
Makefile:26:*缺少分隔符。停止播放。
第26行指该条件的第一行:
@if gcc
ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty.
$(error GNU make version 3.80 or newer is required.)
endif
@endif gcc
我已经尝试在关键字之间插入一个TAB,但是它没有起作用。我尝试过的唯一可行的方法就是将条件更改为:
ifeq ($(gcc),)
以下代码取自OpenWRT项目。有人能给出一个抽象的描述吗?提前感谢!
#
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
SUBTARGETS:=clean download prepare compile install update refresh prereq dist distcheck
subtarget-default = $(
在另一个线程(像这样的列表排序最简单的方法是什么?)中,有人问我们是否在系统上有"GNU“,因为它会提供一个解决方案。我们没有安装GNU ls,但它让我思考:
当您安装诸如"GNU“之类的东西时,它只是安装"ls”还是包含了一套Unix命令的替换?
GNU ls会支持基-O/S ls命令支持的所有旗标吗?
第二个问题是,我们的AIX系统上有很多ksh93脚本,我希望确保它们继续按预期运行。如果我安装了GNU,那么当我需要在给定的ksh脚本(例如/opt/ GNU /ls )中使用GNU的功能时,我会使用GNU的一个完全限定的路径吗?这就是在成熟系统上通常添加/使用GNU
我想使用ubuntu13.10中的pjsip库,并尝试了pjsip.org的入门页面中给出的步骤
我尝试使用以下命令序列构建pjsip lib,还编辑了config_site.h,使其包含#define PJMEDIA_HAS_VIDEO行。在运行这些命令之前,我还安装了video4linux2和ffmpeg
cd pjproject
./configure
make dep
make
在我运行最后一个命令后,我得到了以下错误:
make[2]: Entering directory `/home/vk/pjproject/pjsip/build'
make[2]: `../lib/l
我正试图在linux 17 trying上安装SCIP优化套件。我已经从中下载了sciop恙ite-3.1.0,并运行了make命令with ZIMPL=false选项。制作过程的结果是
** Build complete.
** Find your SCIP binary in "/home/patstop/Downloads/scipoptsuite-3.1.0/scip-3.1.0/bin".
** Enter "make test" to solve a number of easy instances in order to verify that S
关于下面的GNU makefile示例,我有一个问题:
.PHONY: $(subdirs) build x y
subdirs = a b c
build: x y
x: target=prepare
x: $(subdirs)
y: target=build
y: $(subdirs)
$(subdirs):
$(make) -f $@/makefile $(target)
当我运行make时,我希望为每个子目录调用make,指定目标“prepare”,然后指定目标“build”。不幸的是,$(subdirs)目标执行了一次(生成'prepare‘目标),但不会
在为portmidi配置cmake文件并继续使用make创建必要的文件之后,在编译过程中遇到了以下错误:
- Build files have been written to: /home/mycomputername
/Desktop/portmedia/portmidi
[ 2%] Linking C shared library /Release/libpmjni.so
/usr/bin/x86_64-linux-gnu-ld: cannot open output file /Release/libpmjni.so: No such file or directory
collec
我正在尝试在我的项目中包含SFML源代码。我的目录布局如下:
main
SFML (subtree synced with the official git repo)
src
<various modules>
General (here lies the binary)
从主目录开始,我首先添加sfml子目录,然后添加src。正如我在查看构建日志时看到的,这将生成库:
sfml‑system
sfml‑window
sfml‑network
sfml‑graphics
sfml‑audio
sfml‑main
现在,我想将它们链接到General目录中的
我完全编辑了这个问题。我发现了一些没有意义的东西,但它是有效的。当我第一次运行make时,我得到了以下输出:
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12
/usr/bin/ld: /u
我正在寻找一种优雅的方式在GNU make中实现作业的并行化。这是我到目前为止所做的一个示例。Make以串行方式处理目录dir-1、dir-2和dir-3,这符合逻辑,但不是我的意图:
SUBDIRS=dir-1 dir-2 dir-3
default: all
all:
@for dir in $(SUBDIRS); do (cd $$dir; $(MAKE)); done
.PHONY: clean
clean:
@for dir in $(SUBDIRS); do (cd $$dir; $(MAKE) clean); done
有没有办法在不为每个目录指定特定目标的情况下
make的输出
Making all in access/
gcc -g -O2 -o fileOpt fileOpt.o
Making all in executor/
gcc -g -O2 -o executor execFilter.o execJoin.o execMain.o execNode.o execProject.o execScan.o execSort.o execUtil.o
Making all in index/
gcc -g -O2 -o index b_plus_tree.o
Making all in nodes/
gcc -g