Title: error: 'Init' is not a member of 'IfcParse::IfcFile' when compiling with USE_MMAP · Issue #1149 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: error: 'Init' is not a member of 'IfcParse::IfcFile' when compiling with USE_MMAP · Issue #1149 · IfcOpenShell/IfcOpenShell
X Title: error: 'Init' is not a member of 'IfcParse::IfcFile' when compiling with USE_MMAP · Issue #1149 · IfcOpenShell/IfcOpenShell
Description: Hi there, I am trying to compile the current head of the v0.6.0 branch in a Dockerfile, but I can't seem to get the USE_MMAP to work. I get the following error: /IfcOpenShell/src/ifcparse/IfcParse.cpp: In constructor 'IfcParse::IfcFile::...
Open Graph Description: Hi there, I am trying to compile the current head of the v0.6.0 branch in a Dockerfile, but I can't seem to get the USE_MMAP to work. I get the following error: /IfcOpenShell/src/ifcparse/IfcParse....
X Description: Hi there, I am trying to compile the current head of the v0.6.0 branch in a Dockerfile, but I can't seem to get the USE_MMAP to work. I get the following error: /IfcOpenShell/src/ifcparse/IfcPa...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/1149
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"error: 'Init' is not a member of 'IfcParse::IfcFile' when compiling with USE_MMAP","articleBody":"Hi there,\r\n\r\nI am trying to compile the current head of the v0.6.0 branch in a Dockerfile, but I can't seem to get the `USE_MMAP` to work. I get the following error:\r\n\r\n```sh\r\n/IfcOpenShell/src/ifcparse/IfcParse.cpp: In constructor 'IfcParse::IfcFile::IfcFile(const string&, bool)':\r\n/IfcOpenShell/src/ifcparse/IfcParse.cpp:1307:18: error: 'Init' is not a member of 'IfcParse::IfcFile'\r\n 1307 | return IfcFile::Init(new IfcSpfStream(fn, mmap));\r\n | ^~~~\r\n/IfcOpenShell/src/ifcparse/IfcParse.cpp:1307:49: error: returning a value from a constructor\r\n 1307 | return IfcFile::Init(new IfcSpfStream(fn, mmap));\r\n | ^\r\nmake[2]: *** [CMakeFiles/IfcParse.dir/build.make:245: CMakeFiles/IfcParse.dir/IfcOpenShell/src/ifcparse/IfcParse.cpp.o] Error 1\r\n```\r\n\r\nDockerfile:\r\n```dockerfile\r\nFROM ubuntu:20.10 as builder\r\n\r\nRUN apt-get update && apt-get install --yes git\r\nRUN git clone https://github.com/IfcOpenShell/IfcOpenShell.git\r\n\r\nRUN cd IfcOpenShell && git checkout e1fa6fb3\r\nRUN apt-get install --yes cmake g++ libboost-all-dev\r\nRUN apt-get install --yes liboce-foundation-dev \\\r\n liboce-modeling-dev liboce-ocaf-dev liboce-visualization-dev \\\r\n liboce-ocaf-lite-dev\r\nRUN cd IfcOpenShell && mkdir build && cd build && \\\r\n cmake ../cmake -DOCC_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu/ -DCOLLADA_SUPPORT=0 -DIFCXML_SUPPORT=0 -DBUILD_IFCGEOM=0 \\\r\n -DBUILD_IFCPYTHON=0 -DBUILD_EXAMPLES=0 -DBUILD_GEOMSERVER=0 -DUSE_MMAP=1\r\n# Wish we could use MMAP but it triggers a bug witnh the current git commit\r\nRUN cd IfcOpenShell/build/ && make\r\n```","author":{"url":"https://github.com/hawkaa","@type":"Person","name":"hawkaa"},"datePublished":"2020-12-07T00:59:19Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/1149"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b8608a1f-2e61-f939-bc9c-fb60c21b1f49 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC26:29272F:88E92B:BA5320:6B047CC4 |
| html-safe-nonce | 503438ee6e517100f6a2e974f5f8352929370aadb4e772d44af2b64fb8185cba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzI2OjI5MjcyRjo4OEU5MkI6QkE1MzIwOjZCMDQ3Q0M0IiwidmlzaXRvcl9pZCI6Ijg5MjI1NzY5ODkwNzcxNDI3MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9b735e0b852ffe872f506b2230c135ef1279078cd1625f72abf9959afdf6fed7 |
| hovercard-subject-tag | issue:758076267 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/IfcOpenShell/IfcOpenShell/1149/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b360e27adf7417444e1ab76cfea7274e9c91fbd46bc1d789261951a95243590d/IfcOpenShell/IfcOpenShell/issues/1149 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b360e27adf7417444e1ab76cfea7274e9c91fbd46bc1d789261951a95243590d/IfcOpenShell/IfcOpenShell/issues/1149 |
| og:image:alt | Hi there, I am trying to compile the current head of the v0.6.0 branch in a Dockerfile, but I can't seem to get the USE_MMAP to work. I get the following error: /IfcOpenShell/src/ifcparse/IfcParse.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hawkaa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width