Skip to content
This repository was archived by the owner on Aug 9, 2025. It is now read-only.
This repository was archived by the owner on Aug 9, 2025. It is now read-only.

Compilation issues #26

@mh19971967

Description

@mh19971967

I have some issue compiling:

  1. Mac OS X (15.5) - almost fresh installation
  2. Recent Apple Silicon System
  3. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions