Boost integration in Visual Studio 2010

Hi, we're using boost inour projects and all works fine. Our projects are standing under version control in a subversion repository. Our problem is that every developper had installed boost in a diferent place. Is their a way to get the reference to boost in a user speciffic configuration place? At the moment we have a fix path c:\dev\boost... but that does not fit for every developpers machine. Thanks for help, Georg ---------------------------------------------- Bayerisches Landesamt für Umwelt Referat Z6: IuK-Steuerung, Aufbau von Informationssystemen Hans-Högn-Str. 12 95030 Hof/Saale Tel.: 09281/1800-4572

Same issue over here. What I did was to check in the headers and the compiled library files (*.lib) so that it's part of the source tree of the respective project. Yes, takes a lot of diskspace... But that's what we have plenty of, so I didn't care. My project trees with M$ VS usually looks something like this: / /libs /libs/boost-x.xx/ /libs/boost-x.xx/boost -> header files /libs/boost-x.xx/libs -> binaries /libs/whatever... /appname /appname/.... To make life easier, for every boost release I check in a built of boost (not of all libraries (i.e. I don't need graph and so on...)) to a specific place in our SCM repo from where you can simply branch the boost version you want for your project to your project tree. Just in case you're wondering, I'm building boost using VS2008. Hope, I could make myself somewhat clear. Regards, Andreas On 07/17/2013 08:19 AM, Georg.Kellerer@lfu.bayern.de wrote:
Hi,
we're using boost inour projects and all works fine. Our projects are standing under version control in a subversion repository. Our problem is that every developper had installed boost in a diferent place. Is their a way to get the reference to boost in a user speciffic configuration place? At the moment we have a fix path c:\dev\boost... but that does not fit for every developpers machine.
Thanks for help, Georg
---------------------------------------------- Bayerisches Landesamt für Umwelt Referat Z6: IuK-Steuerung, Aufbau von Informationssystemen Hans-Högn-Str. 12 95030 Hof/Saale Tel.: 09281/1800-4572
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Why do you not use CMake? Here is an example how to use boost filesystem: https://bitbucket.org/Vertexwahn/cmakedemos/src/7a0fb63c277e649c77d065128f31... Best reagards Julian Von: Boost-users [mailto:boost-users-bounces@lists.boost.org] Im Auftrag von Georg.Kellerer@lfu.bayern.de Gesendet: Mittwoch, 17. Juli 2013 09:03 An: boost-users@lists.boost.org Betreff: [Boost-users] Boost integration in Visual Studio 2010 Hi, we're using boost inour projects and all works fine. Our projects are standing under version control in a subversion repository. Our problem is that every developper had installed boost in a diferent place. Is their a way to get the reference to boost in a user speciffic configuration place? At the moment we have a fix path c:\dev\boost... but that does not fit for every developpers machine. Thanks for help, Georg ---------------------------------------------- Bayerisches Landesamt für Umwelt Referat Z6: IuK-Steuerung, Aufbau von Informationssystemen Hans-Högn-Str. 12 95030 Hof/Saale Tel.: 09281/1800-4572

Hi, we are using msbuild because it s th default build system in VS 2010. Georg Von: Boost-users [mailto:boost-users-bounces@lists.boost.org] Im Auftrag von Amann, Julian Gesendet: Mittwoch, 17. Juli 2013 10:29 An: boost-users@lists.boost.org Betreff: Re: [Boost-users] Boost integration in Visual Studio 2010 Why do you not use CMake? Here is an example how to use boost filesystem: https://bitbucket.org/Vertexwahn/cmakedemos/src/7a0fb63c277e649c77d065128f31... Best reagards Julian Von: Boost-users [mailto:boost-users-bounces@lists.boost.org] Im Auftrag von Georg.Kellerer@lfu.bayern.demailto:Georg.Kellerer@lfu.bayern.de Gesendet: Mittwoch, 17. Juli 2013 09:03 An: boost-users@lists.boost.orgmailto:boost-users@lists.boost.org Betreff: [Boost-users] Boost integration in Visual Studio 2010 Hi, we're using boost inour projects and all works fine. Our projects are standing under version control in a subversion repository. Our problem is that every developper had installed boost in a diferent place. Is their a way to get the reference to boost in a user speciffic configuration place? At the moment we have a fix path c:\dev\boost... but that does not fit for every developpers machine. Thanks for help, Georg ---------------------------------------------- Bayerisches Landesamt für Umwelt Referat Z6: IuK-Steuerung, Aufbau von Informationssystemen Hans-Högn-Str. 12 95030 Hof/Saale Tel.: 09281/1800-4572

I have found that the libraries must be left in the original folder with all sub folders. Otherwise, if you use only a few libraries folder in interest, as I did, does not work. Each specific libraries and other libraries draws sparse files to the original folder. One way would be to rename the file and select only useful, but it is a meaningless work. ________________________________ Von:Boost-users [mailto:boost-users-bounces@lists.boost.org] Im Auftrag von Georg.Kellerer@lfu.bayern.de Gesendet: Mittwoch, 17. Juli 2013 09:03 An: boost-users@lists.boost.org Betreff: [Boost-users] Boost integration in Visual Studio 2010 ---------------------------------------------- Bayerisches Landesamt für Umwelt Referat Z6: IuK-Steuerung, Aufbau von Informationssystemen Hans-Högn-Str. 12 95030 Hof/Saale Tel.: 09281/1800-4572 _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On 7/17/2013 2:19 AM, Georg.Kellerer@lfu.bayern.de wrote:
Hi,
we’re using boost inour projects and all works fine. Our projects are standing under version control in a subversion repository. Our problem is that every developper had installed boost in a diferent place. Is their a way to get the reference to boost in a user speciffic configuration place? At the moment we have a fix path c:\dev\boost… but that does not fit for every developpers machine.
Create an environment variable on each developer machine: BOOSTDIR="c:\dev\boost\...". Then reference this from "Common Properties | C/C++ | General | Additional Include Directories" by adding $(BOOSTDIR) and "Common Properties | Linker | General | Additional Library Dependencies" by adding $(BOOSTDIR)\lib. Don't forget to specify these for both debug and release configurations. If you have a shared property sheet you can add the above there and have these settings applied to all projects that use the propertysheet. Jeff

Hello Jeff, seems to be the solution I was searching for. I'll give it a try. Thanks a lot. Georg -----Ursprüngliche Nachricht----- Von: Boost-users [mailto:boost-users-bounces@lists.boost.org] Im Auftrag von Jeff Flinn Gesendet: Mittwoch, 17. Juli 2013 14:15 An: boost-users@lists.boost.org Betreff: Re: [Boost-users] Boost integration in Visual Studio 2010 On 7/17/2013 2:19 AM, Georg.Kellerer@lfu.bayern.de wrote:
Hi,
we're using boost inour projects and all works fine. Our projects are standing under version control in a subversion repository. Our problem is that every developper had installed boost in a diferent place. Is their a way to get the reference to boost in a user speciffic configuration place? At the moment we have a fix path c:\dev\boost. but that does not fit for every developpers machine.
Create an environment variable on each developer machine: BOOSTDIR="c:\dev\boost\...". Then reference this from "Common Properties | C/C++ | General | Additional Include Directories" by adding $(BOOSTDIR) and "Common Properties | Linker | General | Additional Library Dependencies" by adding $(BOOSTDIR)\lib. Don't forget to specify these for both debug and release configurations. If you have a shared property sheet you can add the above there and have these settings applied to all projects that use the propertysheet. Jeff _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On 17.07.2013 10:19, Georg.Kellerer@lfu.bayern.de wrote: Hi,
Hi,
we’re using boost inour projects and all works fine. Our projects are standing under version control in a subversion repository. Our problem is that every developper had installed boost in a diferent place. Is their a way to get the reference to boost in a user speciffic configuration place? At the moment we have a fix path c:\dev\boost… but that does not fit for every developpers machine.
Prepare a property file (boost.props) looking like this: <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <IncludePath>$(IncludePath);$(BOOST_ROOT_PATH)</IncludePath> <LibraryPath Condition="'$(Platform)'=='Win32'">$(LibraryPath);$(BOOST_ROOT_PATH)\stage\lib</LibraryPath> <LibraryPath Condition="'$(Platform)'=='x64'">$(LibraryPath);$(BOOST_ROOT_PATH)\stage64\lib</LibraryPath> </PropertyGroup> </Project> then include it into the project file (vcxproj) <ImportGroup Label="PropertySheets"> <Import Project="$(SolutionDir)boost.props" Condition="exists('$(SolutionDir)boost.props')" /> </ImportGroup> each developer will have to set his own value for environment variable BOOST_ROOT_PATH
participants (6)
-
Alberto Aliberti
-
Amann, Julian
-
Andreas Wehrmann
-
Georg.Kellerer@lfu.bayern.de
-
Jeff Flinn
-
Sam Fisher