Title: Building C++ code for Debug configuration doesn't work correctly. · Issue #7413 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Building C++ code for Debug configuration doesn't work correctly. · Issue #7413 · IfcOpenShell/IfcOpenShell
X Title: Building C++ code for Debug configuration doesn't work correctly. · Issue #7413 · IfcOpenShell/IfcOpenShell
Description: Bug Description @Andrej730 I think the ideal approach is to do something like this: git clone IfcOpenShell cd F:\IfcOpenShell\win build-deps.cmd vs2022-x64 Release build-deps.cmd vs2022-x64 Debug run-cmake.bat vs2022-x64 The second build...
Open Graph Description: Bug Description @Andrej730 I think the ideal approach is to do something like this: git clone IfcOpenShell cd F:\IfcOpenShell\win build-deps.cmd vs2022-x64 Release build-deps.cmd vs2022-x64 Debug r...
X Description: Bug Description @Andrej730 I think the ideal approach is to do something like this: git clone IfcOpenShell cd F:\IfcOpenShell\win build-deps.cmd vs2022-x64 Release build-deps.cmd vs2022-x64 Debug r...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7413
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Building C++ code for Debug configuration doesn't work correctly.","articleBody":"### Bug Description\n\n@Andrej730\n\nI think the ideal approach is to do something like this:\n\n~~~\ngit clone IfcOpenShell\ncd F:\\IfcOpenShell\\win\nbuild-deps.cmd vs2022-x64 Release\nbuild-deps.cmd vs2022-x64 Debug\nrun-cmake.bat vs2022-x64\n~~~\n\nThe second build-deps.cmd runs really fast and the debugging configurations are not built. Many linker errors occur when building visual studio SLN with Debug comfingiration.\n\nThe full build output is attached at end of this post.\n\nTo get a Debug build working, my method is to do the following:\n\n1. Get a clean IfcOpenShell from github\n2. build-deps.cmd vs2022-x64 Release\n3. run-cmake.bat vs2022-64\n4. Open SLN file and build the Relase configuration\n5. Rename IfcOpenShell folder to IfcOpenShell_Release\n6. Get a clean IfcOpenShell from github\n7. build-deps.cmd vs2022-x64 Debug\n8. Rename IfcOpenShell to IfcOpenShell_Debug\n9. Rename IfcOpenShell_Release to IfcOpenShell\n10. Copy *d.lib from \\IfcOpenShell_Debug\\_deps-vs2022-x64-installed\\OpenCOLLADA\\lib\\opencollada to \\IfcOpenShell\\_deps-vs2022-x64-installed\\OpenCOLLADA\\lib\\opencollada\n11. Copy *d.lib from \\IfcOpenShell_Debug\\_deps-vs2022-x64-installed\\opencascade-7.8.1\\win64\\lib to \\IfcOpenShell\\_deps-vs2022-x64-installed\\opencascade-7.8.1\\win64\\lib\n12. Copy *_D.lib from \\IfcOpenShell_Debug\\_deps-vs2022-x64-installed\\HDF5-1_13_1-win64\\lib\\ to \\IfcOpenShell\\_deps-vs2022-x64-installed\\HDF5-1_13_1-win64\\lib\\\n13. Rename \\IfcOpenShell_Debug\\_deps-vs2022-x64-installed\\rocksdb\\lib\\rocksdb.lib to \\IfcOpenShell_Debug\\_deps-vs2022-x64-installed\\rocksdb\\lib\\rocksdbd.lib and copy to \\IfcOpenShell\\_deps-vs2022-x64-installed\\rocksdb\\lib\\\n14. Rename \\IfcOpenShell_Debug\\_deps-vs2022-x64-installed\\rocksdb\\lib\\rocksdb-shared.lib to \\IfcOpenShell_Debug\\_deps-vs2022-x64-installed\\rocksdb\\lib\\rocksdb-sharedd.lib and copy to \\IfcOpenShell\\_deps-vs2022-x64-installed\\rocksdb\\lib\\\n15. Rename \\IfcOpenShell_Debug\\_deps-vs2022-x64-installed\\zstd\\lib\\zstd_static.lib to \\IfcOpenShell_Debug\\_deps-vs2022-x64-installed\\zstd\\lib\\zstd_staticd.lib and copy to \\IfcOpenShell\\_deps-vs2022-x64-installed\\zstd\\lib\\\n16. Open the SLN file, set the configuration to Debug and build - there will be linker errors in\na. All of the example projects\nb. IfcConvert\nc. IfcGeom\nd. ifcopenshell_wrapper\n17. Fix the linker errors by changing the LIB file names (add the \"d\" or \"_D\" as needed)\n\n\n\n### Attachments\n\n[BuildOutput.txt](https://github.com/user-attachments/files/23729138/BuildOutput.txt)\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/RickBrice","@type":"Person","name":"RickBrice"},"datePublished":"2025-11-24T17:54:54Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7413"}
| 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:4f4316f1-d49b-6cd3-a93b-3322fcfa1e99 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A498:27E34B:3C7F93:51941D:6B049F94 |
| html-safe-nonce | a996f44150ff78598482cd56cde6cdfd1c076d0c7772994a837fcdbd9c4d4da0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDk4OjI3RTM0QjozQzdGOTM6NTE5NDFEOjZCMDQ5Rjk0IiwidmlzaXRvcl9pZCI6IjUzNzgyNjUyMTM1NzU2Njc2MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bc61199755bdc5d552408eb5b57d932ccd4087d579dfafe4c7f26b9886619d53 |
| hovercard-subject-tag | issue:3659928828 |
| 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/7413/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eeab0eefd1774506c9c961dcd8c8608d0d7712a1befa102292f0dafe7925b6d9/IfcOpenShell/IfcOpenShell/issues/7413 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eeab0eefd1774506c9c961dcd8c8608d0d7712a1befa102292f0dafe7925b6d9/IfcOpenShell/IfcOpenShell/issues/7413 |
| og:image:alt | Bug Description @Andrej730 I think the ideal approach is to do something like this: git clone IfcOpenShell cd F:\IfcOpenShell\win build-deps.cmd vs2022-x64 Release build-deps.cmd vs2022-x64 Debug r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RickBrice |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| 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 | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| 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