AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   compiling sourcemod (Ambuild error!...) (https://forums.alliedmods.net/showthread.php?t=304030)

Invisible Man 01-01-2018 08:12

compiling sourcemod (Ambuild error!...)
 
Hello everyone.I an trying to recompile sourcemod and I have done everything written in the tutorial...
But when I want to do the last part and type "ambuild" it returns me such an error:
C:\Users\ME\source\alliedmodders\sourcemod\bu ild>ambuild
Traceback (most recent call last):
File "C:\Python27\Scripts\ambuild", line 27, in <module>
main()
File "C:\Python27\Scripts\ambuild", line 23, in main
if not run.Build(os.path.abspath(folder), options, argv):
File "C:\Python27\lib\site-packages\ambuild2\run.py", line 102, in Build
with Context(buildPath, options, argv) as cx:
File "C:\Python27\lib\site-packages\ambuild2\context.py", line 38, in __init__

with open(os.path.join(self.cacheFolder, 'vars'), 'rb') as fp:
IOError: [Errno 2] No such file or directory: 'C:\\Users\\ME\\source\\alliedm
odders\\sourcemod\\build\\.ambuild2\\vars'

\My os : windows game:cs:s vc version:14.0
Can you please tell me what do I have to do now??
Thanks a lot!

Fyren 01-01-2018 09:57

Re: compiling sourcemod (Ambuild error!...)
 
When you ran the configure script, were there any errors?

Invisible Man 01-02-2018 02:37

Re: compiling sourcemod (Ambuild error!...)
 
yes there were!
Here they are:
Spoiler

asherkin 01-02-2018 17:59

Re: compiling sourcemod (Ambuild error!...)
 
You either need to get the MySQL dependencies (checkout-deps handles this for you), or configure with --no-mysql to skip building the MySQL extension.

Invisible Man 01-02-2018 23:33

Re: compiling sourcemod (Ambuild error!...)
 
Can It cause problem for me if I dont create MySQL??

DarkDeviL 01-02-2018 23:51

Re: compiling sourcemod (Ambuild error!...)
 
Quote:

Originally Posted by Invisible Man (Post 2569451)
Can It cause problem for me if I dont create MySQL??

You tell us?

There are several optional things you can enable or disable while compiling software, whether you need them or not is something you need to make up with yourself. We can't do that for you.

So if your intentions are to run something that uses MySQL, then you will most likely need it, and it would most likely cause you problems without.

asherkin 01-03-2018 02:22

Re: compiling sourcemod (Ambuild error!...)
 
Quote:

Originally Posted by Invisible Man (Post 2569451)
Can It cause problem for me if I dont create MySQL??

If you don’t intend to make mchangew to it, you can just use the MySQL extension from the latest snapshot build alongside your compiled binaries.

Invisible Man 01-03-2018 02:31

Re: compiling sourcemod (Ambuild error!...)
 
Acctually I didnt ask you to do it for me!I only asked if it can cause any other problems!
any way after doing what Asherkin said I face these errors:
Spoiler

Can you possibly tell me what should I fix to not see this error?(Is there any problem with my vc do you think?)

asherkin 01-03-2018 03:26

Re: compiling sourcemod (Ambuild error!...)
 
You aren’t following the instructions.

You need to be running from the Visual Studio x86 Native Tools command promt.

Invisible Man 01-03-2018 04:26

Re: compiling sourcemod (Ambuild error!...)
 
I tried but anoter error:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin>vcvars32.bat
ERROR: Cannot determine the location of the VS Common Tools folder.
(there wasnt a batsh file named vcvars.bat as it is said in the tutorial. but there is a batchfile namde vcvars32.bat.)
so I started it from visual studios tools part.I am really stuck here!
excuse me for doing so many mistakes but this is my first time doing this!

EDIT & ADD:I run the VS x86 native tools command prompt but I face the same error!


All times are GMT -4. The time now is 09:14.

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