arthurdead / tfpickup

3 stars 1 forks source link

Build failed #1

Closed JagFlax closed 3 years ago

JagFlax commented 3 years ago

I'm interested in trying this extension out. Receiving "build failed" from ambuild. Pretty new to building sm extensions so wondering if this is a problem on my end. But I'm able to compile sendproxy and sourcemod without errors.

steps:

git clone https://github.com/arthurdead/tfpickup.git
cd tfpickup/
mkdir build && cd build
python3 ../configure.py
ambuild

os:

Debian GNU/Linux 10 (buster)
Linux 4.19.0-16-amd64 x86_64

build log: https://pastebin.com/CRiHFRMS

relevant errors:

/home/builder/extensions-src/tfpickup/extension.cpp:1716:13: error: ‘ShouldHitFunc_t’ has not been declared
             ShouldHitFunc_t pExtraShouldHitFunc )
             ^~~~~~~~~~~~~~~
/home/builder/extensions-src/tfpickup/extension.cpp:1715:1: error: no declaration matches ‘CTraceFilterSimple::CTraceFilterSimple(const IHandleEntity*, int, int)’
 CTraceFilterSimple::CTraceFilterSimple( const IHandleEntity *passedict, int collisionGroup,
 ^~~~~~~~~~~~~~~~~~
In file included from /home/builder/sdk/hl2sdk-tf2/game/server/util.h:30,
                 from /home/builder/extensions-src/tfpickup/extension.cpp:234:
/home/builder/sdk/hl2sdk-tf2/game/shared/util_shared.h:114:7: note: candidates are: ‘constexpr CTraceFilterSimple::CTraceFilterSimple(CTraceFilterSimple&&)’
 class CTraceFilterSimple : public CTraceFilter
       ^~~~~~~~~~~~~~~~~~
/home/builder/sdk/hl2sdk-tf2/game/shared/util_shared.h:114:7: note:                 ‘constexpr CTraceFilterSimple::CTraceFilterSimple(const CTraceFilterSimple&)’
/home/builder/sdk/hl2sdk-tf2/game/shared/util_shared.h:120:2: note:                 ‘CTraceFilterSimple::CTraceFilterSimple(const IHandleEntity*, int)’
  CTraceFilterSimple( const IHandleEntity *passentity, int collisionGroup );
  ^~~~~~~~~~~~~~~~~~
/home/builder/sdk/hl2sdk-tf2/game/shared/util_shared.h:114:7: note: ‘class CTraceFilterSimple’ defined here
 class CTraceFilterSimple : public CTraceFilter
       ^~~~~~~~~~~~~~~~~~
Build failed: tfpickup.ext.2.tf2/extension.o
arthurdead commented 3 years ago

try using my fork of hl2sdk https://github.com/arthurdead/hl2sdk/tree/tf2-navmesh

JagFlax commented 3 years ago

That fixed it, thank you! Compiled and working great now.

This is unrelated but would you ever consider adding compatibility for css?

arthurdead commented 3 years ago

sorry but i really only have motivation to mod games i play and i dont play css but theoretically you can just compile against css hl2sdk and update gamedata