Mac libboost_thread or thread-mt?
7 messages, 4 to 6 Oct 2011. Started by Brian McQueen.
Brian McQueen (2), Michael Gronager, Matt Corallo, Gavin Andresen, Douglas Huff, Eric Mockensturm
I installed boost via the mac ports. Its got lobboost_thread-mt, but it doesn't have libboost_thread.a. Should I modify the makefile or get a different version of boost?
Hi Brian,
Had a similar issue the other day with my cmake btc buildsystem - I just changed the name to -mt, I think that is th way to go.
Cheers,
Michael
On 05/10/2011, at 01:40, Brian McQueen wrote:
Quoted text (17 lines)
> I installed boost via the mac ports. Its got lobboost_thread-mt, but > it doesn't have libboost_thread.a. Should I modify the makefile or get > a different version of boost? > > -- > Make a Small Loan, Make a Big Difference - Check out Kiva.org to Learn How! > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Bitcoin-development mailing list > Bitcoin-development@lists•sourceforge•net > https://lists.sourceforge.net/lists/listinfo/bitcoin-development
On Tue, 2011-10-04 at 16:40 -0700, Brian McQueen wrote:
Quoted text (4 lines)
> I installed boost via the mac ports. Its got lobboost_thread-mt, but > it doesn't have libboost_thread.a. Should I modify the makefile or get > a different version of boost? >
(from http://stackoverflow.com/questions/2293962/boost-libraries-in-multithreading-aware-mode)
The -mt suffix means built in multithreading aware mode (what this means for a threading library I have no idea), however that suffix was removed from Linux and Mac builds in 1.42. If you are linking against 1.42+ on Linux/Mac, adding/removing the -mt suffix means nothing AFAICT.
Matt
I updated src/makefile.osx and doc/build-osx.txt today, assuming that the MacPorts versions of dependencies will be used and the -mt boost libraries will be used.
I also modified makefile.unix and makefile.osx to auto-build dependencies using gcc's -MMD option.
Bad update. Macports has a couple of boost packages. Install the newer 1.46 ones.
I added -mt and it compiles, but here is a surprise. I had to add libz.a to the makefile.osx. Sounds odd! Its coming from the crypto libs.
On Wed, Oct 5, 2011 at 11:50 AM, Douglas Huff <dhuff@jrbobdobbs•org> wrote:
Quoted text (42 lines)
> Bad update. Macports has a couple of boost packages. Install the newer 1.46 > ones. > > -- > Douglas Huff > > On Oct 5, 2011 1:43 PM, "Gavin Andresen" <gavinandresen@gmail•com> wrote: >> I updated src/makefile.osx and doc/build-osx.txt today, assuming that >> the MacPorts versions of dependencies will be used and the -mt boost >> libraries will be used. >> >> I also modified makefile.unix and makefile.osx to auto-build >> dependencies using gcc's -MMD option. >> >> -- >> -- >> Gavin Andresen >> >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure contains a >> definitive record of customers, application performance, security >> threats, fraudulent activity and more. Splunk takes this data and makes >> sense of it. Business sense. IT sense. Common sense. >> http://p.sf.net/sfu/splunk-d2dcopy1 >> _______________________________________________ >> Bitcoin-development mailing list >> Bitcoin-development@lists•sourceforge•net >> https://lists.sourceforge.net/lists/listinfo/bitcoin-development > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Bitcoin-development mailing list > Bitcoin-development@lists•sourceforge•net > https://lists.sourceforge.net/lists/listinfo/bitcoin-development > >
Brian,
Yea, I vaguely remember going through all this when I first tried building it. If I recall you can statically link libz into crypto when you compile crypto. Or something like that. Maybe the default MacPorts crypto install does not do this.
Eric