Raised This Month: $319 Target: $400
 79%   Almost there!

[SM Extensions] Need help with compilation!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Future Unseen
New Member
Join Date: Jun 2021
Old 06-08-2021 , 19:15   [SM Extensions] Need help with compilation!
Reply With Quote #1

I used this guide to setup my build environment https://wiki.alliedmods.net/Building...d_Dependencies

however i get the following error when trying to build the sample extension located here:
alliedmodders/sourcemod/public/sample_ext



Any ideas how to fix that?
Future Unseen is offline
Zynda
Member
Join Date: Jul 2011
Old 06-15-2021 , 23:11   Re: [SM Extensions] Need help with compilation!
Reply With Quote #2

Makefiles are deprecated, it says so on the very page you linked.

Here is the steps I use to build the sample extension, SDK is l4d2 only because that's what I have at hand.
PHP Code:
alliedmodders/sourcemod/public/sample_ext (git)-[master] % pwd
/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public/sample_ext

alliedmodders
/sourcemod/public/sample_ext (git)-[master] % mkdir build && cd build
alliedmodders
/sourcemod/public/sample_ext/build (git)-[master] % export CC=clang CXX=clang++
alliedmodders/sourcemod/public/sample_ext/build (git)-[master] % python3 ../configure.py --sdks=l4d2

Checking CC compiler 
(vendor test gcc)... ['clang''test.c''-o''test']
found clang version 11.1
Checking CXX compiler 
(vendor test gcc)... ['clang++''test.cpp''-o''testp']
found clang version 11.1

alliedmodders
/sourcemod/public/sample_ext/build (git)-[master] % ambuild

[createmkdir -p sample.ext.2.l4d2
[createmkdir -p package
[createmkdir -p package/addons
[createmkdir -p package/addons/sourcemod
[createmkdir -p package/addons/sourcemod/extensions
Spawned worker 
(pid316471)
Spawned worker (pid316472)
Spawned worker (pid316473)
Spawned worker (pid316474)
[
316473ln -"/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/lib/linux/libtier0_srv.so" "./sample.ext.2.l4d2/libtier0_srv.so"
[316473ln -"/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/lib/linux/libvstdlib_srv.so" "./sample.ext.2.l4d2/libvstdlib_srv.so"
[316472clang++ -pipe -fno-strict-aliasing -Wall -Werror -Wno-unused -Wno-switch -Wno-array-bounds -msse -m32 -fvisibility=hidden -Wno-narrowing -Wno-sometimes-uninitialized -g3 -std=c++14 -fno-exceptions -fno-threadsafe-statics -Wno-non-virtual-dtor -Wno-overloaded-virtual -fvisibility-inlines-hidden -Wno-inconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-implicit-exception-spec-mismatch -Wno-deprecated-register -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -DHAVE_STDINT_H -DGNUC -D_LINUX -DPOSIX -DSE_EPISODEONE=-DSE_ORANGEBOX=-DSE_CSS=-DSE_HL2DM=-DSE_DODS=-DSE_SDK2013=-DSE_TF2=11 -DSE_LEFT4DEAD=12 -DSE_NUCLEARDAWN=13 -DSE_LEFT4DEAD2=15 -DSE_DARKMESSIAH=-DSE_ALIENSWARM=16 -DSE_BLOODYGOODTIME=-DSE_EYE=-DSE_CSGO=21 -DSE_PORTAL2=17 -DSE_BLADE=18 -DSE_INSURGENCY=19 -DSE_CONTAGION=14 -DSE_BMS=10 -DSE_DOI=20 -DSOURCE_ENGINE=15 -DCOMPILER_GCC -DNO_HOOK_MALLOC -DNO_MALLOC_OVERRIDE -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public/sample_ext -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public/sample_ext/sdk -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public/extensions -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/sourcepawn/include -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public/amtl/amtl -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public/amtl -/home/l4d2/l4d2-buildtest/alliedmodders/mmsource-1.10/core -/home/l4d2/l4d2-buildtest/alliedmodders/mmsource-1.10/core/sourcehook -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/engine -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/mathlib -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/vstdlib -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/tier0 -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/tier1 -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/game/server -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/toolframework -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/game/shared -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/common --/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public/smsdk_ext.cpp -o _home_l4d2_l4d2_buildtest_alliedmodders_sourcemod_public_smsdk_ext.o
[316471clang++ -pipe -fno-strict-aliasing -Wall -Werror -Wno-unused -Wno-switch -Wno-array-bounds -msse -m32 -fvisibility=hidden -Wno-narrowing -Wno-sometimes-uninitialized -g3 -std=c++14 -fno-exceptions -fno-threadsafe-statics -Wno-non-virtual-dtor -Wno-overloaded-virtual -fvisibility-inlines-hidden -Wno-inconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-implicit-exception-spec-mismatch -Wno-deprecated-register -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -DHAVE_STDINT_H -DGNUC -D_LINUX -DPOSIX -DSE_EPISODEONE=-DSE_ORANGEBOX=-DSE_CSS=-DSE_HL2DM=-DSE_DODS=-DSE_SDK2013=-DSE_TF2=11 -DSE_LEFT4DEAD=12 -DSE_NUCLEARDAWN=13 -DSE_LEFT4DEAD2=15 -DSE_DARKMESSIAH=-DSE_ALIENSWARM=16 -DSE_BLOODYGOODTIME=-DSE_EYE=-DSE_CSGO=21 -DSE_PORTAL2=17 -DSE_BLADE=18 -DSE_INSURGENCY=19 -DSE_CONTAGION=14 -DSE_BMS=10 -DSE_DOI=20 -DSOURCE_ENGINE=15 -DCOMPILER_GCC -DNO_HOOK_MALLOC -DNO_MALLOC_OVERRIDE -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public/sample_ext -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public/sample_ext/sdk -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public/extensions -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/sourcepawn/include -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public/amtl/amtl -/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public/amtl -/home/l4d2/l4d2-buildtest/alliedmodders/mmsource-1.10/core -/home/l4d2/l4d2-buildtest/alliedmodders/mmsource-1.10/core/sourcehook -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/engine -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/mathlib -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/vstdlib -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/tier0 -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/tier1 -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/game/server -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/public/toolframework -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/game/shared -/home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/common --/home/l4d2/l4d2-buildtest/alliedmodders/sourcemod/public/sample_ext/extension.cpp -o extension.o
[316472clang++ _home_l4d2_l4d2_buildtest_alliedmodders_sourcemod_public_smsdk_ext.o extension.o libvstdlib_srv.so libtier0_srv.so -m32 -Wl,--exclude-libs,ALL -lm -lgcc_eh /home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/lib/linux/tier1_i486./home/l4d2/l4d2-buildtest/alliedmodders/hl2sdk-l4d2/lib/linux/mathlib_i486.-shared -o sample.ext.2.l4d2.so
[316472cp "sample.ext.2.l4d2/sample.ext.2.l4d2.so" "./package/addons/sourcemod/extensions/sample.ext.2.l4d2.so"
Build succeeded

Last edited by Zynda; 06-15-2021 at 23:13.
Zynda is offline
SHUFEN
Senior Member
Join Date: Jun 2014
Location: Japan, Tokyo
Old 06-16-2021 , 08:49   Re: [SM Extensions] Need help with compilation!
Reply With Quote #3

you need to include dir sourcemod/public/amtl and sourcemod/public/amtl/amtl, in AMBuilder
__________________
SHUFEN is offline
Send a message via Skype™ to SHUFEN
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:47.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode