{"id":2006,"date":"2020-02-11T21:26:40","date_gmt":"2020-02-11T12:26:40","guid":{"rendered":"https:\/\/www.kdel.org\/wp\/?p=2006"},"modified":"2020-02-11T22:21:41","modified_gmt":"2020-02-11T13:21:41","slug":"ubuntu-16-04%e3%81%b8%e3%81%aerefbox%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%ef%bc%88libmongocxx%e7%b7%a8%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.kdel.org\/wp\/?p=2006","title":{"rendered":"Ubuntu 16.04\u3078\u306erefBox\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08libmongocxx\u7de8\uff09"},"content":{"rendered":"<p><a href=\"https:\/\/www.kdel.org\/wp\/?p=1981\">RoboCup Logistics League\u306e\u305f\u3081\u306eRobotino3\u306e\u518d\u69cb\u7bc9<\/a>\u3092\u9032\u3081\u3066\u3044\u305f\u3089\uff0crefBox \u306emake\u3067\u30a8\u30e9\u30fc\u304c\u3067\u307e\u3057\u305f\u2026\uff0e\u3068\u308a\u3042\u3048\u305a\uff0c\u305d\u306e\u90e8\u5206\u3078\u306e\u5bfe\u51e6\u30e1\u30e2\uff0e<\/p>\n<p>\u4eca\u307e\u3067mongodb \u306a\u3057\u3067\u9032\u3081\u3089\u308c\u3066\u3044\u305f\u306f\u305a\u306a\u306e\u3067\uff0c\u305f\u3076\u3093\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3067\u5bfe\u5fdc\u3067\u304d\u308b\u306e\u306f\u305a\u3000\u3000\u3068\u3044\u3046\u65b9\u91dd\u3067\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\uff0e<\/p>\n<p>\u307e\u305a\uff0c\u6700\u521d\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u306e\u306frcll-refbox\/src\/refbox\/refbox.h \u3067\u3059\u304c\uff0c<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n#ifdef HAVE_MONGODB\r\ninclude &lt;mongocxx\/database.hpp&gt;\r\ninclude &lt;mongocxx\/client.hpp&gt;\r\nclass MongoDBLogProtobuf;\r\n#endif\r\n<\/pre>\n<p>HAVE_MONGODB \u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u306a\u3044\u306f\u305a\u306a\u306e\u306b\uff0c#ifdef \u304c\u53cd\u5fdc\u3057\u3066\u3044\u308b\u6a21\u69d8\uff0e<br \/>\n\u3053\u308c\u306f\uff0cmongodb.mk \u3067mongoDB \u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306e\u66f8\u304d\u65b9\u304c\u60aa\u3044\u611f\u3058\u3067\u3059\uff0e<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nifneq ($(PKGCONFIG),)\r\n        ifeq ($(HAVE_CPP11),1)\r\n    HAVE_MONGODB = $(if $(shell $(PKGCONFIG) --exists --atleast-version=3 'libmongocxx'; echo $${?\/1\/}),1,0)\r\n    CFLAGS_MONGODB = $(shell $(PKGCONFIG) --cflags 'libmongocxx') -DHAVE_MONGODB\r\n    LDFLAGS_MONGODB = $(shell $(PKGCONFIG) --libs 'libmongocxx')\r\n  endif\r\nendif\r\n<\/pre>\n<p>\u306a\u3093\u304b\u30a4\u30f3\u30c7\u30f3\u30c8\u304c\u304a\u304b\u3057\u3044\u6c17\u304c\u3057\u307e\u3059\u304c\uff0c\u305d\u308c\u306f\u304a\u3044\u3066\u304a\u3044\u3066\uff0c<br \/>\nHAVE_MONGODB \u306e\u7d50\u679c\u306e\u6709\u7121\u306b\u304b\u304b\u308f\u3089\u305a\uff0cCFLAGS_MONGODB\u3068LDFLAGS_MONGODB \u3092\u7528\u610f\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u3067\uff0cCFLAGS \u306b -DHAVE_MONGODB \u304c\u8ffd\u52a0\u3055\u308c\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u6a21\u69d8\uff0e<br \/>\n\u3068\u308a\u3042\u3048\u305a\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6761\u4ef6\u5206\u5c90\u3092\u8ffd\u52a0\u3057\u3066\uff0c\u56de\u907f\u3057\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nifneq ($(PKGCONFIG),)\r\n    ifeq ($(HAVE_CPP11),1)\r\n        HAVE_MONGODB = $(if $(shell $(PKGCONFIG) --exists --atleast-version=3 'libmongocxx'; echo $${?\/1\/}),1,0)\r\n        ifeq ($(HAVE_MONGODB),1)\r\n            CFLAGS_MONGODB = $(shell $(PKGCONFIG) --cflags 'libmongocxx') -DHAVE_MONGODB\r\n            LDFLAGS_MONGODB = $(shell $(PKGCONFIG) --libs 'libmongocxx')\r\n    endif\r\n  endif\r\nendif\r\n<\/pre>\n<p>\u6b21\u306b\uff0crcll-refbox\/src\/refbox\/main.cpp \u306e40\u884c\u76ee\u3067\u30a8\u30e9\u30fc\u304c\u3067\u304d\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">#include &lt;mongocxx\/instance.hpp&gt;<\/pre>\n<p>\u4f55\u3082\u30c1\u30a7\u30c3\u30af\u305b\u305a\u306binclude \u3057\u3061\u3083\u3063\u3066\u307e\u3059\u304c\u306a\uff0e<br \/>\n\u3053\u3053\u306f\uff0c#ifdef \u3092\u5165\u308c\u308b\u3079\u304d\u3067\u3059\u306d\uff0e<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n#ifdef HAVE_MONGODB\r\n#include &lt;mongocxx\/instance.hpp&gt;\r\n#endif\r\n<\/pre>\n<p>\u3088\u3057\uff0c\u3053\u308c\u3067make \u304c\u901a\u308a\u307e\u3057\u305f\uff0e<br \/>\n\u3084\u3063\u305f\u306d\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RoboCup Logistics League\u306e\u305f\u3081\u306eRobotino3\u306e\u518d\u69cb &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.kdel.org\/wp\/?p=2006\"> <span class=\"screen-reader-text\">Ubuntu 16.04\u3078\u306erefBox\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08libmongocxx\u7de8\uff09<\/span> \u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[3,2,9],"tags":[],"class_list":["post-2006","post","type-post","status-publish","format-standard","hentry","category-logistics-league","category-robocup","category-robotino-3"],"_links":{"self":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2006"}],"version-history":[{"count":7,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2006\/revisions"}],"predecessor-version":[{"id":2015,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2006\/revisions\/2015"}],"wp:attachment":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}