-
Notifications
You must be signed in to change notification settings - Fork 3
Compilation issues #26
Description
I have some issue compiling:
- Mac OS X (15.5) - almost fresh installation
- Recent Apple Silicon System
- Python3.13.3
I have configured the build using:
python3 waf configure -T release --prefix='' --build-games=hl2
When I run:
python3 waf build
I get:
../public/tier1/utlblockmemory.h:140:8: error: no member named 'swap' in 'CUtlBlockMemory<T, I>'
140 | this->swap( m_pMemory, mem.m_pMemory );
| ~~~~ ^
../public/tier1/utlblockmemory.h:141:8: error: no member named 'swap' in 'CUtlBlockMemory<T, I>'
141 | this->swap( m_nBlocks, mem.m_nBlocks );
| ~~~~ ^
../public/tier1/utlblockmemory.h:142:8: error: no member named 'swap' in 'CUtlBlockMemory<T, I>'
142 | this->swap( m_nIndexMask, mem.m_nIndexMask );
| ~~~~ ^
../public/tier1/utlblockmemory.h:143:8: error: no member named 'swap' in 'CUtlBlockMemory<T, I>'
143 | this->swap( m_nIndexShift, mem.m_nIndexShift );
| ~~~~ ^
4 errors generated.
When I change "this->swap" to std::swap it compiles until the next error:
../public/datamodel/dmattributevar.h:1155:15: error: no member named 'Data' in 'CDmaElement'
1155 | return this->Data().m_ElementType;
| ~~~~ ^
1 error generated.
When I change this return 0, the compilation runs through, but the graphics is unusable.
Any ideas?