Title: Compiling latest Ifcopenshell v0.7.0 on windows -> IfcPythonPYTHON_wrap.cxx.obj : error LNK2001 · Issue #1949 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Compiling latest Ifcopenshell v0.7.0 on windows -> IfcPythonPYTHON_wrap.cxx.obj : error LNK2001 · Issue #1949 · IfcOpenShell/IfcOpenShell
X Title: Compiling latest Ifcopenshell v0.7.0 on windows -> IfcPythonPYTHON_wrap.cxx.obj : error LNK2001 · Issue #1949 · IfcOpenShell/IfcOpenShell
Description: Hi, I am experimenting (and learning) how to compile Ifcopenshell from the latest master-branch using cmake on github actions using conda-build for different os'es. And when trying to compile for windows, it seems like I consistently get...
Open Graph Description: Hi, I am experimenting (and learning) how to compile Ifcopenshell from the latest master-branch using cmake on github actions using conda-build for different os'es. And when trying to compile for w...
X Description: Hi, I am experimenting (and learning) how to compile Ifcopenshell from the latest master-branch using cmake on github actions using conda-build for different os'es. And when trying to compile f...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/1949
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compiling latest Ifcopenshell v0.7.0 on windows -> IfcPythonPYTHON_wrap.cxx.obj : error LNK2001","articleBody":"Hi,\r\n\r\nI am experimenting (and learning) how to compile Ifcopenshell from the latest master-branch using cmake on github actions using conda-build for different os'es. \r\n\r\nAnd when trying to compile for windows, it seems like I consistently get the same error message:\r\n\r\nWhen using NMake\r\n```\r\n[ 98%] Linking CXX shared module _ifcopenshell_wrapper.pyd\r\n..\r\nIfcPythonPYTHON_wrap.cxx.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance\r\n Creating library _ifcopenshell_wrapper.lib and object _ifcopenshell_wrapper.exp\r\nIfcPythonPYTHON_wrap.cxx.obj : error LNK2001: unresolved external symbol \"public: class H5::IdComponent & __cdecl H5::IdComponent::operator=(class H5::IdComponent const &)\" (??4IdComponent@H5@@QEAAAEAV01@AEBV01@@Z)\r\n```\r\n\r\nWhen using Ninja\r\n```\r\n[137/138] Linking CXX shared module ifcwrap\\_ifcopenshell_wrapper.pyd\r\nFAILED: ifcwrap/_ifcopenshell_wrapper.pyd \r\n...\r\nIfcPythonPYTHON_wrap.cxx.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance\r\n Creating library ifcwrap\\_ifcopenshell_wrapper.lib and object ifcwrap\\_ifcopenshell_wrapper.exp\r\nIfcPythonPYTHON_wrap.cxx.obj : error LNK2001: unresolved external symbol \"public: class H5::IdComponent & __cdecl H5::IdComponent::operator=(class H5::IdComponent const &)\" (??4IdComponent@H5@@QEAAAEAV01@AEBV01@@Z)\r\n```\r\n\r\nI have tried a lot of variations in the process, but here is an example of my cmake build configs:\r\n\r\n```\r\nmkdir build && cd build\r\n\r\ncmake -G \"Ninja\" ^\r\n -D CMAKE_INSTALL_PREFIX=\"%LIBRARY_PREFIX%\" ^\r\n -D CMAKE_BUILD_TYPE=Release ^\r\n -D CMAKE_PREFIX_PATH=\"%LIBRARY_PREFIX%\" ^\r\n -D CMAKE_SYSTEM_PREFIX_PATH=\"%LIBRARY_PREFIX%\" ^\r\n -D Python3_FIND_STRATEGY=LOCATION ^\r\n -D Python3_FIND_REGISTRY=NEVER ^\r\n -D OCC_INCLUDE_DIR=\"%LIBRARY_PREFIX%\\include\\opencascade\" ^\r\n -D OCC_LIBRARY_DIR=\"%LIBRARY_PREFIX%\\lib\" ^\r\n -D CGAL_INCLUDE_DIR=\"%LIBRARY_PREFIX%\\include\" ^\r\n -D GMP_LIBRARY_DIR:FILEPATH=\"%LIBRARY_PREFIX%\\lib\" ^\r\n -D MPFR_LIBRARY_DIR:FILEPATH=\"%LIBRARY_PREFIX%\\lib\" ^\r\n -D HDF5_INCLUDE_DIR:FILEPATH=\"%LIBRARY_PREFIX%\\include\" ^\r\n -D HDF5_LIBRARY_DIR:FILEPATH=\"%LIBRARY_PREFIX%\\lib\" ^\r\n -D COLLADA_SUPPORT=OFF ^\r\n -D BUILD_EXAMPLES=OFF ^\r\n -D BUILD_GEOMSERVER=ON ^\r\n -D BUILD_CONVERT=OFF ^\r\n -D BUILD_IFCPYTHON=ON ^\r\n -D BUILD_IFCGEOM=ON ^\r\n -D IFCXML_SUPPORT=ON ^\r\n -D MSVC_EXTRA_WARNINGS=OFF ^\r\n %SRC_DIR%/cmake\r\nif errorlevel 1 exit 1\r\n\r\n:: Build and install\r\ncmake --build . -- install\r\n\r\nif errorlevel 1 exit 1\r\n```\r\n\r\nand my meta.yaml file looks like this:\r\n\r\n```yaml\r\n{% set name = \"ifcopenshell\" %}\r\n{% set version = \"0.7.0\" %}\r\n{% set occt_version = \"7.5.3\" %}\r\n\r\npackage:\r\n name: {{ name }}\r\n version: {{ version }}\r\n\r\nsource:\r\n git_url: https://github.com/IfcOpenShell/IfcOpenShell\r\n\r\nbuild:\r\n binary_relocation: false [osx]\r\n\r\nrequirements:\r\n build:\r\n - {{ compiler('cxx') }}\r\n - ninja ==1.10.2\r\n - cmake\r\n - swig ==4.0.2\r\n\r\n host:\r\n - python {{ python }}\r\n - occt =={{ occt_version }}\r\n - cgal-cpp ==5.3\r\n\r\n run:\r\n - python\r\n - occt =={{ occt_version }}\r\n - lark-parser\r\n - deepdiff\r\n - cgal-cpp ==5.3\r\n\r\ntest:\r\n imports:\r\n - ifcopenshell\r\n\r\nabout:\r\n home: http://ifcopenshell.org\r\n license: LGPL-3.0-or-later\r\n license_file: COPYING\r\n summary: 'IfcOpenShell is a library to support the IFC file format'\r\n description: |\r\n IfcOpenShell is an open source (LGPL) software library for \r\n working with the Industry Foundation Classes (IFC) file format.\r\n doc_url: http://ifcopenshell.org/\r\n dev_url: https://github.com/IfcOpenShell/IfcOpenShell\r\n\r\n```\r\n\r\nAn example of this error using github actions is here: https://github.com/Krande/condapackaging/runs/4552522417?check_suite_focus=true#step:5:25307\r\n\r\n\r\nWhile I continue to debug this, does anybody have an idea what could be generating this error and\\or point me in the right direction for solving this?\r\n\r\n\r\nBest Regards\r\nKristoffer (c++ n00b)","author":{"url":"https://github.com/Krande","@type":"Person","name":"Krande"},"datePublished":"2021-12-17T15:36:41Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/1949"}
| 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:869e2861-61bc-b443-a8df-22df8fa24572 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9770:31C8BB:6CF816:99FB39:6B047CBB |
| html-safe-nonce | 23f892b685296f5b488c2ee3674c6b248b5a55b8174d48da6c748ebedb0cd802 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzcwOjMxQzhCQjo2Q0Y4MTY6OTlGQjM5OjZCMDQ3Q0JCIiwidmlzaXRvcl9pZCI6IjMxOTc4NTIxODAxNjYyNDU1NjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c649cae4ad9f88ea43a9438ecba9f0b29a49cec59dfa1655e9d56ccd5913e907 |
| hovercard-subject-tag | issue:1083379722 |
| 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/1949/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a703005b00a223f1cf737099ffb90c9c2e826f0e2e6c781f7867f2927f364c77/IfcOpenShell/IfcOpenShell/issues/1949 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a703005b00a223f1cf737099ffb90c9c2e826f0e2e6c781f7867f2927f364c77/IfcOpenShell/IfcOpenShell/issues/1949 |
| og:image:alt | Hi, I am experimenting (and learning) how to compile Ifcopenshell from the latest master-branch using cmake on github actions using conda-build for different os'es. And when trying to compile for w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Krande |
| 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