Note that there are some explanatory texts on larger screens.

plurals
  1. POcompile Boost as static Universal binary lib
    text
    copied!<p>I want to have a static Universal binary lib of Boost. (Preferable the latest stable version, that is 1.43.0, or newer.)</p> <p>I found many Google hits with similar problems and possible solutions. However, most of them seems outdated. Also none of them really worked.</p> <p>Right now, I am trying</p> <pre><code>sudo ./bjam --toolset=darwin --link=static --threading=multi \ --architecture=combined --address-model=32_64 \ --macosx-version=10.4 --macosx-version-min=10.4 \ install </code></pre> <p>That compiles and install fine. However, the produced binaries seems broken.</p> <pre><code>az@ip245 47 (openlierox) %file /usr/local/lib/libboost_signals.a /usr/local/lib/libboost_signals.a: current ar archive random library az@ip245 49 (openlierox) %lipo -info /usr/local/lib/libboost_signals.a input file /usr/local/lib/libboost_signals.a is not a fat file Non-fat file: /usr/local/lib/libboost_signals.a is architecture: x86_64 </code></pre> <p>Edit: It seems that the command was wrong and I must remove the "--" for most options. So the command I am trying now (-a just means to rebuild all):</p> <pre><code>sudo ./bjam -a toolset=darwin link=static threading=multi \ architecture=combined address-model=32_64 \ macosx-version=10.4 macosx-version-min=10.4 \ install </code></pre> <p>However, this gives many strange errors (what I already had earlier), all like this:</p> <pre><code>darwin.compile.c++.pch bin.v2/libs/math/build/darwin-4.2.1/release/address-model-32_64/architecture-combined/link-static/macosx-version-min-10.4/macosx-version-10.4/threading-multi/../src/tr1/pch.hpp.gch In file included from ./boost/math/special_functions/acosh.hpp:18, from ./boost/math/special_functions.hpp:15, from libs/math/build/../src/tr1/pch.hpp:9: ./boost/config/no_tr1/cmath.hpp:21:19: error: cmath: No such file or directory </code></pre> <p>This could be another problem I have when building Universal binaries: <a href="https://stackoverflow.com/questions/2830931/g-on-macosx-doesnt-work-with-arch-ppc64">g++ on MacOSX doesn&#39;t work with -arch ppc64</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload