0
#begin
# Copyright (c) 2009-2010 Satoshi Nakamoto
# Distributed under the MIT/X11 software license, see the accompanying
# file license.txt or http://www.opensource.org/licenses/mit-license.php.
CXX=g++
DEPSDIR=/Bitcoin/Deps
INCLUDEPATHS= -I"$(DEPSDIR)/include"
LIBPATHS= -L"$(DEPSDIR)/lib"
WXINCLUDEPATHS=$(shell wx-config --cxxflags)
WXLIBS=$(shell wx-config --libs)
USE_UPNP=
DEFS= -DNOPCH -DFOURWAYSSE2 -DUSE_SSL
LIBS= -dead_strip n
-Wl,-Bstatic n
$(DEPSDIR)/lib/libdb_cxx-5.1.a n
-mtl $(DEPSDIR)/lib/libboost_system.a n
-mtl $(DEPSDIR)/lib/libboost_thread.a n
-mtl $(DEPSDIR)/lib/libboost_filesystem.a n
-mtl $(DEPSDIR)/lib/libboost_program_options.a n
$(DEPSDIR)/lib/libdb_cxx.a n
$(DEPSDIR)/lib/libssl.a n
$(DEPSDIR)/lib/libcrypto.a n
-l ssl n
-l crypto n
-Wl,-Bdynamic n
-l gthread-2.0 n
-l z n
-l dl
ifdef USE_UPNP
LIBS += -l miniupnpc
DEFS += -DUSE_UPNP=$(USE_UPNP)
endif
DEBUGFLAGS=-g -D__WXDEBUG__
CXXFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
HEADERS=headers.h strlcpy.h serialize.h uint256.h n
util.h key.h bignum.h base58.h script.h n
db.h net.h irc.h main.h rpc.h uibase.h n
ui.h noui.h init.h
OBJS= obj/util.o n
obj/script.o n
obj/db.o n
obj/net.o n
obj/irc.o n
obj/main.o n
obj/rpc.o n
obj/init.o n
cryptopp/obj/sha.o n
cryptopp/obj/cpu.o
all: bitcoind
obj/%.o: %.cpp $(HEADERS)
    $(CXX) -c $(CXXFLAGS) $(WXINCLUDEPATHS) -DGUI -o $@ $<
cryptopp/obj/%.o: cryptopp/%.cpp
    $(CXX) -c $(CXXFLAGS) -O3 -o $@ $<
bitcoin: $(OBJS) obj/ui.o obj/uibase.o
    $(CXX) $(CXXFLAGS) -o $@ $(LIBPATHS) $^ $(WXLIBS) $(LIBS)
obj/nogui/%.o: %.cpp $(HEADERS)
    $(CXX) -c $(CXXFLAGS) -o $@ $<
bitcoind: $(OBJS:obj/%=obj/nogui/%)
    $(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)
clean:
    -rm -f obj/*.o
    -rm -f obj/nogui/*.o
    -rm -f cryptopp/obj/*.o
    -rm -f headers.h.gch
    -rm -f bitcoin
    -rm -f bitcoind
#end

当我运行这个 make 文件时,我在第 14 行收到一个缺少分隔符的错误,即

-Wl,-Bstatic n

我一生都无法弄清楚这一点,所以如果有人可以对我有任何帮助,那就太棒了!

如果有人想知道我正在构建本指南http://www.staff.tugraz.at/michael.steurer/Bitcoin-CentOS5.5-V1.pdf

4

1 回答 1

0

显然,您没有使用该文档中的 Makefile。

\在行尾丢失了所有内容,没有缩进(这在 Makefile 中与 BTW 相关)。

于 2013-06-05T07:54:42.833 回答