Bitcoin Forum
May 23, 2024, 11:49:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Compiling on OSX  (Read 715 times)
bhamidik (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
November 07, 2016, 04:00:56 AM
 #1

hi there, I am attempting to compile bitcoin code on OSX Sierra 10.12.1, and get this error:

AR       leveldb/libmemenv.a
  CXXLD    bitcoind
Undefined symbols for architecture x86_64:
  "Db::verify(char const*, char const*, std::basic_ostream<char, std::char_traits<char> >*, unsigned int)", referenced from:
      CDBEnv::Verify(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool (*)(CDBEnv&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)) in libbitcoin_wallet.a(libbitcoin_wallet_a-db.o)

Any pointers into resolving this? Apologies if this is not the correct forum.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6647


Just writing some code


View Profile WWW
November 07, 2016, 04:07:16 AM
 #2

What commands did you run?

Zz
Legendary
*
Offline Offline

Activity: 1820
Merit: 1077


View Profile
November 07, 2016, 10:44:35 AM
 #3

do not compile
Set up as ready.
1. Go to https://bitcoin.org/en/download
Once you're there, click on "Mac OS X".
2. clik to download https://bitcoin.org/bin/bitcoin-core-0.13.1/bitcoin-0.13.1-osx64.tar.gz

3. run terminal

4. tar zxvf bitcoin-0.13.1-osx64.tar.gz
5. double clik to dmg file
6. Drag Bitcoin-Qt to Applications
Go to Applications folder, double click on Bitcoin-Qt, you'll see it starts verifying blocks and the wallet will be ready within an hour as it continue to synchronize with network.
naghashisakhteman
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile WWW
November 09, 2016, 10:47:43 AM
 #4

Thank you for putting this together! This worked for me, and saved me from several days of headache with clang.
altcoinhosting
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1006


View Profile
November 09, 2016, 10:51:03 AM
 #5

I know it's not exactly what you asked for, but i did use the gitian method to compile bitcoin core for mac OSX (just for fun, since i don't own any apple products, i never tested out my build).

If i remember it correctly, if you followed the procedure for building with gitian to the letter (every detail, including the version of debian and package versions), you ended up with all binaries compiles for windows 32 bit, windows 64 bit, linux 32 bit, linux 64 bit and mac.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!