Title: How are the submodules set up after cloning? · mlcpp/Matrix · Discussion #69 · GitHub
Open Graph Title: How are the submodules set up after cloning? · mlcpp/Matrix · Discussion #69
X Title: How are the submodules set up after cloning? · mlcpp/Matrix · Discussion #69
Description: How are the submodules set up after cloning?
Open Graph Description: I'm currently working through the Development/Linux section of the readme trying to build everything and I get the following error when running make in my build directory: ~/dev/Matrix/build$ make ...
X Description: I'm currently working through the Development/Linux section of the readme trying to build everything and I get the following error when running make in my build directory: ~/dev/Matrix/build$ m...
Opengraph URL: https://github.com/mlcpp/Matrix/discussions/69
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"How are the submodules set up after cloning?","text":"\u003cp dir=\"auto\"\u003eI'm currently working through the Development/Linux section of the readme trying to build everything and I get the following error when running \u003ccode class=\"notranslate\"\u003emake\u003c/code\u003e in my build directory:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"~/dev/Matrix/build$ make\n[ 2%] Built target unary_minus\n[ 3%] Built target string_to_double\n[ 5%] Built target sqrt\n[ 7%] Built target reciprocal\n[ 9%] Built target power\n[ 11%] Built target determinant\n[ 13%] Built target slice_select\n[ 14%] Built target inverse\n[ 16%] Built target transpose\n[ 18%] Built target indexing\n[ 20%] Built target argmin_argmax\n[ 21%] Built target min_max\n[ 23%] Built target abs\n[ 24%] Built target concatenate\n[ 26%] Built target addition\n[ 28%] Built target log\n[ 29%] Built target element_wise_multiplication\n[ 31%] Built target exp\n[ 33%] Built target matrix_calc\n[ 34%] Built target slice_matrix\n[ 36%] Built target genfromtxt\n[ 37%] Built target get_mat\n[ 39%] Built target initialize\n[ 41%] Built target view_matrix\n[ 43%] Built target delete_\n[ 45%] Built target matrix_multiplication\n[ 46%] Building CXX object benchmarks/CMakeFiles/BM_unary_minus.dir/BM_unary_minus.cpp.o\n/home/anthony/dev/Matrix/benchmarks/BM_unary_minus.cpp:2:10: fatal error: benchmark/benchmark.h: No such file or directory\n #include \u0026lt;benchmark/benchmark.h\u0026gt;\n ^~~~~~~~~~~~~~~~~~~~~~~\ncompilation terminated.\nbenchmarks/CMakeFiles/BM_unary_minus.dir/build.make:81: recipe for target 'benchmarks/CMakeFiles/BM_unary_minus.dir/BM_unary_minus.cpp.o' failed\nmake[2]: *** [benchmarks/CMakeFiles/BM_unary_minus.dir/BM_unary_minus.cpp.o] Error 1\nCMakeFiles/Makefile2:1062: recipe for target 'benchmarks/CMakeFiles/BM_unary_minus.dir/all' failed\nmake[1]: *** [benchmarks/CMakeFiles/BM_unary_minus.dir/all] Error 2\nMakefile:102: recipe for target 'all' failed\nmake: *** [all] Error 2\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode class=\"notranslate\"\u003e~/dev/Matrix/build$ make\n[ 2%] Built target unary_minus\n[ 3%] Built target string_to_double\n[ 5%] Built target sqrt\n[ 7%] Built target reciprocal\n[ 9%] Built target power\n[ 11%] Built target determinant\n[ 13%] Built target slice_select\n[ 14%] Built target inverse\n[ 16%] Built target transpose\n[ 18%] Built target indexing\n[ 20%] Built target argmin_argmax\n[ 21%] Built target min_max\n[ 23%] Built target abs\n[ 24%] Built target concatenate\n[ 26%] Built target addition\n[ 28%] Built target log\n[ 29%] Built target element_wise_multiplication\n[ 31%] Built target exp\n[ 33%] Built target matrix_calc\n[ 34%] Built target slice_matrix\n[ 36%] Built target genfromtxt\n[ 37%] Built target get_mat\n[ 39%] Built target initialize\n[ 41%] Built target view_matrix\n[ 43%] Built target delete_\n[ 45%] Built target matrix_multiplication\n[ 46%] Building CXX object benchmarks/CMakeFiles/BM_unary_minus.dir/BM_unary_minus.cpp.o\n/home/anthony/dev/Matrix/benchmarks/BM_unary_minus.cpp:2:10: fatal error: benchmark/benchmark.h: No such file or directory\n #include \u0026lt;benchmark/benchmark.h\u0026gt;\n ^~~~~~~~~~~~~~~~~~~~~~~\ncompilation terminated.\nbenchmarks/CMakeFiles/BM_unary_minus.dir/build.make:81: recipe for target 'benchmarks/CMakeFiles/BM_unary_minus.dir/BM_unary_minus.cpp.o' failed\nmake[2]: *** [benchmarks/CMakeFiles/BM_unary_minus.dir/BM_unary_minus.cpp.o] Error 1\nCMakeFiles/Makefile2:1062: recipe for target 'benchmarks/CMakeFiles/BM_unary_minus.dir/all' failed\nmake[1]: *** [benchmarks/CMakeFiles/BM_unary_minus.dir/all] Error 2\nMakefile:102: recipe for target 'all' failed\nmake: *** [all] Error 2\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eI'm not super familiar with git but my understanding is that \u003ccode class=\"notranslate\"\u003elib/\u003c/code\u003e contains some submodules that need to be initialized before building. Currently \u003ccode class=\"notranslate\"\u003elib/benchmark/\u003c/code\u003e and \u003ccode class=\"notranslate\"\u003elib/googletest/\u003c/code\u003e are empty directories for me so I'm wondering how to set this up considering there's no \u003ccode class=\"notranslate\"\u003e.gitsubmodule\u003c/code\u003e file anywhere.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThanks for the help! Let me know if there's a better place to post this.\u003c/p\u003e","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003eI'm not super familiar with git but my understanding is that lib/ contains some submodules that need to be initialized before building. Currently lib/benchmark/ and lib/googletest/ are empty directories for me so I'm wondering how to set this up considering there's no .gitsubmodule file anywhere.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp dir=\"auto\"\u003eIndeed, there's a missing \u003ccode class=\"notranslate\"\u003e.gitmodules\u003c/code\u003e file here, thanks for pointing it out!\u003cbr\u003e\nI will send in a PR to fix that.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eEdit 1: Fixed in \u003ca class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"777603917\" data-permission-text=\"Title is private\" data-url=\"https://github.com/mlcpp/Matrix/issues/71\" data-hovercard-type=\"pull_request\" data-hovercard-url=\"/mlcpp/Matrix/pull/71/hovercard\" href=\"https://github.com/mlcpp/Matrix/pull/71\"\u003e#71\u003c/a\u003e.\u003c/p\u003e","upvoteCount":1,"url":"https://github.com/mlcpp/Matrix/discussions/69#discussioncomment-257965"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:f5183f75-d49e-3b17-593a-a2d179f8f230 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | 9056:2CE60F:44EE5B:60BA3C:6A4BC9C5 |
| html-safe-nonce | 86d09ea009690bdc8a0eeda00aee5cd9fc86188b738975011774d39ec3888109 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDU2OjJDRTYwRjo0NEVFNUI6NjBCQTNDOjZBNEJDOUM1IiwidmlzaXRvcl9pZCI6Ijc5NjcwOTUxMzUzNTAyNzg1OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 07962f60adf41b7369e5aeea788386e527c21c7ee3821a70115e1153e849d68b |
| hovercard-subject-tag | discussion:1253541 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/mlcpp/Matrix/69/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/4dc53762b77bdd2fab5ce019c120f6b58405136480f10dbba6015ea3a2b92977/mlcpp/Matrix/discussions/69 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4dc53762b77bdd2fab5ce019c120f6b58405136480f10dbba6015ea3a2b92977/mlcpp/Matrix/discussions/69 |
| og:image:alt | I'm currently working through the Development/Linux section of the readme trying to build everything and I get the following error when running make in my build directory: ~/dev/Matrix/build$ make ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 14aa00ce5bdb34d0eefb5facbffd7de9e144c688d8a93ef8df902d5f94b51dd7 |
| turbo-cache-control | no-preview |
| go-import | github.com/mlcpp/Matrix git https://github.com/mlcpp/Matrix.git |
| octolytics-dimension-user_id | 75084825 |
| octolytics-dimension-user_login | mlcpp |
| octolytics-dimension-repository_id | 297047565 |
| octolytics-dimension-repository_nwo | mlcpp/Matrix |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 297047565 |
| octolytics-dimension-repository_network_root_nwo | mlcpp/Matrix |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 58b8f89190447502561829f30862aa0a99d53367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width