AcademySoftwareFoundation / AcademySoftwareFoundation/Imath
Error building PyImath on Windows
- Dominant language
- C++
- Stars
- 488
- Forks
- 161
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 3
Description
I'm running into this error building PyImath on Windows:
`C:\src\Imath\src\python\PyImath\PyImathBasicTypes.cpp : fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj`
Adding `/bigobj` to `_imath_extra_flags` in config/LibraryDefine.cmake fixes it.
This might be specific to my build environment which slightly deviates from VFX Reference Platform CY2022:
- Windows SDK 10.0.18362
- MSVC 14.28.29333 (Visual Studio 2019)
- Python 3.10
- Boost Python 1.76
Contributor guide
Research direction
Inspect config/LibraryDefine.cmake and the _imath_extra_flags setting first. Reproduce the PyImath Windows build with the reported MSVC and Python environment, then verify that the build completes without C1128 while checking whether the issue also occurs on the supported VFX Reference Platform setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100