md__build_2_r_e_a_d_m_e.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=11"/>
  6. <meta name="generator" content="Doxygen 1.12.0"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Jolt Physics: Building and Using Jolt Physics</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <script type="text/javascript" src="clipboard.js"></script>
  13. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript" src="resize.js"></script>
  17. <script type="text/javascript" src="cookie.js"></script>
  18. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  19. <script type="text/javascript" src="search/searchdata.js"></script>
  20. <script type="text/javascript" src="search/search.js"></script>
  21. <script type="text/x-mathjax-config">
  22. MathJax.Hub.Config({
  23. extensions: ["tex2jax.js"],
  24. jax: ["input/TeX","output/HTML-CSS"],
  25. });
  26. </script>
  27. <script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"></script>
  28. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  29. </head>
  30. <body>
  31. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  32. <div id="titlearea">
  33. <table cellspacing="0" cellpadding="0">
  34. <tbody>
  35. <tr id="projectrow">
  36. <td id="projectlogo"><img alt="Logo" src="LogoSmall.png"/></td>
  37. <td id="projectalign">
  38. <div id="projectname">Jolt Physics
  39. </div>
  40. <div id="projectbrief">A multi core friendly Game Physics Engine</div>
  41. </td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. <!-- end header part -->
  47. <!-- Generated by Doxygen 1.12.0 -->
  48. <script type="text/javascript">
  49. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  50. var searchBox = new SearchBox("searchBox", "search/",'.html');
  51. /* @license-end */
  52. </script>
  53. <script type="text/javascript">
  54. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  55. $(function() { codefold.init(0); });
  56. /* @license-end */
  57. </script>
  58. <script type="text/javascript" src="menudata.js"></script>
  59. <script type="text/javascript" src="menu.js"></script>
  60. <script type="text/javascript">
  61. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  62. $(function() {
  63. initMenu('',true,false,'search.php','Search',true);
  64. $(function() { init_search(); });
  65. });
  66. /* @license-end */
  67. </script>
  68. <div id="main-nav"></div>
  69. </div><!-- top -->
  70. <div id="side-nav" class="ui-resizable side-nav-resizable">
  71. <div id="nav-tree">
  72. <div id="nav-tree-contents">
  73. <div id="nav-sync" class="sync"></div>
  74. </div>
  75. </div>
  76. <div id="splitbar" style="-moz-user-select:none;"
  77. class="ui-resizable-handle">
  78. </div>
  79. </div>
  80. <script type="text/javascript">
  81. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  82. $(function(){initNavTree('md__build_2_r_e_a_d_m_e.html',''); initResizable(true); });
  83. /* @license-end */
  84. </script>
  85. <div id="doc-content">
  86. <!-- window showing the filter options -->
  87. <div id="MSearchSelectWindow"
  88. onmouseover="return searchBox.OnSearchSelectShow()"
  89. onmouseout="return searchBox.OnSearchSelectHide()"
  90. onkeydown="return searchBox.OnSearchSelectKey(event)">
  91. </div>
  92. <!-- iframe showing the search results (closed by default) -->
  93. <div id="MSearchResultsWindow">
  94. <div id="MSearchResults">
  95. <div class="SRPage">
  96. <div id="SRIndex">
  97. <div id="SRResults"></div>
  98. <div class="SRStatus" id="Loading">Loading...</div>
  99. <div class="SRStatus" id="Searching">Searching...</div>
  100. <div class="SRStatus" id="NoMatches">No Matches</div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <div><div class="header">
  106. <div class="headertitle"><div class="title">Building and Using Jolt Physics</div></div>
  107. </div><!--header-->
  108. <div class="contents">
  109. <div class="textblock"><p><a class="anchor" id="autotoc_md17"></a></p>
  110. <h1><a class="anchor" id="autotoc_md18"></a>
  111. Build Types</h1>
  112. <p>Each platform supports multiple build targets</p>
  113. <ul>
  114. <li>Debug - Debug version of the library, turns on asserts</li>
  115. <li>Release - Release version of the library, no asserts but includes profiling support and can draw the world and simulation properties</li>
  116. <li>ReleaseASAN - As Release but turns on Address Sanitizer (clang only) to find bugs</li>
  117. <li>ReleaseUBSAN - As Release but turns on Undefined Behavior Sanitizer (clang only) to find bugs</li>
  118. <li>ReleaseTSAN - As Release but turns on the Thread Sanitizer (clang only) to find bugs</li>
  119. <li>ReleaseCoverage - As Release but turns on Coverage reporting (clang only) to find which areas of the code are not executed</li>
  120. <li>Distribution - Shippable version of the library, turns off all debugging support</li>
  121. </ul>
  122. <h1><a class="anchor" id="autotoc_md19"></a>
  123. Includes</h1>
  124. <p>The Jolt headers don't include <a class="el" href="_jolt_8h.html">Jolt/Jolt.h</a>. Always include <a class="el" href="_jolt_8h.html">Jolt/Jolt.h</a> before including any other Jolt header. You can use <a class="el" href="_jolt_8h.html">Jolt/Jolt.h</a> in your precompiled header to speed up compilation.</p>
  125. <h1><a class="anchor" id="autotoc_md20"></a>
  126. Defines</h1>
  127. <p>There are a number of user configurable defines that turn on/off certain features: </p><details >
  128. <summary >
  129. General Options (click to see more)</summary>
  130. <ul>
  131. <li>
  132. JPH_SHARED_LIBRARY - Use the Jolt library as a shared library. Use JPH_BUILD_SHARED_LIBRARY to build Jolt as a shared library. </li>
  133. <li>
  134. JPH_PROFILE_ENABLED - Turns on the internal profiler. </li>
  135. <li>
  136. JPH_EXTERNAL_PROFILE - Turns on the internal profiler but forwards the information to a user defined external system (see <a class="el" href="_profiler_8h.html">Profiler.h</a>). Use JPH_USE_EXTERNAL_PROFILE option to enable this from CMake config. </li>
  137. <li>
  138. JPH_DEBUG_RENDERER - Adds support to draw lines and triangles, used to be able to debug draw the state of the world. </li>
  139. <li>
  140. JPH_DISABLE_TEMP_ALLOCATOR - Disables the temporary memory allocator, used mainly to allow ASAN to do its job. </li>
  141. <li>
  142. JPH_DISABLE_CUSTOM_ALLOCATOR - Disables the ability to override the memory allocator. </li>
  143. <li>
  144. JPH_FLOATING_POINT_EXCEPTIONS_ENABLED - Turns on division by zero and invalid floating point exception support in order to detect bugs (Windows only). </li>
  145. <li>
  146. JPH_CROSS_PLATFORM_DETERMINISTIC - Turns on behavior to attempt cross platform determinism. If this is set, JPH_USE_FMADD is ignored. </li>
  147. <li>
  148. JPH_DET_LOG - Turn on a lot of extra logging to help debug determinism issues when JPH_CROSS_PLATFORM_DETERMINISTIC is turned on. </li>
  149. <li>
  150. JPH_ENABLE_ASSERTS - Compiles the library so that it rises an assert in case of failures. The library ignores these failures otherwise. </li>
  151. <li>
  152. JPH_DOUBLE_PRECISION - Compiles the library so that all positions are stored in doubles instead of floats. This makes larger worlds possible. </li>
  153. <li>
  154. JPH_OBJECT_LAYER_BITS - Defines the size of ObjectLayer, must be 16 or 32 bits. </li>
  155. <li>
  156. JPH_OBJECT_STREAM - Includes the code to serialize physics data in the <a class="el" href="class_object_stream.html" title="Base class for object stream input and output streams.">ObjectStream</a> format (mostly used by the examples). </li>
  157. <li>
  158. JPH_NO_FORCE_INLINE - Don't use force inlining but fall back to a regular 'inline'. </li>
  159. <li>
  160. JPH_USE_STD_VECTOR - Use std::vector instead of Jolt's own <a class="el" href="class_array.html">Array</a> class. </li>
  161. <li>
  162. CPP_RTTI_ENABLED - Enable C++ <a class="el" href="class_r_t_t_i.html">RTTI</a> for the library. Disabled by default. </li>
  163. </ul>
  164. </details>
  165. <details >
  166. <summary >
  167. CPU Instruction Sets (click to see more)</summary>
  168. <ul>
  169. <li>
  170. JPH_USE_SSE4_1 - Enable SSE4.1 CPU instructions (default: on, x86/x64 only) </li>
  171. <li>
  172. JPH_USE_SSE4_2 - Enable SSE4.2 CPU instructions (default: on, x86/x64 only) </li>
  173. <li>
  174. JPH_USE_F16C - Enable half float CPU instructions (default: on, x86/x64 only) </li>
  175. <li>
  176. JPH_USE_LZCNT - Enable the lzcnt CPU instruction (default: on, x86/x64 only) </li>
  177. <li>
  178. JPH_USE_TZCNT - Enable the tzcnt CPU instruction (default: on, x86/x64 only) </li>
  179. <li>
  180. JPH_USE_AVX - Enable AVX CPU instructions (default: on, x86/x64 only) </li>
  181. <li>
  182. JPH_USE_AVX2 - Enable AVX2 CPU instructions (default: on, x86/x64 only) </li>
  183. <li>
  184. JPH_USE_AVX512 - Enable AVX512F+AVX512VL CPU instructions (default: off, x86/x64 only) </li>
  185. <li>
  186. JPH_USE_FMADD - Enable fused multiply add CPU instructions (default: on, x86/x64 only) </li>
  187. </ul>
  188. </details>
  189. <h1><a class="anchor" id="autotoc_md21"></a>
  190. Logging &amp; Asserting</h1>
  191. <p>To override the default trace and assert mechanism install your own custom handlers in Trace and AssertFailed (see <a class="el" href="_issue_reporting_8h.html">IssueReporting.h</a>).</p>
  192. <h1><a class="anchor" id="autotoc_md22"></a>
  193. Custom Memory Allocator</h1>
  194. <p>To implement your custom memory allocator override Allocate, Free, Reallocate, AlignedAllocate and AlignedFree (see <a class="el" href="_memory_8h.html">Memory.h</a>).</p>
  195. <h1><a class="anchor" id="autotoc_md23"></a>
  196. Building</h1>
  197. <details >
  198. <summary >
  199. Windows 10+</summary>
  200. <ul style="list-style: none">
  201. <li>
  202. <details >
  203. <summary >
  204. MSVC CL (default compiler)</summary>
  205. <ul>
  206. <li>
  207. Download Visual Studio 2022 (Community or other edition) </li>
  208. <li>
  209. Download CMake 3.20+ (<a href="https://cmake.org/download/">https://cmake.org/download/</a>) </li>
  210. <li>
  211. Run cmake_vs2022_cl.bat </li>
  212. <li>
  213. Open the resulting project file VS2022_CL\JoltPhysics.sln </li>
  214. <li>
  215. Compile and run either 'Samples' or 'UnitTests' </li>
  216. </ul>
  217. </details>
  218. <details >
  219. <summary >
  220. MSVC CL - 32 bit</summary>
  221. <ul>
  222. <li>
  223. Download Visual Studio 2022 (Community or other edition) </li>
  224. <li>
  225. Download CMake 3.20+ (<a href="https://cmake.org/download/">https://cmake.org/download/</a>) </li>
  226. <li>
  227. Run cmake_vs2022_cl_32bit.bat </li>
  228. <li>
  229. Open the resulting project file VS2022_CL_32BIT\JoltPhysics.sln </li>
  230. <li>
  231. Compile and run either 'Samples' or 'UnitTests' </li>
  232. </ul>
  233. </details>
  234. <details >
  235. <summary >
  236. MSVC Clang compiler</summary>
  237. <ul>
  238. <li>
  239. Download Visual Studio 2022 (Community or other edition) </li>
  240. <li>
  241. Make sure to install "C++ Clang Compiler for Windows 11.0.0+" and "C++ Clang-cl for v142+ build tools (x64/x86)" using the Visual Studio Installer </li>
  242. <li>
  243. Download CMake 3.20+ (<a href="https://cmake.org/download/">https://cmake.org/download/</a>) </li>
  244. <li>
  245. Run cmake_vs2022_clang.bat </li>
  246. <li>
  247. Open the resulting project file VS2022_Clang\JoltPhysics.sln </li>
  248. <li>
  249. Compile and run either 'Samples' or 'UnitTests' </li>
  250. </ul>
  251. </details>
  252. <details >
  253. <summary >
  254. MSVC Universal Windows Platform</summary>
  255. <ul>
  256. <li>
  257. Download Visual Studio 2022+ (Community or other edition) </li>
  258. <li>
  259. Make sure to install "Universal Windows Platform development" using the Visual Studio Installer </li>
  260. <li>
  261. Download CMake 3.20+ (<a href="https://cmake.org/download/">https://cmake.org/download/</a>) </li>
  262. <li>
  263. Run cmake_vs2022_uwp.bat </li>
  264. <li>
  265. Open the resulting project file VS2022_UWP\JoltPhysics.sln </li>
  266. <li>
  267. Compile and run 'UnitTests' </li>
  268. </ul>
  269. </details>
  270. <details >
  271. <summary >
  272. MinGW</summary>
  273. <ul>
  274. <li>
  275. Follow download instructions for MSYS2 (<a href="https://www.msys2.org/">https://www.msys2.org/</a>) </li>
  276. <li>
  277. From the MSYS2 MSYS app run: pacman -S &ndash;needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake </li>
  278. <li>
  279. From the MSYS2 MINGW x64 app, in the Build folder run: ./cmake_windows_mingw.sh </li>
  280. <li>
  281. Run: cmake &ndash;build MinGW_Debug </li>
  282. <li>
  283. Run: MinGW_Debug/UnitTests.exe </li>
  284. </ul>
  285. </details>
  286. </li>
  287. </ul>
  288. </details>
  289. <details >
  290. <summary >
  291. Linux (Ubuntu)</summary>
  292. <ul>
  293. <li>
  294. Install clang (apt-get install clang) </li>
  295. <li>
  296. Install cmake (apt-get install cmake) </li>
  297. <li>
  298. If you want to build the Samples or JoltViewer, install the <a href="https://vulkan.lunarg.com/doc/view/latest/linux/getting_started_ubuntu.html">Vulkan SDK</a> </li>
  299. <li>
  300. Run: ./cmake_linux_clang_gcc.sh </li>
  301. <li>
  302. Go to the Linux_Debug folder </li>
  303. <li>
  304. Run: make -j$(nproc) &amp;&amp; ./UnitTests </li>
  305. <li>
  306. If you built the samples you can run: ./Samples </li>
  307. </ul>
  308. </details>
  309. <details >
  310. <summary >
  311. Android</summary>
  312. <ul>
  313. <li>
  314. Install Android Studio 2020.3.1+ (<a href="https://developer.android.com/studio/">https://developer.android.com/studio/</a>) </li>
  315. <li>
  316. Open the 'Android' folder in Android Studio and wait until gradle finishes </li>
  317. <li>
  318. Select 'Run' / 'Run...' and 'UnitTests' </li>
  319. <li>
  320. If the screen turns green after a while the unit tests succeeded, when red they failed (see the android log for details) </li>
  321. </ul>
  322. </details>
  323. <details >
  324. <summary >
  325. macOS</summary>
  326. <ul>
  327. <li>
  328. Install XCode </li>
  329. <li>
  330. Download CMake 3.23+ (<a href="https://cmake.org/download/">https://cmake.org/download/</a>) </li>
  331. <li>
  332. Run: ./cmake_xcode_macos.sh </li>
  333. <li>
  334. This will open XCode with a newly generated project </li>
  335. <li>
  336. Build and run the project </li>
  337. <li>
  338. Note that you can also follow the steps in the 'Linux' section if you wish to build without XCode. </li>
  339. </ul>
  340. </details>
  341. <details >
  342. <summary >
  343. iOS</summary>
  344. <ul>
  345. <li>
  346. Install XCode </li>
  347. <li>
  348. Download CMake 3.23+ (<a href="https://cmake.org/download/">https://cmake.org/download/</a>) </li>
  349. <li>
  350. Run: ./cmake_xcode.ios.sh </li>
  351. <li>
  352. This will open XCode with a newly generated project </li>
  353. <li>
  354. Build and run the project (note that this will only work in the simulator as the code signing information is not set up) </li>
  355. </ul>
  356. </details>
  357. <details >
  358. <summary >
  359. Emscripten (tested only on Linux)</summary>
  360. <ul>
  361. <li>
  362. Install Emscripten (<a href="https://emscripten.org/docs/getting_started/downloads.html">https://emscripten.org/docs/getting_started/downloads.html</a>) </li>
  363. <li>
  364. Install nodejs (apt-get install nodejs) </li>
  365. <li>
  366. Download CMake 3.23+ (<a href="https://cmake.org/download/">https://cmake.org/download/</a>) </li>
  367. <li>
  368. Run: ./cmake_linux_emscripten.sh </li>
  369. <li>
  370. Go to the WASM_Debug folder </li>
  371. <li>
  372. Run: make -j$(nproc) &amp;&amp; node UnitTests.js </li>
  373. </ul>
  374. </details>
  375. <h1><a class="anchor" id="autotoc_md24"></a>
  376. Other Build Tools</h1>
  377. <ul>
  378. <li>A vcpkg package is available <a href="https://github.com/microsoft/vcpkg/tree/master/ports/joltphysics">here</a>.</li>
  379. <li>A xmake package is available <a href="https://github.com/xmake-io/xmake-repo/tree/dev/packages/j/joltphysics">here</a>.</li>
  380. <li>A conan package is available <a href="https://conan.io/center/recipes/joltphysics">here</a></li>
  381. <li>Jolt has been verified to build with <a href="https://ninja-build.org/">ninja</a> through CMake.</li>
  382. </ul>
  383. <h1><a class="anchor" id="autotoc_md25"></a>
  384. Errors</h1>
  385. <h2><a class="anchor" id="autotoc_md26"></a>
  386. Link Error: File Format Not Recognized</h2>
  387. <p>If you receive the following error when linking:</p>
  388. <div class="fragment"><div class="line">/usr/bin/ld: libJolt.a: error adding symbols: file format not recognized</div>
  389. </div><!-- fragment --><p>Then you have not enabled interprocedural optimizations (link time optimizations) for your own application. See the INTERPROCEDURAL_OPTIMIZATION option in CMakeLists.txt.</p>
  390. <h2><a class="anchor" id="autotoc_md27"></a>
  391. Link Error: Unresolved External Symbol</h2>
  392. <p>If you receive a link error that looks like:</p>
  393. <div class="fragment"><div class="line">error LNK2001: unresolved external symbol &quot;public: virtual void __cdecl JPH::ConvexShape::GetSubmergedVolume(...) const&quot;</div>
  394. </div><!-- fragment --><p>you have a mismatch in defines between your own code and the Jolt library. In this case the mismatch is in the define <code>JPH_DEBUG_RENDERER</code> which is most likely defined in <code>Jolt.lib</code> and not in your own project. In <code>Debug</code> and <code>Release</code> builds, Jolt by default has <code>JPH_DEBUG_RENDERER</code> defined, in <code>Distribution</code> it is not defined. The cmake options <code>DEBUG_RENDERER_IN_DEBUG_AND_RELEASE</code> and <code>DEBUG_RENDERER_IN_DISTRIBUTION</code> override this behavior.</p>
  395. <p>The <code>RegisterTypes</code> function (which you have to call to initialize the library) checks the other important defines and will trace and abort if there are more mismatches.</p>
  396. <h2><a class="anchor" id="autotoc_md28"></a>
  397. Link Error: Undefined Symbol</h2>
  398. <p>If you receive a link error that looks like:</p>
  399. <div class="fragment"><div class="line">error: undefined symbol: typeinfo for JPH::DebugRenderer</div>
  400. </div><!-- fragment --><p>you have a mismatch between <a class="el" href="class_r_t_t_i.html">RTTI</a> settings (MSVC: <code>/GR</code>/<code>/GR-</code>, clang: <code>-frtti</code>/<code>-fno-rtti</code>). Jolt by default compiles without <a class="el" href="class_r_t_t_i.html">RTTI</a> and if your project compiles with <a class="el" href="class_r_t_t_i.html">RTTI</a> you can get this error. Either turn <a class="el" href="class_r_t_t_i.html">RTTI</a> off for your project or turn it on for Jolt using the CPP_RTTI_ENABLED cmake option.</p>
  401. <h2><a class="anchor" id="autotoc_md29"></a>
  402. DirectX Error</h2>
  403. <p>The samples use DirectX for the graphics implementation, when attempting to run the samples you may get a DirectX error pop-up which may say "The GPU device instance has been suspended", in your debugger you may see the message "Using the Redistributable D3D12 SDKLayers dll also requires that the latest SDKLayers for Windows 10 is installed.".</p>
  404. <p>Fix this by enabling "Graphics Tools" which is an optional Windows settings. To enable it you have to press the windows key, search for "Manage Optional Features", and then click "Add a Feature", and install "Graphics Tools".</p>
  405. <h2><a class="anchor" id="autotoc_md30"></a>
  406. Illegal Instruction Error</h2>
  407. <p>If your CPU doesn't support all of the instructions you'll get an <code>Illegal instruction</code> exception.</p>
  408. <p>On Linux to see what instructions your CPU supports run <code>lscpu</code> and then look at the flags section, on Windows you can use a program like <a href="https://learn.microsoft.com/en-us/sysinternals/downloads/coreinfo"><code>coreinfo</code></a>. Once you know what instructions your cpu supports you can configure the project through cmake and for example disable all special instructions:</p>
  409. <div class="fragment"><div class="line">./cmake_linux_clang_gcc.sh Release clang++ -DUSE_SSE4_1=OFF -DUSE_SSE4_2=OFF -DUSE_AVX=OFF -DUSE_AVX2=OFF -DUSE_AVX512=OFF -DUSE_LZCNT=OFF -DUSE_TZCNT=OFF -DUSE_F16C=OFF -DUSE_FMADD=OFF</div>
  410. </div><!-- fragment --><p>Note that this example is for Linux but the cmake settings work on Windows too.</p>
  411. <h1><a class="anchor" id="autotoc_md31"></a>
  412. Doxygen on Windows</h1>
  413. <p>Documentation can be generated through doxygen:</p>
  414. <ul>
  415. <li>Install Doxygen (<a href="https://www.doxygen.nl/download.html">https://www.doxygen.nl/download.html</a>)</li>
  416. <li>Run: run_doxygen.bat </li>
  417. </ul>
  418. </div></div><!-- contents -->
  419. </div><!-- PageDoc -->
  420. </div><!-- doc-content -->
  421. <!-- start footer part -->
  422. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  423. <ul>
  424. <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li>
  425. </ul>
  426. </div>
  427. </body>
  428. </html>