| 1 |
|
| 2 |
<!DOCTYPE html> |
| 3 |
|
| 4 |
|
| 5 |
<html lang="ja" data-content_root="../" > |
| 6 |
|
| 7 |
<head> |
| 8 |
<meta charset="utf-8" /> |
| 9 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 10 |
|
| 11 |
<title>2.8. その他: CMakeを使ってビルド — Groonga v16.0.9ドキュメント</title> |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
<script data-cfasync="false"> |
| 16 |
document.documentElement.dataset.mode = localStorage.getItem("mode") || ""; |
| 17 |
document.documentElement.dataset.theme = localStorage.getItem("theme") || ""; |
| 18 |
</script> |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
<noscript> |
| 23 |
<style> |
| 24 |
.pst-js-only { display: none !important; } |
| 25 |
|
| 26 |
</style> |
| 27 |
</noscript> |
| 28 |
|
| 29 |
|
| 30 |
<link href="../_static/styles/theme.css?digest=90905a2f556bf617f1a9" rel="stylesheet" /> |
| 31 |
<link href="../_static/styles/pydata-sphinx-theme.css?digest=90905a2f556bf617f1a9" rel="stylesheet" /> |
| 32 |
|
| 33 |
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=8f2a1f02" /> |
| 34 |
|
| 35 |
|
| 36 |
<script defer src="../_static/scripts/fontawesome.js?digest=90905a2f556bf617f1a9"></script> |
| 37 |
|
| 38 |
<link rel="preload" as="script" href="../_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9" /> |
| 39 |
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9" /> |
| 40 |
|
| 41 |
<script src="../_static/documentation_options.js?v=1e3c191b"></script> |
| 42 |
<script src="../_static/doctools.js?v=fd6eb6e6"></script> |
| 43 |
<script src="../_static/sphinx_highlight.js?v=6ffebe34"></script> |
| 44 |
<script src="../_static/translations.js?v=4755f45a"></script> |
| 45 |
<script> |
| 46 |
window.dataLayer = window.dataLayer || []; |
| 47 |
function gtag(){ dataLayer.push(arguments); } |
| 48 |
gtag('consent', 'default', { |
| 49 |
'ad_storage': 'denied', |
| 50 |
'ad_user_data': 'denied', |
| 51 |
'ad_personalization': 'denied', |
| 52 |
'analytics_storage': 'denied' |
| 53 |
}); |
| 54 |
</script> |
| 55 |
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=G-MDK38RHNPW"></script> |
| 56 |
<script> |
| 57 |
window.dataLayer = window.dataLayer || []; |
| 58 |
function gtag(){dataLayer.push(arguments);} |
| 59 |
gtag('js', new Date()); |
| 60 |
gtag('config', 'G-MDK38RHNPW'); |
| 61 |
</script> |
| 62 |
<script>DOCUMENTATION_OPTIONS.pagename = 'install/cmake';</script> |
| 63 |
<script> |
| 64 |
DOCUMENTATION_OPTIONS.theme_version = '0.20.0'; |
| 65 |
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://groonga.org/docs/_static/switcher.json'; |
| 66 |
DOCUMENTATION_OPTIONS.theme_switcher_version_match = 'japanese'; |
| 67 |
DOCUMENTATION_OPTIONS.show_version_warning_banner = |
| 68 |
false; |
| 69 |
</script> |
| 70 |
<script>DOCUMENTATION_OPTIONS.search_as_you_type = false;</script> |
| 71 |
<link rel="icon" href="../_static/favicon.ico"/> |
| 72 |
<link rel="index" title="索引" href="../genindex.html" /> |
| 73 |
<link rel="search" title="検索" href="../search.html" /> |
| 74 |
<link rel="next" title="3. コミュニティ" href="../community.html" /> |
| 75 |
<link rel="prev" title="2.7. Docker" href="docker.html" /> |
| 76 |
<meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 77 |
<meta name="docsearch:language" content="ja"/> |
| 78 |
<meta name="docsearch:version" content="16.0.9" /> |
| 79 |
|
| 80 |
|
| 81 |
<script src="../_static/searchtools.js"></script> |
| 82 |
<script src="../_static/language_data.js"></script> |
| 83 |
<script src="../searchindex.js"></script> |
| 84 |
|
| 85 |
</head> |
| 86 |
<body data-default-mode=""> |
| 87 |
|
| 88 |
|
| 89 |
<div id="pst-skip-link" class="skip-link d-print-none"><a href="#main-content">本文へスキップ</a></div> |
| 90 |
|
| 91 |
|
| 92 |
<div id="pst-scroll-pixel-helper"></div> |
| 93 |
|
| 94 |
<button type="button" class="btn rounded-pill" id="pst-back-to-top"> |
| 95 |
<i class="fa-solid fa-arrow-up"></i>トップに戻る</button> |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
<dialog id="pst-search-dialog"> |
| 101 |
|
| 102 |
<form class="bd-search d-flex align-items-center" |
| 103 |
action="../search.html" |
| 104 |
method="get"> |
| 105 |
<i class="fa-solid fa-magnifying-glass"></i> |
| 106 |
<input type="search" |
| 107 |
class="form-control" |
| 108 |
name="q" |
| 109 |
placeholder="Search the docs ..." |
| 110 |
aria-label="Search the docs ..." |
| 111 |
autocomplete="off" |
| 112 |
autocorrect="off" |
| 113 |
autocapitalize="off" |
| 114 |
spellcheck="false"/> |
| 115 |
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span> |
| 116 |
</form> |
| 117 |
</dialog> |
| 118 |
|
| 119 |
<div class="pst-async-banner-revealer d-none"> |
| 120 |
<aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="バージョン警告"></aside> |
| 121 |
</div> |
| 122 |
|
| 123 |
|
| 124 |
<header id="pst-header" class="bd-header navbar navbar-expand-lg bd-navbar d-print-none"> |
| 125 |
<div class="bd-header__inner bd-page-width"> |
| 126 |
<button class="pst-navbar-icon sidebar-toggle primary-toggle" aria-label="サイトナビゲーション"> |
| 127 |
<span class="fa-solid fa-bars"></span> |
| 128 |
</button> |
| 129 |
|
| 130 |
|
| 131 |
<div class="col-lg-3 navbar-header-items__start"> |
| 132 |
|
| 133 |
<div class="navbar-item"> |
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
<a class="navbar-brand logo" href="https://groonga.org/ja/"> |
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
<img src="../_static/groonga.png" class="logo__image only-light" alt="Groonga v16.0.9ドキュメント - Home"/> |
| 151 |
<img src="../_static/groonga.png" class="logo__image only-dark pst-js-only" alt="Groonga v16.0.9ドキュメント - Home"/> |
| 152 |
|
| 153 |
|
| 154 |
</a></div> |
| 155 |
|
| 156 |
</div> |
| 157 |
|
| 158 |
<div class="col-lg-9 navbar-header-items"> |
| 159 |
|
| 160 |
|
| 161 |
<div class="navbar-header-items__end"> |
| 162 |
|
| 163 |
<div class="navbar-item navbar-persistent--container"> |
| 164 |
|
| 165 |
|
| 166 |
<button class="btn search-button-field search-button__button pst-js-only" title="検索" aria-label="検索" data-bs-placement="bottom" data-bs-toggle="tooltip"> |
| 167 |
<i class="fa-solid fa-magnifying-glass"></i> |
| 168 |
<span class="search-button__default-text">検索</span> |
| 169 |
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span> |
| 170 |
</button> |
| 171 |
</div> |
| 172 |
|
| 173 |
|
| 174 |
<div class="navbar-item"> |
| 175 |
|
| 176 |
<div class="theme-switch-container dropdown pst-js-only" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Color mode"> |
| 177 |
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button dropdown-toggle" aria-label="Color mode" data-bs-toggle="dropdown"> |
| 178 |
<i class="theme-switch fa-solid fa-sun fa-lg fa-fw" data-mode="light" title="ライト"></i> |
| 179 |
<i class="theme-switch fa-solid fa-moon fa-lg fa-fw" data-mode="dark" title="ダーク"></i> |
| 180 |
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg fa-fw" data-mode="auto" title="System Settings"></i> |
| 181 |
</button> |
| 182 |
<ul class="dropdown-menu dropdown-menu-end"> |
| 183 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="auto"><i class="fa-solid fa-circle-half-stroke fa-lg fa-fw me-1"></i>System Settings</button></li> |
| 184 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="light"><i class="fa-solid fa-sun fa-lg fa-fw me-1"></i>ライト</button></li> |
| 185 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="dark"><i class="fa-solid fa-moon fa-lg fa-fw me-1"></i>ダーク</button></li> |
| 186 |
</ul> |
| 187 |
</div></div> |
| 188 |
|
| 189 |
<div class="navbar-item"><ul class="navbar-icon-links" |
| 190 |
aria-label="Icon Links"> |
| 191 |
<li class="nav-item"> |
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
<a href="https://github.com/groonga/groonga" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i><span class="visually-hidden">GitHub</span></a> |
| 201 |
</li> |
| 202 |
<li class="nav-item"> |
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
<a href="https://twitter.com/groonga" title="Twitter" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-twitter fa-lg" aria-hidden="true"></i><span class="visually-hidden">Twitter</span></a> |
| 212 |
</li> |
| 213 |
<li class="nav-item"> |
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
<a href="/ja/blog" title="Blog" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fas fa-blog fa-lg" aria-hidden="true"></i><span class="visually-hidden">Blog</span></a> |
| 223 |
</li> |
| 224 |
</ul></div> |
| 225 |
|
| 226 |
<div class="navbar-item"> |
| 227 |
<div class="version-switcher__container dropdown pst-js-only"> |
| 228 |
<button id="pst-version-switcher-button-2" |
| 229 |
type="button" |
| 230 |
class="version-switcher__button btn btn-sm dropdown-toggle" |
| 231 |
data-bs-toggle="dropdown" |
| 232 |
aria-haspopup="listbox" |
| 233 |
aria-controls="pst-version-switcher-list-2" |
| 234 |
aria-label="Version switcher list" |
| 235 |
> |
| 236 |
Choose version |
| 237 |
<span class="caret"></span> |
| 238 |
</button> |
| 239 |
<div id="pst-version-switcher-list-2" |
| 240 |
class="version-switcher__menu dropdown-menu list-group-flush py-0" |
| 241 |
role="listbox" aria-labelledby="pst-version-switcher-button-2"> |
| 242 |
|
| 243 |
</div> |
| 244 |
</div></div> |
| 245 |
|
| 246 |
</div> |
| 247 |
|
| 248 |
</div> |
| 249 |
|
| 250 |
|
| 251 |
<div class="navbar-persistent--mobile"> |
| 252 |
|
| 253 |
<button class="btn search-button-field search-button__button pst-js-only" title="検索" aria-label="検索" data-bs-placement="bottom" data-bs-toggle="tooltip"> |
| 254 |
<i class="fa-solid fa-magnifying-glass"></i> |
| 255 |
<span class="search-button__default-text">検索</span> |
| 256 |
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span> |
| 257 |
</button> |
| 258 |
</div> |
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
<button class="pst-navbar-icon sidebar-toggle secondary-toggle" aria-label="このページでは"> |
| 263 |
<span class="fa-solid fa-outdent"></span> |
| 264 |
</button> |
| 265 |
|
| 266 |
</div> |
| 267 |
|
| 268 |
</header> |
| 269 |
|
| 270 |
|
| 271 |
<div class="bd-container"> |
| 272 |
<div class="bd-container__inner bd-page-width"> |
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
<dialog id="pst-primary-sidebar-modal"></dialog> |
| 277 |
<div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar"> |
| 278 |
|
| 279 |
|
| 280 |
|
| 281 |
<div class="sidebar-header-items sidebar-primary__section"> |
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
<div class="sidebar-header-items__end"> |
| 287 |
|
| 288 |
<div class="navbar-item"> |
| 289 |
|
| 290 |
<div class="theme-switch-container dropdown pst-js-only" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Color mode"> |
| 291 |
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button dropdown-toggle" aria-label="Color mode" data-bs-toggle="dropdown"> |
| 292 |
<i class="theme-switch fa-solid fa-sun fa-lg fa-fw" data-mode="light" title="ライト"></i> |
| 293 |
<i class="theme-switch fa-solid fa-moon fa-lg fa-fw" data-mode="dark" title="ダーク"></i> |
| 294 |
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg fa-fw" data-mode="auto" title="System Settings"></i> |
| 295 |
</button> |
| 296 |
<ul class="dropdown-menu dropdown-menu-end"> |
| 297 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="auto"><i class="fa-solid fa-circle-half-stroke fa-lg fa-fw me-1"></i>System Settings</button></li> |
| 298 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="light"><i class="fa-solid fa-sun fa-lg fa-fw me-1"></i>ライト</button></li> |
| 299 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="dark"><i class="fa-solid fa-moon fa-lg fa-fw me-1"></i>ダーク</button></li> |
| 300 |
</ul> |
| 301 |
</div></div> |
| 302 |
|
| 303 |
<div class="navbar-item"><ul class="navbar-icon-links" |
| 304 |
aria-label="Icon Links"> |
| 305 |
<li class="nav-item"> |
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
<a href="https://github.com/groonga/groonga" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i><span class="visually-hidden">GitHub</span></a> |
| 315 |
</li> |
| 316 |
<li class="nav-item"> |
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
<a href="https://twitter.com/groonga" title="Twitter" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-twitter fa-lg" aria-hidden="true"></i><span class="visually-hidden">Twitter</span></a> |
| 326 |
</li> |
| 327 |
<li class="nav-item"> |
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
<a href="/ja/blog" title="Blog" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fas fa-blog fa-lg" aria-hidden="true"></i><span class="visually-hidden">Blog</span></a> |
| 337 |
</li> |
| 338 |
</ul></div> |
| 339 |
|
| 340 |
<div class="navbar-item"> |
| 341 |
<div class="version-switcher__container dropdown pst-js-only"> |
| 342 |
<button id="pst-version-switcher-button-3" |
| 343 |
type="button" |
| 344 |
class="version-switcher__button btn btn-sm dropdown-toggle" |
| 345 |
data-bs-toggle="dropdown" |
| 346 |
aria-haspopup="listbox" |
| 347 |
aria-controls="pst-version-switcher-list-3" |
| 348 |
aria-label="Version switcher list" |
| 349 |
> |
| 350 |
Choose version |
| 351 |
<span class="caret"></span> |
| 352 |
</button> |
| 353 |
<div id="pst-version-switcher-list-3" |
| 354 |
class="version-switcher__menu dropdown-menu list-group-flush py-0" |
| 355 |
role="listbox" aria-labelledby="pst-version-switcher-button-3"> |
| 356 |
|
| 357 |
</div> |
| 358 |
</div></div> |
| 359 |
|
| 360 |
</div> |
| 361 |
|
| 362 |
</div> |
| 363 |
|
| 364 |
<div class="sidebar-primary-items__start sidebar-primary__section"> |
| 365 |
<div class="sidebar-primary-item pst-sidebar-collapse"><button id="pst-collapse-sidebar-button" aria-expanded="true" aria-controls="pst-primary-sidebar"> |
| 366 |
<svg class="pst-icon" role="img" aria-hidden="true" focusable="false" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> |
| 367 |
<path fill="currentColor" d="M3 15.5C2.36232 15.5 1.74874 15.2564 1.28478 14.8189C0.820828 14.3815 0.541576 13.7832 0.504167 13.1467L0.5 13L0.5 3C0.499965 2.36232 0.743605 1.74874 1.18107 1.28478C1.61854 0.820828 2.21676 0.541576 2.85333 0.504167L3 0.5L13 0.5C13.6377 0.499965 14.2513 0.743605 14.7152 1.18107C15.1792 1.61854 15.4584 2.21676 15.4958 2.85333L15.5 3L15.5 13C15.5 13.6377 15.2564 14.2513 14.8189 14.7152C14.3815 15.1792 13.7832 15.4584 13.1467 15.4958L13 15.5L3 15.5ZM3 13.8333L10.5 13.8333L10.5 2.16667L3 2.16667C2.79589 2.16669 2.59889 2.24163 2.44636 2.37726C2.29383 2.5129 2.19638 2.69979 2.1725 2.9025L2.16667 3L2.16667 13C2.16669 13.2041 2.24163 13.4011 2.37726 13.5536C2.5129 13.7062 2.69979 13.8036 2.9025 13.8275L3 13.8333ZM6.65583 10.325L6.5775 10.2558L4.91083 8.58917C4.76735 8.44567 4.68116 8.25476 4.66843 8.05223C4.65569 7.84971 4.71729 7.6495 4.84167 7.48917L4.91083 7.41083L6.5775 5.74417C6.72747 5.59471 6.9287 5.50794 7.14032 5.50148C7.35194 5.49502 7.55809 5.56935 7.7169 5.70937C7.8757 5.8494 7.97525 6.04463 7.99533 6.25539C8.01541 6.46616 7.95451 6.67667 7.825 6.84417L7.75583 6.9225L6.67917 8L7.75583 9.0775C7.89931 9.22099 7.98551 9.41191 7.99824 9.61443C8.01097 9.81695 7.94938 10.0172 7.825 10.1775L7.75583 10.2558C7.61234 10.3993 7.42142 10.4855 7.2189 10.4982C7.01638 10.511 6.81617 10.4494 6.65583 10.325Z"/> |
| 368 |
</svg> |
| 369 |
<span class="pst-collapse-sidebar-label">Collapse Sidebar</span> |
| 370 |
<span class="pst-expand-sidebar-label">Expand Sidebar</span> |
| 371 |
</button></div> |
| 372 |
<div class="sidebar-primary-item"> |
| 373 |
|
| 374 |
<nav class="bd-docs-nav bd-links" |
| 375 |
aria-label="セクションナビゲーション"> |
| 376 |
<p class="bd-links__title" role="heading" aria-level="1">セクションナビゲーション</p> |
| 377 |
<div class="bd-toc-item navbar-nav"><ul class="current nav bd-sidenav"> |
| 378 |
<li class="toctree-l1"><a class="reference internal" href="windows.html">2.1. Windows</a></li> |
| 379 |
<li class="toctree-l1"><a class="reference internal" href="mac_os_x.html">2.2. macOS</a></li> |
| 380 |
<li class="toctree-l1"><a class="reference internal" href="debian.html">2.3. Debian GNU/Linux</a></li> |
| 381 |
<li class="toctree-l1"><a class="reference internal" href="ubuntu.html">2.4. Ubuntu</a></li> |
| 382 |
<li class="toctree-l1"><a class="reference internal" href="almalinux.html">2.5. AlmaLinux</a></li> |
| 383 |
<li class="toctree-l1"><a class="reference internal" href="amazon_linux.html">2.6. Amazon Linux</a></li> |
| 384 |
<li class="toctree-l1"><a class="reference internal" href="docker.html">2.7. Docker</a></li> |
| 385 |
<li class="toctree-l1 current active"><a class="current reference internal" href="#">2.8. その他: CMakeを使ってビルド</a></li> |
| 386 |
</ul> |
| 387 |
</div> |
| 388 |
</nav></div> |
| 389 |
</div> |
| 390 |
|
| 391 |
|
| 392 |
<div class="sidebar-primary-items__end sidebar-primary__section"> |
| 393 |
<div class="sidebar-primary-item"> |
| 394 |
<div id="ethical-ad-placement" |
| 395 |
class="flat" |
| 396 |
data-ea-publisher="readthedocs" |
| 397 |
data-ea-type="readthedocs-sidebar" |
| 398 |
data-ea-manual="true"> |
| 399 |
</div></div> |
| 400 |
</div> |
| 401 |
|
| 402 |
|
| 403 |
</div> |
| 404 |
|
| 405 |
<main id="main-content" class="bd-main" role="main"> |
| 406 |
|
| 407 |
|
| 408 |
<div class="bd-content"> |
| 409 |
<div class="bd-article-container"> |
| 410 |
|
| 411 |
<div class="bd-header-article d-print-none"> |
| 412 |
<div class="header-article-items header-article__inner"> |
| 413 |
|
| 414 |
<div class="header-article-items__start"> |
| 415 |
|
| 416 |
<div class="header-article-item"> |
| 417 |
|
| 418 |
<nav aria-label="パンくずリスト" class="d-print-none"> |
| 419 |
<ul class="bd-breadcrumbs"> |
| 420 |
|
| 421 |
<li class="breadcrumb-item breadcrumb-home"> |
| 422 |
<a href="../index.html" class="nav-link" aria-label="ホーム"> |
| 423 |
<i class="fa-solid fa-home"></i> |
| 424 |
</a> |
| 425 |
</li> |
| 426 |
|
| 427 |
<li class="breadcrumb-item"><a href="../install.html" class="nav-link"><span class="section-number">2. </span>インストール</a></li> |
| 428 |
|
| 429 |
<li class="breadcrumb-item active" aria-current="page"><span class="ellipsis"><span class="section-number">2.8. </span>その他: CMakeを使ってビルド</span></li> |
| 430 |
</ul> |
| 431 |
</nav> |
| 432 |
</div> |
| 433 |
|
| 434 |
</div> |
| 435 |
|
| 436 |
|
| 437 |
</div> |
| 438 |
</div> |
| 439 |
|
| 440 |
|
| 441 |
|
| 442 |
|
| 443 |
<div id="searchbox"></div> |
| 444 |
<article class="bd-article"> |
| 445 |
|
| 446 |
<section class="tex2jax_ignore mathjax_ignore" id="others-build-with-cmake"> |
| 447 |
<h1><span class="section-number">2.8. </span>その他: CMakeを使ってビルド<a class="headerlink" href="#others-build-with-cmake" title="Link to this heading">#</a></h1> |
| 448 |
<p>このドキュメントはCMakeを使ってソースコードからGroongaをビルドする方法を説明します。</p> |
| 449 |
<section id="install-depended-software"> |
| 450 |
<h2><span class="section-number">2.8.1. </span>必要なソフトウェアのインストール<a class="headerlink" href="#install-depended-software" title="Link to this heading">#</a></h2> |
| 451 |
<p>以下は、GNU/Linux、UNIX、Windows向けの必要なソフトウェアの一覧です。</p> |
| 452 |
<section id="gnu-linux-or-unix"> |
| 453 |
<h3><span class="section-number">2.8.1.1. </span>GNU/LinuxまたはUNIX<a class="headerlink" href="#gnu-linux-or-unix" title="Link to this heading">#</a></h3> |
| 454 |
<p>ソースコードに含まれる<code class="docutils literal notranslate"><span class="pre">setup.sh</span></code>を実行してください。トップディレクトリーにあります。</p> |
| 455 |
<p>コマンド実行例</p> |
| 456 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>groonga-*/setup.sh |
| 457 |
</pre></div> |
| 458 |
</div> |
| 459 |
<p><code class="docutils literal notranslate"><span class="pre">setup.sh</span></code>はDebian GNU/Linux、Ubuntu、AlmaLinux、Amazon Linux 2023をサポートしています。</p> |
| 460 |
<section id="macos"> |
| 461 |
<h4><span class="section-number">2.8.1.1.1. </span>macOS<a class="headerlink" href="#macos" title="Link to this heading">#</a></h4> |
| 462 |
<p><a class="reference external" href="https://developer.apple.com/xcode/">Xcode</a>をインストールしてください。</p> |
| 463 |
<p>ソースコードに含まれる<code class="docutils literal notranslate"><span class="pre">setup.sh</span></code>を実行してください。トップディレクトリーにあります。</p> |
| 464 |
<p>コマンド実行例</p> |
| 465 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>groonga-*/setup.sh |
| 466 |
</pre></div> |
| 467 |
</div> |
| 468 |
</section> |
| 469 |
</section> |
| 470 |
<section id="windows"> |
| 471 |
<h3><span class="section-number">2.8.1.2. </span>Windows<a class="headerlink" href="#windows" title="Link to this heading">#</a></h3> |
| 472 |
<p>次のソフトウェアをインストールします。</p> |
| 473 |
<ul class="simple"> |
| 474 |
<li><p><a class="reference external" href="https://visualstudio.microsoft.com/ja/vs/community/">Microsoft Visual Studio Community</a></p></li> |
| 475 |
<li><p><a class="reference external" href="http://www.cmake.org/">CMake</a></p></li> |
| 476 |
</ul> |
| 477 |
</section> |
| 478 |
</section> |
| 479 |
<section id="download-source"> |
| 480 |
<h2><span class="section-number">2.8.2. </span>ソースコードのダウンロード<a class="headerlink" href="#download-source" title="Link to this heading">#</a></h2> |
| 481 |
<p>最新のソースアーカイブをpackages.groonga.orgからダウンロードできます: <a class="reference external" href="https://packages.groonga.org/source/groonga/groonga-latest.tar.gz">https://packages.groonga.org/source/groonga/groonga-latest.tar.gz</a></p> |
| 482 |
<section id="id1"> |
| 483 |
<h3><span class="section-number">2.8.2.1. </span>GNU/LinuxまたはUNIX<a class="headerlink" href="#id1" title="Link to this heading">#</a></h3> |
| 484 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>wget<span class="w"> </span>https://packages.groonga.org/source/groonga/groonga-latest.tar.gz |
| 485 |
<span class="gp">$ </span>tar<span class="w"> </span>xvf<span class="w"> </span>groonga-latest.tar.gz |
| 486 |
</pre></div> |
| 487 |
</div> |
| 488 |
</section> |
| 489 |
<section id="id2"> |
| 490 |
<h3><span class="section-number">2.8.2.2. </span>Windows<a class="headerlink" href="#id2" title="Link to this heading">#</a></h3> |
| 491 |
<p>最新のzip形式のソースアーカイブをpackages.groonga.orgからダウンロードできます: <a class="reference external" href="https://packages.groonga.org/source/groonga/groonga-latest.zip">https://packages.groonga.org/source/groonga/groonga-latest.zip</a></p> |
| 492 |
<p>その後、アーカイブを展開します。</p> |
| 493 |
</section> |
| 494 |
</section> |
| 495 |
<section id="run-cmake"> |
| 496 |
<span id="cmake-run"></span><h2><span class="section-number">2.8.3. </span><code class="docutils literal notranslate"><span class="pre">cmake</span></code> を実行<a class="headerlink" href="#run-cmake" title="Link to this heading">#</a></h2> |
| 497 |
<p>ビルド環境にあった<code class="docutils literal notranslate"><span class="pre">build.ninja</span></code>のようなビルドファイルを生成する必要があります。</p> |
| 498 |
<p><code class="docutils literal notranslate"><span class="pre">cmake</span></code> へオプションを渡してビルドパラメーターをカスタマイズできます。</p> |
| 499 |
<p>GNU/Linux or UNIXでのコマンド例</p> |
| 500 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>cmake<span class="w"> </span>-S<span class="w"> </span><Groonga<span class="w"> </span><span class="nb">source</span><span class="w"> </span>code<span class="w"> </span>directory<span class="w"> </span>path><span class="w"> </span>-B<span class="w"> </span><Build<span class="w"> </span>directory<span class="w"> </span>path><span class="w"> </span>--preset<span class="o">=</span>release-maximum |
| 501 |
</pre></div> |
| 502 |
</div> |
| 503 |
<ul class="simple"> |
| 504 |
<li><p><code class="docutils literal notranslate"><span class="pre">-S</span></code>オプション</p> |
| 505 |
<ul> |
| 506 |
<li><p>Groongaのソースコードディレクトリを指定します</p></li> |
| 507 |
<li><p>ダウンロードして展開したディレクトリを指定します</p></li> |
| 508 |
</ul> |
| 509 |
</li> |
| 510 |
<li><p><code class="docutils literal notranslate"><span class="pre">-B</span></code>オプション</p> |
| 511 |
<ul> |
| 512 |
<li><p>ビルドディレクトリを指定します。</p></li> |
| 513 |
<li><p>Groongaのソースコードディテクトリの外部にビルド専用のディレクトリを指定します</p></li> |
| 514 |
</ul> |
| 515 |
</li> |
| 516 |
</ul> |
| 517 |
<section id="cmake-presets"> |
| 518 |
<span id="id3"></span><h3><span class="section-number">2.8.3.1. </span>CMake プリセット<a class="headerlink" href="#cmake-presets" title="Link to this heading">#</a></h3> |
| 519 |
<p>CMakeの3.21.0以降を使うと、ビルド用の設定をまとめたプリセットが利用できます。よく使われるCMakeのオプションの組み合わせが用意してあるので、基本的にはそれらのプリセットをご利用ください。CMakeオプションは個別に設定したい場合にご利用ください。利用できるプリセットは <code class="docutils literal notranslate"><span class="pre">cmake</span> <span class="pre">--list-presets</span></code> で確認できます。</p> |
| 520 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>cmake<span class="w"> </span>--list-presets |
| 521 |
<span class="go">Available configure presets:</span> |
| 522 |
|
| 523 |
<span class="go"> "debug-default" - Optional features may not be enabled (debug build)</span> |
| 524 |
<span class="go"> "release-default" - Optional features may not be enabled (release build)</span> |
| 525 |
<span class="go"> "release-with-debug-info-default" - Optional features may not be enabled (release build with debug info)</span> |
| 526 |
<span class="go"> "debug-maximum" - Enable all features (debug build)</span> |
| 527 |
<span class="go"> "release-maximum" - Enable all features (release build)</span> |
| 528 |
<span class="go"> "release-with-debug-info-maximum" - Enable all features (release build with debug info)</span> |
| 529 |
<span class="go"> "doc" - For documentation</span> |
| 530 |
<span class="go"> "memory-debug" - For memory debug</span> |
| 531 |
<span class="go"> "benchmark" - For benchmark</span> |
| 532 |
</pre></div> |
| 533 |
</div> |
| 534 |
</section> |
| 535 |
<section id="cmake-options"> |
| 536 |
<span id="id4"></span><h3><span class="section-number">2.8.3.2. </span>CMake オプション<a class="headerlink" href="#cmake-options" title="Link to this heading">#</a></h3> |
| 537 |
<p>このセクションはCMakeの重要なオプションについて記載しています。</p> |
| 538 |
<section id="g-generator"> |
| 539 |
<h4><span class="section-number">2.8.3.2.1. </span><code class="docutils literal notranslate"><span class="pre">-G</span> <span class="pre">GENERATOR</span></code><a class="headerlink" href="#g-generator" title="Link to this heading">#</a></h4> |
| 540 |
<p>ジェネレータを指定します。</p> |
| 541 |
<p>デフォルトはシステムよって異なります。</p> |
| 542 |
<p><code class="docutils literal notranslate"><span class="pre">cmake</span> <span class="pre">--help</span></code> でデフォルトのジェネレータと、利用可能なジェネレータを確認することができます。</p> |
| 543 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>cmake<span class="w"> </span>--help |
| 544 |
<span class="go">...</span> |
| 545 |
<span class="go">The following generators are available on this platform (* marks default):</span> |
| 546 |
<span class="go"> Green Hills MULTI = Generates Green Hills MULTI files</span> |
| 547 |
<span class="go"> (experimental, work-in-progress).</span> |
| 548 |
<span class="go">* Unix Makefiles = Generates standard UNIX makefiles.</span> |
| 549 |
<span class="go"> Ninja = Generates build.ninja files.</span> |
| 550 |
<span class="go"> Ninja Multi-Config = Generates build-<Config>.ninja files.</span> |
| 551 |
<span class="go"> Watcom WMake = Generates Watcom WMake makefiles.</span> |
| 552 |
<span class="go"> CodeBlocks - Ninja = Generates CodeBlocks project files.</span> |
| 553 |
<span class="go"> CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.</span> |
| 554 |
<span class="go"> CodeLite - Ninja = Generates CodeLite project files.</span> |
| 555 |
<span class="go"> CodeLite - Unix Makefiles = Generates CodeLite project files.</span> |
| 556 |
<span class="go"> Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.</span> |
| 557 |
<span class="go"> Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.</span> |
| 558 |
<span class="go"> Kate - Ninja = Generates Kate project files.</span> |
| 559 |
<span class="go"> Kate - Unix Makefiles = Generates Kate project files.</span> |
| 560 |
<span class="go"> Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.</span> |
| 561 |
<span class="go"> Sublime Text 2 - Unix Makefiles</span> |
| 562 |
</pre></div> |
| 563 |
</div> |
| 564 |
<p>以下はGNU/LinuxまたはUNIXで <code class="docutils literal notranslate"><span class="pre">Unix</span> <span class="pre">Makefiles</span></code> をジェネレータに指定する例です。</p> |
| 565 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>cmake<span class="w"> </span>.<span class="w"> </span>-G<span class="w"> </span><span class="s2">"Unix Makefiles"</span> |
| 566 |
</pre></div> |
| 567 |
</div> |
| 568 |
<p>以下はWindowsで <code class="docutils literal notranslate"><span class="pre">Visual</span> <span class="pre">Studio</span> <span class="pre">17</span> <span class="pre">2022</span> <span class="pre">x64</span></code> をジェネレータに指定する例です。<code class="docutils literal notranslate"><span class="pre">-A</span></code> オプションでプラットフォーム(アーキテクチャ)を指定できます。</p> |
| 569 |
<div class="highlight-pwsh-session notranslate"><div class="highlight"><pre><span></span><span class="gp">> </span><span class="n">cmake</span> <span class="p">.</span> <span class="n">-G</span> <span class="s2">"Visual Studio 17 2022"</span> <span class="n">-A</span> <span class="n">x64</span> |
| 570 |
</pre></div> |
| 571 |
</div> |
| 572 |
</section> |
| 573 |
<section id="dcmake-install-prefix"> |
| 574 |
<h4><span class="section-number">2.8.3.2.2. </span><code class="docutils literal notranslate"><span class="pre">-DCMAKE_INSTALL_PREFIX</span></code><a class="headerlink" href="#dcmake-install-prefix" title="Link to this heading">#</a></h4> |
| 575 |
<p>Groongaのインストール先のディレクトリ/フォルダを指定します。</p> |
| 576 |
<p>デフォルトはシステムにより異なります。例えば、 <code class="docutils literal notranslate"><span class="pre">/usr/local</span></code> や <code class="docutils literal notranslate"><span class="pre">C:/Program</span> <span class="pre">Files/groonga</span></code> です。</p> |
| 577 |
<p>以下はGNU/LinuxまたはUNIXで <code class="docutils literal notranslate"><span class="pre">/tmp/local/</span></code> をインストール先として指定する例です。</p> |
| 578 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>cmake<span class="w"> </span>.<span class="w"> </span>-DCMAKE_INSTALL_PREFIX<span class="o">=</span><span class="s2">"/tmp/local/"</span> |
| 579 |
</pre></div> |
| 580 |
</div> |
| 581 |
<p>以下はWindowsで <code class="docutils literal notranslate"><span class="pre">C:\Groonga</span></code> をインストール先として指定する例です。</p> |
| 582 |
<div class="highlight-pwsh-session notranslate"><div class="highlight"><pre><span></span><span class="gp">> </span><span class="n">cmake</span> <span class="p">.</span> <span class="n">-DCMAKE_INSTALL_PREFIX</span><span class="p">=</span><span class="s2">"C:\Groonga"</span> |
| 583 |
</pre></div> |
| 584 |
</div> |
| 585 |
</section> |
| 586 |
<section id="dgrn-with-mruby"> |
| 587 |
<h4><span class="section-number">2.8.3.2.3. </span><code class="docutils literal notranslate"><span class="pre">-DGRN_WITH_MRUBY</span></code><a class="headerlink" href="#dgrn-with-mruby" title="Link to this heading">#</a></h4> |
| 588 |
<p>mrubyサポートを有効化します。</p> |
| 589 |
<p>mrubyサポートを有効にすることで <a class="reference internal" href="../reference/sharding.html"><span class="doc">シャーディング</span></a> プラグインと <a class="reference internal" href="../reference/commands/ruby_eval.html"><span class="doc">ruby_eval</span></a> が使用可能になります。</p> |
| 590 |
<p>デフォルトは <code class="docutils literal notranslate"><span class="pre">OFF</span></code> です。</p> |
| 591 |
<p>mrubyサポートが有効な場合、Groongaは同梱しているmrubyをビルドします。そのため、mrubyをビルドするのに必要なライブラリをインストールする必要があります。詳細は <a class="reference external" href="https://github.com/mruby/mruby/blob/master/doc/guides/compile.md">mrubyのコンパイルガイド</a> を参照してください。</p> |
| 592 |
<p>以下はmrubyサポートを有効にする例です。</p> |
| 593 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>cmake<span class="w"> </span>.<span class="w"> </span>-DGRN_WITH_MRUBY<span class="o">=</span>ON |
| 594 |
</pre></div> |
| 595 |
</div> |
| 596 |
</section> |
| 597 |
<section id="dgrn-with-apache-arrow"> |
| 598 |
<h4><span class="section-number">2.8.3.2.4. </span><code class="docutils literal notranslate"><span class="pre">-DGRN_WITH_APACHE_ARROW</span></code><a class="headerlink" href="#dgrn-with-apache-arrow" title="Link to this heading">#</a></h4> |
| 599 |
<p>Apache Arrowサポートを有効化します。</p> |
| 600 |
<p>Apache Arrowサポートを有効化すると、Apache ArrowのIPC streaming formatが使えるだけでなく、 <a class="reference internal" href="../reference/commands/select.html#select-n-workers"><span class="std std-ref">n_workers</span></a> や <a class="reference internal" href="../reference/functions/query_parallel_or.html"><span class="doc">query_parallel_or</span></a> でマルチスレッドで処理できるようになります。</p> |
| 601 |
<p>デフォルトは <code class="docutils literal notranslate"><span class="pre">OFF</span></code> です。</p> |
| 602 |
<p>Apache Arrowは <a class="reference external" href="https://arrow.apache.org/install/">公式のドキュメントの手順</a> にしたがってインストールしてください。</p> |
| 603 |
<p>以下はApache Arrowサポートを有効にする例です。</p> |
| 604 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>cmake<span class="w"> </span>.<span class="w"> </span>-DGRN_WITH_APACHE_ARROW<span class="o">=</span>ON |
| 605 |
</pre></div> |
| 606 |
</div> |
| 607 |
<div class="admonition note"> |
| 608 |
<p class="admonition-title">注釈</p> |
| 609 |
<p>Apache Arrowを手動でインストールしている場合、 <a class="reference internal" href="#cmake-options-cmake-prefix-path"><span class="std std-ref">-DCMAKE_PREFIX_PATH=PATHS</span></a> オプションを指定してください。</p> |
| 610 |
</div> |
| 611 |
</section> |
| 612 |
<section id="dcmake-prefix-path-paths"> |
| 613 |
<span id="cmake-options-cmake-prefix-path"></span><h4><span class="section-number">2.8.3.2.5. </span><code class="docutils literal notranslate"><span class="pre">-DCMAKE_PREFIX_PATH=PATHS</span></code><a class="headerlink" href="#dcmake-prefix-path-paths" title="Link to this heading">#</a></h4> |
| 614 |
<p><code class="docutils literal notranslate"><span class="pre">.cmake</span></code> ファイルの検索パスを追加します。</p> |
| 615 |
<p>GNU/LinuxまたはUNIXでは <code class="docutils literal notranslate"><span class="pre">:</span></code> で、Windowsでは <code class="docutils literal notranslate"><span class="pre">;</span></code> 区切ることで複数のパスを指定できます。</p> |
| 616 |
<p>パッケージ管理システムを使用してインストールしたライブラリを使いたい場合は、 CMake のデフォルトの検索パスに <code class="docutils literal notranslate"><span class="pre">.cmake</span></code> ファイルが存在するためこのパラメータを指定する必要はありません。</p> |
| 617 |
<p><code class="docutils literal notranslate"><span class="pre">/usr</span></code>のようなシステム以外のディレクトリにインストールされたライブラリを使用する場合は、このパラメータでライブラリの <code class="docutils literal notranslate"><span class="pre">.cmake</span></code> ファイルパスを指定する必要があります。</p> |
| 618 |
<p>以下はGNU/LinuxまたはUNIXで <code class="docutils literal notranslate"><span class="pre">/tmp/arrow/cmake/arrowConfig.cmake</span></code> の <code class="docutils literal notranslate"><span class="pre">.cmake</span></code> ファイルを指定する例です。</p> |
| 619 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>cmake<span class="w"> </span>.<span class="w"> </span>-DCMAKE_PREFIX_PATH<span class="o">=</span><span class="s2">"/tmp/local"</span> |
| 620 |
</pre></div> |
| 621 |
</div> |
| 622 |
<p>以下はWindowsで <code class="docutils literal notranslate"><span class="pre">C:\arrow\lib\cmake\Arrow\ArrowConfig.cmake</span></code> の <code class="docutils literal notranslate"><span class="pre">.cmake</span></code> ファイルを指定する例です。</p> |
| 623 |
<div class="highlight-pwsh-session notranslate"><div class="highlight"><pre><span></span><span class="gp">> </span><span class="n">cmake</span> <span class="p">.</span> <span class="n">-DCMAKE_PREFIX_PATH</span><span class="p">=</span><span class="s2">"C:\arrow"</span> |
| 624 |
</pre></div> |
| 625 |
</div> |
| 626 |
</section> |
| 627 |
</section> |
| 628 |
</section> |
| 629 |
<section id="build-and-install-groonga"> |
| 630 |
<span id="cmake-build-and-install"></span><h2><span class="section-number">2.8.4. </span>ビルドおよびインストール<a class="headerlink" href="#build-and-install-groonga" title="Link to this heading">#</a></h2> |
| 631 |
<p>これで、Groongaをビルドできるようになりました。</p> |
| 632 |
<section id="id5"> |
| 633 |
<h3><span class="section-number">2.8.4.1. </span>GNU/LinuxまたはUNIX<a class="headerlink" href="#id5" title="Link to this heading">#</a></h3> |
| 634 |
<p>以下はGroongaをビルド、インストールするコマンドラインです。</p> |
| 635 |
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>cmake<span class="w"> </span>--build<span class="w"> </span><Build<span class="w"> </span>directory<span class="w"> </span>path> |
| 636 |
<span class="gp">$ </span>sudo<span class="w"> </span>cmake<span class="w"> </span>--install<span class="w"> </span><Build<span class="w"> </span>directory<span class="w"> </span>path> |
| 637 |
</pre></div> |
| 638 |
</div> |
| 639 |
</section> |
| 640 |
<section id="id6"> |
| 641 |
<h3><span class="section-number">2.8.4.2. </span>Windows<a class="headerlink" href="#id6" title="Link to this heading">#</a></h3> |
| 642 |
<p>以下は <code class="docutils literal notranslate"><span class="pre">-G</span> <span class="pre">"Visual</span> <span class="pre">Studio</span> <span class="pre">17</span> <span class="pre">2022"</span></code> のようにジェネレーターでVisual Studioを指定したときの手順です。</p> |
| 643 |
<p>Visual Studioか <code class="docutils literal notranslate"><span class="pre">cmake</span> <span class="pre">--build</span></code> を使用できます。</p> |
| 644 |
<p>以下は <code class="docutils literal notranslate"><span class="pre">cmake</span> <span class="pre">--build</span></code> を使ってGroongaをビルド、インストールするコマンドラインです。</p> |
| 645 |
<div class="highlight-pwsh-session notranslate"><div class="highlight"><pre><span></span><span class="gp">> </span><span class="n">cmake</span> <span class="p">-</span><span class="n">-build</span> <span class="p">.</span> <span class="p">-</span><span class="n">-config</span> <span class="n">Release</span> |
| 646 |
<span class="gp">> </span><span class="n">cmake</span> <span class="p">-</span><span class="n">-build</span> <span class="p">.</span> <span class="p">-</span><span class="n">-config</span> <span class="n">Release</span> <span class="p">-</span><span class="n">-target</span> <span class="n">Install</span> |
| 647 |
</pre></div> |
| 648 |
</div> |
| 649 |
<p>デバッグをする場合は、 <code class="docutils literal notranslate"><span class="pre">--config</span> <span class="pre">Release</span></code> の代わりに <code class="docutils literal notranslate"><span class="pre">--config</span> <span class="pre">Debug</span></code> を指定してください。</p> |
| 650 |
</section> |
| 651 |
</section> |
| 652 |
</section> |
| 653 |
|
| 654 |
|
| 655 |
</article> |
| 656 |
|
| 657 |
|
| 658 |
|
| 659 |
|
| 660 |
|
| 661 |
<footer class="prev-next-footer d-print-none"> |
| 662 |
|
| 663 |
<div class="prev-next-area"> |
| 664 |
<a class="left-prev" |
| 665 |
href="docker.html" |
| 666 |
title="前のページ"> |
| 667 |
<i class="fa-solid fa-angle-left"></i> |
| 668 |
<div class="prev-next-info"> |
| 669 |
<p class="prev-next-subtitle">前へ</p> |
| 670 |
<p class="prev-next-title"><span class="section-number">2.7. </span>Docker</p> |
| 671 |
</div> |
| 672 |
</a> |
| 673 |
<a class="right-next" |
| 674 |
href="../community.html" |
| 675 |
title="次ページ"> |
| 676 |
<div class="prev-next-info"> |
| 677 |
<p class="prev-next-subtitle">次へ</p> |
| 678 |
<p class="prev-next-title"><span class="section-number">3. </span>コミュニティ</p> |
| 679 |
</div> |
| 680 |
<i class="fa-solid fa-angle-right"></i> |
| 681 |
</a> |
| 682 |
</div> |
| 683 |
</footer> |
| 684 |
|
| 685 |
</div> |
| 686 |
|
| 687 |
|
| 688 |
|
| 689 |
<dialog id="pst-secondary-sidebar-modal"></dialog> |
| 690 |
<div id="pst-secondary-sidebar" class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner"> |
| 691 |
|
| 692 |
|
| 693 |
<div class="sidebar-secondary-item"> |
| 694 |
<div |
| 695 |
id="pst-page-navigation-heading-2" |
| 696 |
class="page-toc tocsection onthispage"> |
| 697 |
<i class="fa-solid fa-list"></i> このページでは |
| 698 |
</div> |
| 699 |
<nav id="pst-page-toc-nav" class="page-toc" aria-labelledby="pst-page-navigation-heading-2"> |
| 700 |
<ul class="pst-show_toc_level nav section-nav flex-column"> |
| 701 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#install-depended-software">2.8.1. 必要なソフトウェアのインストール</a><ul class="nav section-nav flex-column"> |
| 702 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#gnu-linux-or-unix">2.8.1.1. GNU/LinuxまたはUNIX</a><ul class="nav section-nav flex-column"> |
| 703 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#macos">2.8.1.1.1. macOS</a></li> |
| 704 |
</ul> |
| 705 |
</li> |
| 706 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#windows">2.8.1.2. Windows</a></li> |
| 707 |
</ul> |
| 708 |
</li> |
| 709 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#download-source">2.8.2. ソースコードのダウンロード</a><ul class="nav section-nav flex-column"> |
| 710 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#id1">2.8.2.1. GNU/LinuxまたはUNIX</a></li> |
| 711 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#id2">2.8.2.2. Windows</a></li> |
| 712 |
</ul> |
| 713 |
</li> |
| 714 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#run-cmake">2.8.3. <code class="docutils literal notranslate"><span class="pre">cmake</span></code> を実行</a><ul class="nav section-nav flex-column"> |
| 715 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#cmake-presets">2.8.3.1. CMake プリセット</a></li> |
| 716 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#cmake-options">2.8.3.2. CMake オプション</a><ul class="nav section-nav flex-column"> |
| 717 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#g-generator">2.8.3.2.1. <code class="docutils literal notranslate"><span class="pre">-G</span> <span class="pre">GENERATOR</span></code></a></li> |
| 718 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#dcmake-install-prefix">2.8.3.2.2. <code class="docutils literal notranslate"><span class="pre">-DCMAKE_INSTALL_PREFIX</span></code></a></li> |
| 719 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#dgrn-with-mruby">2.8.3.2.3. <code class="docutils literal notranslate"><span class="pre">-DGRN_WITH_MRUBY</span></code></a></li> |
| 720 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#dgrn-with-apache-arrow">2.8.3.2.4. <code class="docutils literal notranslate"><span class="pre">-DGRN_WITH_APACHE_ARROW</span></code></a></li> |
| 721 |
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#dcmake-prefix-path-paths">2.8.3.2.5. <code class="docutils literal notranslate"><span class="pre">-DCMAKE_PREFIX_PATH=PATHS</span></code></a></li> |
| 722 |
</ul> |
| 723 |
</li> |
| 724 |
</ul> |
| 725 |
</li> |
| 726 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#build-and-install-groonga">2.8.4. ビルドおよびインストール</a><ul class="nav section-nav flex-column"> |
| 727 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#id5">2.8.4.1. GNU/LinuxまたはUNIX</a></li> |
| 728 |
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#id6">2.8.4.2. Windows</a></li> |
| 729 |
</ul> |
| 730 |
</li> |
| 731 |
</ul> |
| 732 |
</nav></div> |
| 733 |
|
| 734 |
</div></div> |
| 735 |
|
| 736 |
|
| 737 |
</div> |
| 738 |
<footer class="bd-footer-content"> |
| 739 |
|
| 740 |
</footer> |
| 741 |
|
| 742 |
</main> |
| 743 |
</div> |
| 744 |
</div> |
| 745 |
|
| 746 |
|
| 747 |
<script defer src="../_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9"></script> |
| 748 |
<script defer src="../_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9"></script> |
| 749 |
|
| 750 |
<footer class="bd-footer"> |
| 751 |
<div class="bd-footer__inner bd-page-width"> |
| 752 |
|
| 753 |
<div class="footer-items__start"> |
| 754 |
|
| 755 |
<div class="footer-item"> |
| 756 |
|
| 757 |
<p class="copyright"> |
| 758 |
|
| 759 |
© Copyright 2009-2026 Groonga Project. |
| 760 |
<br/> |
| 761 |
|
| 762 |
</p> |
| 763 |
</div> |
| 764 |
|
| 765 |
</div> |
| 766 |
|
| 767 |
|
| 768 |
|
| 769 |
<div class="footer-items__end"> |
| 770 |
|
| 771 |
<div class="footer-item"> |
| 772 |
<p class="theme-version"> |
| 773 |
|
| 774 |
<a href="https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html">PyData Sphinx Theme</a> 0.20.0 で構築されています。 |
| 775 |
</p></div> |
| 776 |
|
| 777 |
</div> |
| 778 |
|
| 779 |
</div> |
| 780 |
|
| 781 |
</footer> |
| 782 |
</body> |
| 783 |
</html> |