Raised This Month: $51 Target: $400
 12% 

Solved Building SourceMod Linux


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 03-25-2023 , 03:42   Building SourceMod Linux
Reply With Quote #1

Hi guys im trying to build sourcemod on linux , debian and
Code:
crywolfy@dark-node2:~/ssd2/hl2sdk/sourcemod/build$ python ../configure.py
AMBuild must be installed to build this project.
http://www.alliedmods.net/ambuild
crywolfy@dark-node2:~/ssd2/hl2sdk/sourcemod/build$ cd ../
crywolfy@dark-node2:~/ssd2/hl2sdk/sourcemod$ cd ../
crywolfy@dark-node2:~/ssd2/hl2sdk$ pip install ambuild
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: ambuild in /home/crywolfy/.local/lib/python3.7/site-packages (2.0)
crywolfy@dark-node2:~/ssd2/hl2sdk$ pip uninstall ambuild
Found existing installation: AMBuild 2.0
Uninstalling AMBuild-2.0:
  Would remove:
    /home/crywolfy/.local/bin/ambuild
    /home/crywolfy/.local/bin/ambuild_objcopy_wrapper.sh
    /home/crywolfy/.local/lib/python3.7/site-packages/AMBuild-2.0.dist-info/*
    /home/crywolfy/.local/lib/python3.7/site-packages/ambuild/*
    /home/crywolfy/.local/lib/python3.7/site-packages/ambuild2/*
Proceed (Y/n)? y
  Successfully uninstalled AMBuild-2.0
crywolfy@dark-node2:~/ssd2/hl2sdk$ pip insall ambuild
ERROR: unknown command "insall" - maybe you meant "install"
crywolfy@dark-node2:~/ssd2/hl2sdk$ pip install ambuild
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement ambuild (from versions: none)
ERROR: No matching distribution found for ambuild
crywolfy@dark-node2:~/ssd2/hl2sdk$ pip install ./ambuild
Defaulting to user installation because normal site-packages is not writeable
Processing ./ambuild
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: AMBuild
  Building wheel for AMBuild (setup.py) ... done
  Created wheel for AMBuild: filename=AMBuild-2.0-py3-none-any.whl size=176490 sha256=4cfd2c9d0d387b7360380b7d54b133b6e3c68d13445687b4fcf2adc0e08cf948
  Stored in directory: /tmp/pip-ephem-wheel-cache-tk7pot72/wheels/5b/03/90/3c0c34f06235315ba5f6c340ecc73d05ed3472aa9bb3dc6ca4
Successfully built AMBuild
Installing collected packages: AMBuild
Successfully installed AMBuild-2.0
crywolfy@dark-node2:~/ssd2/hl2sdk$ cd ./sourcemod/build
crywolfy@dark-node2:~/ssd2/hl2sdk/sourcemod/build$ python ../configure.py
AMBuild must be installed to build this project.
http://www.alliedmods.net/ambuild
What is wrong ? sine instalation of ambuild went fine and directory added to $PATH
I folowed up this tut: https://wiki.alliedmods.net/Building_sourcemod
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers

Last edited by CryWolf; 03-26-2023 at 01:09.
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
nosoop
Veteran Member
Join Date: Aug 2014
Old 03-25-2023 , 22:02   Re: Building SourceMod Linux
Reply With Quote #2

What does python --version output? Since you're on Debian that would default to Python 2.x, while pip indicates that it's installing AMBuild for Python 3.7.

It sounds like you want to run python3 instead.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 03-25-2023 at 22:08.
nosoop is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 03-26-2023 , 01:09   Re: Building SourceMod Linux
Reply With Quote #3

worked thanks :*
Code:
python3 ../configure.py
Any ideea why mmsource-1.12 doesn't build the same way ?
Code:
crywolfy@dark-node2:~/ssd2/hl2sdk/mmsource-1.12/build$ ambuild

/home/crywolfy/ssd2/hl2sdk/mmsource-1.12/core/metamod_plugins.cpp:30:10: fatal error: 'amtl/am-string.h' file not found
#include <amtl/am-string.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
Build failed: core/metamod.2.blade/linux-x86_64/metamod_plugins.d
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers

Last edited by CryWolf; 03-26-2023 at 01:50.
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
nosoop
Veteran Member
Join Date: Aug 2014
Old 03-26-2023 , 09:58   Re: Building SourceMod Linux
Reply With Quote #4

Quote:
Originally Posted by CryWolf View Post
Any ideea why mmsource-1.12 doesn't build the same way ?
AMTL appears to be missing from the MM:S checkout.
It looks like you'll need to git submodule init and git submodule update. MM:S has submodules but it doesn't look like the checkout-deps scripts download them as part of the clone.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 03-27-2023 , 03:10   Re: Building SourceMod Linux
Reply With Quote #5

Thank you, dont understand why such information is missing from build page information.
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Reply



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 03:15.


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