{"id":133,"date":"2010-05-05T10:30:34","date_gmt":"2010-05-05T08:30:34","guid":{"rendered":"http:\/\/www.ceh-photo.de\/blog\/?p=133"},"modified":"2010-09-15T07:50:12","modified_gmt":"2010-09-15T05:50:12","slug":"build-boost-library-with-visual-studio-2010-x86","status":"publish","type":"post","link":"https:\/\/www.ceh-photo.de\/blog\/?p=133","title":{"rendered":"Build Boost Library with Visual Studio 2010 (x86)"},"content":{"rendered":"<p>Yesterday I struggled with building boost library for Visual Studio 2010, which I needed for my upcoming bachlor thesis.<\/p>\n<p>At the moment you need to build it on your own, because no prebuild packages are available for VS2010.<\/p>\n<p>I was not able to build it on the first try therefore here comes short instructions<\/p>\n<p>Step by step:<\/p>\n<ol>\n<li>Download <a href=\"http:\/\/sourceforge.net\/projects\/boost\/files\/boost\/1.42.0\/boost_1_42_0.zip\/download\">http:\/\/sourceforge.net\/projects\/boost\/files\/boost\/1.42.0\/boost_1_42_0.zip\/download<\/a> \/\/1.43 beta does not work on my setup (can&#8217;t build all targets)<\/li>\n<li>Extract the boost files to C:\\boost<\/li>\n<li>Open START-&gt;PROGRAMS-&gt;Microsoft Visual Studio 2010 -&gt; Visual Studio Tools-&gt;Visual Studio Prompt<\/li>\n<li>Type:<\/li>\n<li>C:<\/li>\n<li>cd boost<\/li>\n<li>bootstrap.bat \/\/for generating the build enviroment<\/li>\n<li>\n<div class=\"codecolorer-container dos default\" style=\"overflow:auto;white-space:nowrap;width:70%;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"dos codecolorer\">bjam --stagedir=&quot;c:\\boost&quot; --build-type=complete --toolset=msvc-10.0 --with-regex --with-date_time --with-thread --with-signals --with-system --with-filesystem --with-program_options stage<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<\/li>\n<li>You could replace\n<div class=\"codecolorer-container dos default\" style=\"overflow:auto;white-space:nowrap;width:70%;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"dos codecolorer\">&nbsp;--toolset=msvc-10.0 with --toolset=msvc-9.0<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>if you want to build it with Visual Studio 2009<\/li>\n<li>You could replace stagedir with another directory or you leave it and do it my way: after building was finished copy including lib folder to c:\\boost\\<\/li>\n<li>In Visual Studio add additional library and include paths to c:\\boost\\lib and\u00a0c:\\boost to your project for &#8220;Debug&#8221; and &#8220;Release&#8221; configuration<\/li>\n<\/ol>\n<p>My post is based on:<\/p>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/1790291\/using-boost-on-windows-visual-studio\">http:\/\/stackoverflow.com\/questions\/1790291\/using-boost-on-windows-visual-studio<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to build boost library with Visual Studio 2010<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,45],"tags":[44,42,43],"class_list":["post-133","post","type-post","status-publish","format-standard","hentry","category-it","category-windows-it-2","tag-boost","tag-visual-studio-2010","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=133"}],"version-history":[{"count":7,"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/133\/revisions"}],"predecessor-version":[{"id":167,"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/133\/revisions\/167"}],"wp:attachment":[{"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ceh-photo.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}