AcademySoftwareFoundation / AcademySoftwareFoundation/Imath

Error building PyImath on Windows

Open
#287 10 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.