2013-06-05 31 views
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 [email protected] $< 
cryptopp/obj/%.o: cryptopp/%.cpp 
    $(CXX) -c $(CXXFLAGS) -O3 -o [email protected] $< 
bitcoin: $(OBJS) obj/ui.o obj/uibase.o 
    $(CXX) $(CXXFLAGS) -o [email protected] $(LIBPATHS) $^ $(WXLIBS) $(LIBS) 
obj/nogui/%.o: %.cpp $(HEADERS) 
    $(CXX) -c $(CXXFLAGS) -o [email protected] $< 
bitcoind: $(OBJS:obj/%=obj/nogui/%) 
    $(CXX) $(CXXFLAGS) -o [email protected] $^ $(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行缺少分隔符是使錯誤centos5失蹤分離

-Wl,-Bstatic n 

我不知道這一點,我的生活中的錯誤,所以如果任何人都可以對我有任何幫助,那就太棒了!

如果你想知道我建立這個本指南http://www.staff.tugraz.at/michael.steurer/Bitcoin-CentOS5.5-V1.pdf

回答

0

的顯然你不使用的Makefile它是文件內。

您在行末尾缺少所有\,您沒有縮進(在Makefile中與BTW相關)。

+0

謝謝!這是服務器領域的新手。 – user2454653