Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. Step-by-step tutorial to have the test suite build using MS VC 10 on Windows 7
  2.  
  3.  
  4. 1. Get boost, preferably latest version or trunk
  5. http://svn.boost.org/svn/boost/trunk
  6.  
  7. 1.1 Get bjam.exe
  8.  
  9. 2. Build boost
  10. debug:
  11. bjam -j4 --toolset=msvc --without-mpi variant=debug define=_CRT_NONSTDC_NO_DEPRECATE define=_CRT_SECURE_NO_DEPRECATE define=_SCL_SECURE_NO_DEPRECATE stage
  12.  
  13. 3. Get boost build extension
  14. http://svn.boost.org/svn/boost/sandbox/tools/build_extensions/
  15.  
  16. 3.1 Apply patch to boost_build extension
  17. http://mateusz.loskot.net/download/patches/boost-build_extensions-r66346-update.patch
  18.  
  19. 4. Get image libs
  20. jpeg: http://www.ijg.org/
  21. tiff: http://www.remotesensing.org/libtiff/
  22. zlib: http://www.zlib.net/
  23. png: http://www.libpng.org/pub/png/libpng.html
  24.  
  25. - rename tiffconf.vc.h into tiffconf.h
  26.  
  27. 5. Set environment variables
  28. BOOST_ROOT=C:\boost
  29. BOOST_BUILD=C:\boost\tools\build\v2
  30. BOOST_BUILD_PATH=C:\boost_build\ext
  31.  
  32. 6. Get io_new
  33. http://gil-contributions.googlecode.com/svn/trunk/
  34.  
  35. 6.1 Copy io_new into boost source tree
  36. C:\gil_contribution\gil_2\boost\gil\extension\*.* to C:\boost\boost\gil\extension
  37. C:\gil_contribution\gil_2\libs\gil\io_new\*.* to C:\boost\libs\gil\io_new
  38.  
  39. 7. Create empty jamroot file in C:\boost\libs\gil
  40. - needs to be removed when building gil's unit tests
  41.  
  42. 8. copy bjam.exe into gil test and gil::io_new test folders
  43. C:\boost\libs\gil\test
  44. C:\boost\libs\gil\io_new\test
  45.  
  46. 9. copy C:\boost\tools\build\v2\user-config.jam to user root ( C:\Users\your_user_name )
  47. - needs to be removed when building any boost lib unit tests
  48.  
  49. 9.1 add line user-config.jam
  50. use-project boost : C:/boost/ ;
  51.  
  52. 10. change main path in path.hpp
  53.  
  54. 10. run bjam in in C:\boost\libs\gil\io_new\test
  55. debug:
  56. bjam -j4 --toolset=msvc threading=multi
  57.  
  58. release:
  59. bjam -j4 --toolset=msvc variant=release threading=multi define=_SECURE_SCL=0 define=_HAS_ITERATOR_DEBUGGING=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement