template_build_info.m 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. function buildInformation()
  2. %CV.BUILDINFORMATION display OpenCV Toolbox build information
  3. %
  4. % Call CV.BUILDINFORMATION() to get a printout of diagonstic information
  5. % pertaining to your particular build of the OpenCV Toolbox. If you ever
  6. % run into issues with the Toolbox, it is useful to submit this
  7. % information alongside a bug report to the OpenCV team.
  8. %
  9. % Copyright {{ time.strftime("%Y", time.localtime()) }} The OpenCV Foundation
  10. %
  11. info = {
  12. ' ------------------------------------------------------------------------'
  13. ' <strong>OpenCV Toolbox</strong>'
  14. ' Build and diagnostic information'
  15. ' ------------------------------------------------------------------------'
  16. ''
  17. ' <strong>Platform</strong>'
  18. ' OS: {{ build.os }}'
  19. ' Architecture: {{ build.arch[0] }}-bit {{ build.arch[1] }}'
  20. ' Compiler: {{ build.compiler | csv(' ') }}'
  21. ''
  22. ' <strong>Matlab</strong>'
  23. [' Version: ' version()]
  24. [' Mex extension: ' mexext()]
  25. ' Architecture: {{ build.mex_arch }}'
  26. ' Mex path: {{ build.mex_script }}'
  27. ' Mex flags: {{ build.mex_opts | csv(' ') }}'
  28. ' CXX flags: {{ build.cxx_flags | csv(' ') | stripExtraSpaces | wordwrap(60, True, '\'\n\' ') }}'
  29. ''
  30. ' <strong>OpenCV</strong>'
  31. ' Version: {{ build.opencv_version }}'
  32. ' Commit: {{ build.commit }}'
  33. ' Configuration: {{ build.configuration }}'
  34. ' Modules: {{ build.modules | csv | wordwrap(60, True, '\'\n\' ') }}'
  35. ''
  36. };
  37. info = cellfun(@(x) [x '\n'], info, 'UniformOutput', false);
  38. info = horzcat(info{:});
  39. fprintf(info);
  40. end