Need help on building altcoin on mac os x, I can build litecoin on mac os x,
my version is mac osx 10.8, litecoin 0.8.6.3, but I can't build vert coin on mac os x,
following is the build errors:
> cytekiMac:src smith$ make -f makefile-ct.osx
/bin/sh ../share/genbuild.sh obj/build.h
fatal: Not a git repository (or any of the parent directories): .git
llvm-g++ -c -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -DUSE_IPV6=1 -I/Users/cy/Desktop/CT/src/leveldb/include -I/Users/cy/Desktop/CT/src/leveldb/helpers -DHAVE_BUILD_INFO -I"/Users/cy/Desktop/CT/src" -I"/Users/cy/Desktop/CT/src/obj" -I"/usr/local/include" -I"/usr/local/opt/berkeley-db4/include" -I"/usr/local/opt/openssl/include" -MMD -MF obj/checkpoints.d -o obj/checkpoints.o checkpoints.cpp
llvm-g++ -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -DUSE_IPV6=1 -I/Users/cy/Desktop/CT/src/leveldb/include -I/Users/cy/Desktop/CT/src/leveldb/helpers -DHAVE_BUILD_INFO -I"/Users/cy/Desktop/CT/src" -I"/Users/cy/Desktop/CT/src/obj" -I"/usr/local/include" -I"/usr/local/opt/berkeley-db4/include" -I"/usr/local/opt/openssl/include" -o carbonemissiontradecoind -L"/usr/local/lib" -L"/usr/local/opt/berkeley-db4/lib" -L"/usr/local/opt/openssl/lib" leveldb/libleveldb.a obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o -dead_strip -ldb_cxx-4.8 -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_thread-mt -lboost_chrono-mt -lssl -lcrypto -lz -lminiupnpc /Users/cy/Desktop/CT/src/leveldb/libleveldb.a /Users/cy/Desktop/CT/src/leveldb/libmemenv.a
ld: warning: ignoring file /Users/cy/Desktop/CT/src/leveldb/libmemenv.a, file was built for archive which is not the architecture being linked (x86_64): /Users/cy/Desktop/CT/src/leveldb/libmemenv.a
Undefined symbols for architecture x86_64:
"vtable for CWallet", referenced from:
CWallet::CWallet(std::basic_string, std::allocator >)in init.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for CBasicKeyStore", referenced from:
CBasicKeyStore::~CBasicKeyStore()in init.o
CBasicKeyStore::CBasicKeyStore()in init.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"GetOpName(opcodetype)", referenced from:
CScript::ToString() constin init.o
"GetNfactor(long long)", referenced from:
CBlock::GetPoWHash() const in init.o
"vtable for CKeyStore", referenced from:
CKeyStore::~CKeyStore()in init.o
CKeyStore::CKeyStore()in init.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"_fImporting", referenced from:
CImportingNow::CImportingNow()in init.o
CImportingNow::~CImportingNow()in init.o
"noui_connect()", referenced from:
_main in init.o
"ReadConfigFile(std::map, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > >, std::allocator, std::allocator > const, std::basic_string, std::allocator > > > >&, std::map, std::allocator >, std::vector, std::allocator >, std::allocator, std::allocator > > >, std::less, std::allocator > >, std::allocator, std::allocator > const, std::vector, std::allocator >, std::allocator, std::allocator > > > > > >&)", referenced from:
AppInit(int, char**)in init.o
"_fCommandLine", referenced from:
AppInit(int, char**)in init.o
"CreatePidFile(boost::filesystem::path const&, int)", referenced from:
AppInit(int, char**)in init.o
"PrintExceptionContinue(std::exception*, char const*)", referenced from:
AppInit(int, char**)in init.o
"_nTransactionsUpdated", referenced from:
Shutdown() in init.o
"ShutdownRPCMining()", referenced from:
Shutdown() in init.o
"StopNode()", referenced from:
Shutdown() in init.o
"_cs_main", referenced from:
Shutdown() in init.o
"CCoinsViewCache::Flush()", referenced from:
Shutdown() in init.o
"real_strprintf(std::basic_string, std::allocator > const&, int, ...)", referenced from:
AppInit2(boost::thread_group&) in init.o
"RenameOver(boost::filesystem::path, boost::filesystem::path)", referenced from:
ThreadImport(std::vector >)in init.o
"CLevelDB::~CLevelDB()", referenced from:
CBlockTreeDB::~CBlockTreeDB()in init.o
"_nLocalServices", referenced from:
AppInit2(boost::thread_group&) in init.o
"RenameThread(char const*)", referenced from:
ThreadImport(std::vector >)in init.o
Shutdown() in init.o
"_fPrintToDebugger", referenced from:
AppInit2(boost::thread_group&) in init.o
"CTransaction::nMinTxFee", referenced from:
AppInit2(boost::thread_group&) in init.o
"_nTransactionFee", referenced from:
AppInit2(boost::thread_group&) in init.o
"GetPidFile()", referenced from:
Shutdown() in init.o
AppInit(int, char**)in init.o
"GetTime()", referenced from:
AppInit2(boost::thread_group&) in init.o
"_fBenchmark", referenced from:
AppInit2(boost::thread_group&) in init.o
"_nMinimumInputValue", referenced from:
AppInit2(boost::thread_group&) in init.o
"VerifyDB(int, int)", referenced from:
AppInit2(boost::thread_group&) in init.o
"UnloadBlockIndex()", referenced from:
AppInit2(boost::thread_group&) in init.o
"_fDebug", referenced from:
AppInit2(boost::thread_group&) in init.o
"_fLogTimestamps", referenced from:
AppInit2(boost::thread_group&) in init.o
"vtable for CCryptoKeyStore", referenced from:
CCryptoKeyStore::~CCryptoKeyStore()in init.o
CCryptoKeyStore::CCryptoKeyStore()in init.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"GetDefaultDataDir()", referenced from:
AppInit2(boost::thread_group&) in init.o
"FormatFullVersion()", referenced from:
AppInit2(boost::thread_group&) in init.o
AppInit(int, char**)in init.o
"_fPrintToConsole", referenced from:
AppInit2(boost::thread_group&) in init.o
"_nMaxConnections", referenced from:
AppInit2(boost::thread_group&) in init.o
"SoftSetBoolArg(std::basic_string, std::allocator > const&, bool)", referenced from:
AppInit2(boost::thread_group&) in init.o
"_fDaemon", referenced from:
AppInit2(boost::thread_group&) in init.o
AppInit(int, char**)in init.o
_main in init.o
"OpenBlockFile(CDiskBlockPos const&, bool)", referenced from:
ThreadImport(std::vector >)in init.o
"_nCoinCacheSize", referenced from:
AppInit2(boost::thread_group&) in init.o
"_fBloomFilters", referenced from:
AppInit2(boost::thread_group&) in init.o
"scrypt_N_1_1_256(char const*, char*, unsigned char)", referenced from:
CBlock::GetPoWHash() const in init.o
"ThreadScriptCheck()", referenced from:
AppInit2(boost::thread_group&) in init.o
"_nScriptCheckThreads", referenced from:
AppInit2(boost::thread_group&) in init.o
"CTransaction::nMinRelayTxFee", referenced from:
AppInit2(boost::thread_group&) in init.o
"CWalletDB::Recover(CDBEnv&, std::basic_string, std::allocator >, bool)", referenced from:
AppInit2(boost::thread_group&) in init.o
"SetLimited(Network, bool)", referenced from:
AppInit2(boost::thread_group&) in init.o
"RaiseFileDescriptorLimit(int)", referenced from:
AppInit2(boost::thread_group&) in init.o
"SetReachable(Network, bool)", referenced from:
AppInit2(boost::thread_group&) in init.o
"CWallet::SetMinVersion(WalletFeature, CWalletDB*, bool)", referenced from:
AppInit2(boost::thread_group&) in init.o
"CWalletDB::Recover(CDBEnv&, std::basic_string, std::allocator >)", referenced from:
AppInit2(boost::thread_group&) in init.o
"_fNoListen", referenced from:
AppInit2(boost::thread_group&) in init.o
"CWallet::ScanForWalletTransactions(CBlockIndex*, bool)", referenced from:
AppInit2(boost::thread_group&) in init.o
"AddOneShot(std::basic_string, std::allocator >)", referenced from:
AppInit2(boost::thread_group&) in init.o
"CCoinsViewDB::CCoinsViewDB(unsigned long, bool, bool)", referenced from:
AppInit2(boost::thread_group&) in init.o
"InitBlockIndex()", referenced from:
AppInit2(boost::thread_group&) in init.o
ThreadImport(std::vector >)in init.o
"CWallet::SetMaxVersion(int)", referenced from:
AppInit2(boost::thread_group&) in init.o
"_pcoinsTip", referenced from:
AppInit2(boost::thread_group&) in init.o
Shutdown() in init.o
"UnregisterWallet(CWallet*)", referenced from:
Shutdown() in init.o
"_pblocktree", referenced from:
AppInit2(boost::thread_group&) in init.o
ThreadImport(std::vector >)in init.o
Shutdown() in init.o
"CBlockTreeDB::WriteReindexing(bool)", referenced from:
AppInit2(boost::thread_group&) in init.o
ThreadImport(std::vector >)in init.o
"ShrinkDebugFile()", referenced from:
AppInit2(boost::thread_group&) in init.o
"LoadBlockIndex()", referenced from:
AppInit2(boost::thread_group&) in init.o
"CWallet::SetDefaultKey(CPubKey const&)", referenced from:
AppInit2(boost::thread_group&) in init.o
"CBlock::ReadFromDisk(CBlockIndex const*)", referenced from:
AppInit2(boost::thread_group&) in init.o
"_fServer", referenced from:
AppInit2(boost::thread_group&) in init.o
"LoadExternalBlockFile(__sFILE*, CDiskBlockPos*)", referenced from:
ThreadImport(std::vector >)in init.o
"_fReindex", referenced from:
AppInit2(boost::thread_group&) in init.o
ThreadImport(std::vector >)in init.o
"RegisterWallet(CWallet*)", referenced from:
AppInit2(boost::thread_group&) in init.o
"CWallet::ReacceptWalletTransactions()", referenced from:
AppInit2(boost::thread_group&) in init.o
"CBlockTreeDB::CBlockTreeDB(unsigned long, bool, bool)", referenced from:
AppInit2(boost::thread_group&) in init.o
"IsLimited(CNetAddr const&)", referenced from:
Bind(CService const&, unsigned int)in init.o
"PrintBlockTree()", referenced from:
AppInit2(boost::thread_group&) in init.o
"StartRPCThreads()", referenced from:
AppInit2(boost::thread_group&) in init.o
"_pindexBest", referenced from:
AppInit2(boost::thread_group&) in init.o
Shutdown() in init.o
CBlockIndex::IsInMainChain() const in init.o
"CWallet::SetAddressBookName(boost::variant const&, std::basic_string, std::allocator > const&)", referenced from:
AppInit2(boost::thread_group&) in init.o
"_pchMessageStart", referenced from:
CAddrDB::Read(CAddrMan&) in db.o
"_pindexGenesisBlock", referenced from:
AppInit2(boost::thread_group&) in init.o
CBlockLocator::GetBlockIndex() in init.o
"CWallet::SetBestChain(CBlockLocator const&)", referenced from:
AppInit2(boost::thread_group&) in init.o
Shutdown() in init.o
"_mapArgs", referenced from:
AppInit2(boost::thread_group&) in init.o
AppInit(int, char**)in init.o
"StartNode(boost::thread_group&)", referenced from:
AppInit2(boost::thread_group&) in init.o
"_mapMultiArgs", referenced from:
AppInit2(boost::thread_group&) in init.o
AppInit(int, char**)in init.o
"GetBoolArg(std::basic_string, std::allocator > const&, bool)", referenced from:
CDBEnv::Open(boost::filesystem::path const&) in db.o
AppInit2(boost::thread_group&) in init.o
AppInit(int, char**)in init.o
"OutputDebugStringF(char const*, ...)", referenced from:
CDBEnv::Open(boost::filesystem::path const&) in db.o
CDBEnv::EnvShutdown() in db.o
CDBEnv::Flush(bool) in db.o
AppInit2(boost::thread_group&) in init.o
ThreadImport(std::vector >)in init.o
Shutdown() in init.o
CTransaction::print() const in init.o
...
"_addrman", referenced from:
AppInit2(boost::thread_group&) in init.o
"CheckDiskSpace(unsigned long long)", referenced from:
AppInit2(boost::thread_group&) in init.o
"IsLimited(Network)", referenced from:
AppInit2(boost::thread_group&) in init.o
"_mapBlockIndex", referenced from:
AppInit2(boost::thread_group&) in init.o
CBlockLocator::GetBlockIndex() in init.o
"CAddress::CAddress()", referenced from:
CAddrInfo::CAddrInfo()in addrman.o
"CommandLineRPC(int, char**)", referenced from:
AppInit(int, char**)in init.o
"StopRPCThreads()", referenced from:
Shutdown() in init.o
"LockedPageManager::instance", referenced from:
secure_allocator::deallocate(unsigned char*, unsigned long)in key.o
void UnlockObject(unsigned char const (&) [32])in init.o
"ConnectBestBlock(CValidationState&)", referenced from:
AppInit2(boost::thread_group&) in init.o
"GetDataDir(bool)", referenced from:
CAddrDB::CAddrDB()in db.o
CDB::CDB(char const*, char const*)in db.o
AppInit2(boost::thread_group&) in init.o
ThreadImport(std::vector >)in init.o
AppInit(int, char**)in init.o
"_fDebugNet", referenced from:
AppInit2(boost::thread_group&) in init.o
"RandAddSeedPerfmon()", referenced from:
AppInit2(boost::thread_group&) in init.o
"ThreadFlushWalletDB(std::basic_string, std::allocator > const&)", referenced from:
AppInit2(boost::thread_group&) in init.o
"BindListenPort(CService const&, std::basic_string, std::allocator >&)", referenced from:
Bind(CService const&, unsigned int)in init.o
"_nBestHeight", referenced from:
AppInit2(boost::thread_group&) in init.o
"_fReopenDebugLog", referenced from:
HandleSIGHUP(int) in init.o
"GetListenPort()", referenced from:
AppInit2(boost::thread_group&) in init.o
"GenerateCarbonemissiontradecoins(bool, CWallet*)", referenced from:
AppInit2(boost::thread_group&) in init.o
Shutdown() in init.o
"InitRPCMining()", referenced from:
AppInit2(boost::thread_group&) in init.o
"CWallet::GetKeyFromPool(CPubKey&, bool)", referenced from:
AppInit2(boost::thread_group&) in init.o
"_COINBASE_FLAGS", referenced from:
AppInit2(boost::thread_group&) in init.o
"AddLocal(CService const&, int)", referenced from:
AppInit2(boost::thread_group&) in init.o
"GetArg(std::basic_string, std::allocator > const&, long long)", referenced from:
CDB::Flush() in db.o
AppInit2(boost::thread_group&) in init.o
"ParseMoney(std::basic_string, std::allocator > const&, long long&)", referenced from:
AppInit2(boost::thread_group&) in init.o
"ParseParameters(int, char const* const*)", referenced from:
AppInit(int, char**)in init.o
"CWallet::LoadWallet(bool&)", referenced from:
AppInit2(boost::thread_group&) in init.o
"CCoinsViewCache::CCoinsViewCache(CCoinsView&, bool)", referenced from:
AppInit2(boost::thread_group&) in init.o
"_fTestNet", referenced from:
AppInit2(boost::thread_group&) in init.o
"CAddress::Init()", referenced from:
void CAddress::Unserialize(CDataStream&, int, int)in db.o
"GetFilesize(__sFILE*)", referenced from:
CAddrDB::Read(CAddrMan&) in db.o
"_fDiscover", referenced from:
AppInit2(boost::thread_group&) in init.o
"DecodeBase32(char const*, bool*)", referenced from:
CNetAddr::SetSpecial(std::basic_string, std::allocator > const&)in netbase.o
"_fTxIndex", referenced from:
AppInit2(boost::thread_group&) in init.o
"error(char const*, ...)", referenced from:
CAddrDB::Read(CAddrMan&) in db.o
CDBEnv::Open(boost::filesystem::path const&) in db.o
"real_strprintf(char const*, int, ...)", referenced from:
CDB::CDB(char const*, char const*)in db.o
AppInit2(boost::thread_group&) in init.o
COutPoint::ToString() constin init.o
ValueString(std::vector > const&)in init.o
CTxIn::ToString() constin init.o
CTxOut::ToString() constin init.o
CTransaction::ToString() const in init.o
...
"_hashGenesisBlock", referenced from:
__static_initialization_and_destruction_0(int, int)in checkpoints.o
CBlockLocator::Set(CBlockIndex const*) in init.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [vertcoind] Error 1
Can anyone help me to solve this?