{"id":1829,"date":"2015-05-06T13:52:05","date_gmt":"2015-05-06T11:52:05","guid":{"rendered":"https:\/\/adrhc.go.ro\/wordpress\/?p=1829"},"modified":"2017-10-07T17:26:53","modified_gmt":"2017-10-07T15:26:53","slug":"compiling-boost-1-46-0","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/compiling-boost-1-46-0\/","title":{"rendered":"Compiling boost 1.46.0"},"content":{"rendered":"<pre class=\"brush:bash shell\">\r\n#See https:\/\/adrhc.go.ro\/wordpress\/common-commands-when-building\/ for building environment, x.sh script and other things not defined here.\r\n#Before starting do declare the environment variables specified to the link above.\r\n\r\nNEW_BUILD_NAME=boost\r\nNEW_BUILD_VER=1.46.0\r\nNEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER\r\nls -l \/tmp\/$NEW_BUILD_NAME-*\r\nls -l ~\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-*\r\nNEW_BUILD_NR=0\r\n\r\ncd ~\/compile\r\nwget http:\/\/sourceforge.net\/projects\/boost\/files\/boost\/1.46.0\/boost_1_46_0.tar.gz\/download\r\ntar xvzf boost_1_46_0.tar.gz\r\ncd ~\/compile\/boost_1_46_0\r\n~\/x.sh ffpg\r\n\r\nERROR\r\n\tThreading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS\r\nSOLUTION\r\n\tcd ~\/compile\/boost_1_46_0\r\n\twget https:\/\/svn.boost.org\/trac\/boost\/raw-attachment\/ticket\/6165\/libstdcpp3.hpp.patch\r\n\tpatch -p0 -i libstdcpp3.hpp.patch\r\n\r\n#for compilation with mpi do:\r\necho \"using mpi ;\" >> tools\/build\/v2\/user-config.jam\r\nwget https:\/\/svn.boost.org\/trac\/boost\/raw-attachment\/ticket\/6165\/libstdcpp3.hpp.patch\r\npatch -p0 -i libstdcpp3.hpp.patch\r\n\r\n.\/bootstrap.sh\r\n\r\nrm -r $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\r\n#compilation with mpi\r\n#requires http:\/\/www.mpich.org\/static\/downloads\/3.1.4\/mpich-3.1.4.tar.gz\r\n#or http:\/\/www.open-mpi.org\/software\/ompi\/v1.8\/\r\nnohup .\/bjam --prefix=$HOME\/temp\/boost-$NEW_BUILD_VER\/ffp variant=release install &\r\n#or compile it without mpi:\r\nnohup .\/bjam --prefix=$HOME\/temp\/boost-$NEW_BUILD_VER\/ffp --without-mpi variant=release install &\r\n\r\ncd $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\r\nmakepkg $NEW_BUILD_NAME $NEW_BUILD_VER $NEW_BUILD_NR\r\ncp -v \/tmp\/$NEW_BUILD_NAME-$NEW_BUILD_VER-arm-$NEW_BUILD_NR.txz ~\/ffp_0.7_armv5\/packages\/\r\nfunpkg -q $NEW_BUILD_NAME\r\nfunpkg -i ~\/apache-htdocs\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-$NEW_BUILD_VER-arm-$NEW_BUILD_NR.txz\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#See https:\/\/adrhc.go.ro\/wordpress\/common-commands-when-building\/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=boost NEW_BUILD_VER=1.46.0 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l \/tmp\/$NEW_BUILD_NAME-* ls -l ~\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd ~\/compile wget http:\/\/sourceforge.net\/projects\/boost\/files\/boost\/1.46.0\/boost_1_46_0.tar.gz\/download tar [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/compiling-boost-1-46-0\/#more-1829\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Compiling boost 1.46.0<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,11,163],"tags":[124],"class_list":["post-1829","post","type-post","status-publish","format-standard","hentry","category-compiling-from-source","category-linux","category-nsa310","tag-boost"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=1829"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1829\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=1829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=1829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=1829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}