Title: compile error on ubuntu with oce · Issue #1038 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: compile error on ubuntu with oce · Issue #1038 · IfcOpenShell/IfcOpenShell
X Title: compile error on ubuntu with oce · Issue #1038 · IfcOpenShell/IfcOpenShell
Description: When I build the latest branch v0.6.0 on linux with oce follow the guide 2b). use -DIFCXML_SUPPORT=off It fails in compilation stage as follows: /home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp:1709:15: error: ‘Standard_Integer...
Open Graph Description: When I build the latest branch v0.6.0 on linux with oce follow the guide 2b). use -DIFCXML_SUPPORT=off It fails in compilation stage as follows: /home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShap...
X Description: When I build the latest branch v0.6.0 on linux with oce follow the guide 2b). use -DIFCXML_SUPPORT=off It fails in compilation stage as follows: /home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShap...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/1038
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"compile error on ubuntu with oce","articleBody":"When I build the latest branch v0.6.0 on linux with oce follow the guide 2b). use -DIFCXML_SUPPORT=off\r\n It fails in compilation stage as follows:\r\n\r\n`/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp:1709:15: error: ‘Standard_Integer TCollection_BaseSequence::Size’ is protected within this context\r\n if (polygon.Size() \u003c 3) {\r\n ^~~~\r\nIn file included from /usr/local/include/oce/TColgp_SequenceOfPnt.hxx:13:0,\r\n from /home/abay/code/IfcOpenShell/src/ifcgeom/../ifcgeom/IfcGeom.h:47,\r\n from /home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp:107:\r\n/usr/local/include/oce/TCollection_BaseSequence.hxx:130:20: note: declared protected here\r\n Standard_Integer Size;\r\n ^~~~\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp:1709:20: error: expression cannot be used as a function\r\n if (polygon.Size() \u003c 3) {\r\n ^\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp: In member function ‘bool IfcGeom::KernelIfc4x3_rc1::convert(const Ifc4x3_rc1::IfcPolygonalFaceSet*, TopoDS_Shape&)’:\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp:1828:15: error: ‘class TopTools_ListOfShape’ has no member named ‘Size’\r\n if (faces.Size() == 0) return false;\r\n ^~~~\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp: In function ‘void {anonymous}::break_closed(const TopoDS_Wire&, std::vector\u003cTopoDS_Wire>&)’:\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp:1331:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n for (int i = 0; i \u003c sorted_edges.size(); ++i) {\r\n ~~^~~~~~~~~~~~~~~~~~~~~\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp:1332:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n if (i == sorted_edges.size() / 2) {\r\n ~~^~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp:1326:10: warning: unused variable ‘u’ [-Wunused-variable]\r\n double u, v;\r\n ^\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp:1326:13: warning: unused variable ‘v’ [-Wunused-variable]\r\n double u, v;\r\n ^\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp: In function ‘bool {anonymous}::make_indexed_polygon(IfcGeom::KernelIfc4x1&, const std::vector\u003cgp_Pnt>&, const std::vector\u003cint>&, TopoDS_Wire&)’:\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp:1709:15: error: ‘Standard_Integer TCollection_BaseSequence::Size’ is protected within this context\r\n if (polygon.Size() \u003c 3) {\r\n ^~~~\r\nIn file included from /usr/local/include/oce/TColgp_SequenceOfPnt.hxx:13:0,\r\n from /home/abay/code/IfcOpenShell/src/ifcgeom/../ifcgeom/IfcGeom.h:47,\r\n from /home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp:107:\r\n/usr/local/include/oce/TCollection_BaseSequence.hxx:130:20: note: declared protected here\r\n Standard_Integer Size;\r\n ^~~~\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp:1709:20: error: expression cannot be used as a function\r\n if (polygon.Size() \u003c 3) {\r\n ^\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp: In member function ‘bool IfcGeom::KernelIfc4x1::convert(const Ifc4x1::IfcPolygonalFaceSet*, TopoDS_Shape&)’:\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp:1828:15: error: ‘class TopTools_ListOfShape’ has no member named ‘Size’\r\n if (faces.Size() == 0) return false;\r\n ^~~~\r\n/home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShapes.cpp: At global scope:`\r\n\r\nHow to fix this error? Thanks for any advice!","author":{"url":"https://github.com/wq8806","@type":"Person","name":"wq8806"},"datePublished":"2020-10-15T13:27:55Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/1038"}
| 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:2358012c-0b44-264d-8027-c080ec823d95 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC4A:24AF5E:33DEC1:4566DD:6B04B982 |
| html-safe-nonce | fb3494d8844806327927501113c5838c7258398997df2f03f8884a4b19c02e24 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzRBOjI0QUY1RTozM0RFQzE6NDU2NkREOjZCMDRCOTgyIiwidmlzaXRvcl9pZCI6IjUyMjYzMTYzNzQ1MTkxMDE4MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b14632d9dbcac0ad5f9c0c72e6afbae3a105c4f7b10b9ff415a96aad8c96b9e0 |
| hovercard-subject-tag | issue:722336766 |
| 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/1038/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d45506dbd4f84b24c55906cbf410099d3bc9f48da96456bcf5627af7d9b3734a/IfcOpenShell/IfcOpenShell/issues/1038 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d45506dbd4f84b24c55906cbf410099d3bc9f48da96456bcf5627af7d9b3734a/IfcOpenShell/IfcOpenShell/issues/1038 |
| og:image:alt | When I build the latest branch v0.6.0 on linux with oce follow the guide 2b). use -DIFCXML_SUPPORT=off It fails in compilation stage as follows: /home/abay/code/IfcOpenShell/src/ifcgeom/IfcGeomShap... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wq8806 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| 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 | b032e77f1ea437ede6c115446a0a467709b468e7 |
| 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