Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: First.Bitcoins on February 27, 2014, 03:52:28 PM



Title: qt file compile problem on osx
Post by: First.Bitcoins on February 27, 2014, 03:52:28 PM
I am trying to compile a test qt file on osx 10.7.5 and get this error:
-----------------
Undefined symbols for architecture x86_64:
  "boost::atomics::detail::lockpool::get_lock_for(void const volatile*)", referenced from:
      boost::thread_detail::enter_once_region(boost::once_flag&) in libboost_thread-mt.a(once.o)
      boost::thread_detail::commit_once_region(boost::once_flag&) in libboost_thread-mt.a(once.o)
      boost::thread_detail::rollback_once_region(boost::once_flag&) in libboost_thread-mt.a(once.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
-------------------
-v shows: This program built for i386-apple-darwin11.3.0

Any idea how to fix?


Title: Re: qt file compile problem on osx
Post by: davidpbrown on February 27, 2014, 04:36:43 PM
I'm not an expert but I can push buttons and found making QT easier via the QT-Builder, just import into the program and press build.
I wonder perhaps that error needs attention by devs but not sure what it suggests.


Title: Re: qt file compile problem on osx
Post by: First.Bitcoins on March 01, 2014, 04:21:43 PM
For those who might have the same problem compiling any altcoin on mac, I fixed it by uninstalling and reinstalling boost (using macports) with the universal flag:

%% sudo port uninstall boost
%% sudo port install boost +universal