I think Learning while doing something is really valuable...however you might not agree with. Any way I am looking for an answer to the ambuild problem...It is the last part and if I solve it or learn to solve I would reach this project. I dont think It would be very diffrent if I upload (after succeding) or Nail ! Nail Just Help me finish this... Thanks a lot
AdabraIM, most likely the reconfiguration process was not successful. Try to run it again:
Код
python ../configure.py --sdk
And check the errors. Usually it happens when some pakages of the SDK don't exist or corrupted. Here is a list of the packages that You should have: 1) /SDK/hl2sdk-* (all the packages you need to build extensions for: hl2sdk-css, hl2sdk-tf2, hl2sdk-l4d2, hl2sdk-insurgency and so on, choose what You need) 2) /SDK/mmsource-1.10 (the version may be different, in my case only 1.10 is allowed) 3) /SDK/mysql-5.0 (the version may be different, in my case it's allowed to be mysql-5.*) 4) /SDK/sourcemod
Check the /SDK/sourcemod/AMBuildScript for valid location names: self.mysql_root for MySQL; self.mms_root for Metamod Source...
Сообщение отредактировал Nail - Вторник, 02.01.2018, 18:04:36
C:\Users\ME\source\alliedmodders\sourcemod\build>python ../configure.py --sdk s css --no-mysql Checking CC compiler (vendor test msvc)... ['cl', 'test.c', '-o', 'test.exe', '- nologo', '-showIncludes'] Compiler cl for CC failed: compiler failed with return code 2 Checking CC compiler (vendor test gcc)... ['cl', 'test.c', '-o', 'test.exe'] Compiler cl for CC failed: compiler failed with return code 2 Traceback (most recent call last): File "../configure.py", line 42, in <module> parser.Configure() File "C:\Python27\lib\site-packages\ambuild2\frontend\v2_1\prep.py", line 139, in Configure if not builder.generate(): File "C:\Python27\lib\site-packages\ambuild2\frontend\v2_1\base\gen.py", line 207, in generate self.parseBuildScripts() File "C:\Python27\lib\site-packages\ambuild2\frontend\v2_1\base\gen.py", line 57, in parseBuildScripts self.execContext(cx) File "C:\Python27\lib\site-packages\ambuild2\frontend\v2_1\base\gen.py", line 144, in execContext exec(code, scriptGlobals) File "C:\Users\ME\source\alliedmodders\sourcemod\AMBuildScript", line 614, in <module> SM.configure() File "C:\Users\ME\source\alliedmodders\sourcemod\AMBuildScript", line 212, in configure cxx = builder.DetectCxx() File "C:\Python27\lib\site-packages\ambuild2\frontend\v2_1\base\context.py", l ine 130, in DetectCxx self.cxx_ = self.generator_.detectCompilers().clone() File "C:\Python27\lib\site-packages\ambuild2\frontend\v2_1\amb2\gen.py", line 196, in detectCompilers self.base_compiler = detect.DetectCxx(self.target, os.environ, self.options)
File "C:\Python27\lib\site-packages\ambuild2\frontend\v2_1\cpp\detect.py", lin e 54, in DetectCxx cc = DetectCxxCompiler(env, 'CC') File "C:\Python27\lib\site-packages\ambuild2\frontend\v2_1\cpp\detect.py", lin e 88, in DetectCxxCompiler raise Exception('Unable to find a suitable ' + var + ' compiler') Exception: Unable to find a suitable CC compiler
what does it mean?? What compiler do I need to have or is there any problem with my vc?? note:I am not using mozilla-build cause I cant add git to its path and ...
Добавлено (04.01.2018, 13:39:38) --------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------- right now The only problem is this that it gives me the error saying that :couldn't find a CC compiler! What is wrong ? Can you please tell me where is my mistake?? I think Problem should be with VS... Can you also tell me which options do I have to choose in the installer of VS/VC to install?? Thanks a lot! (+Sorry for being so much miserable!)
Сообщение отредактировал AdabraIM - Вторник, 09.01.2018, 22:00:49
Oh good news! There is I solved the configuration part! now I pass configuring with no error but the last part I have problem When I type ambuild and press enter it starts compiling BUT After a while it ends and shows me the error : Build failed! Nail, Can you please tell me how to solve this problem!!!???? Thanks a lot! -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Share the log, it could be anything. Ambuild for windows is quit a new thing, it may not be competable with the old SDK. I would recommend to use the deprecated scheme. It least I've never had any problems with it.
And I uploaded the file of my all output of ambuild progress. Acctually I prefer to do it with the newer Ambuild but can you also please explain more about the deprecated scheme or give me a link to learn it??? Thanks a lot!
Гости не могут скачивать файлы
Сообщение отредактировал AdabraIM - Пятница, 05.01.2018, 17:10:43
I've never seen such errors. May be Bacardi or Bailopan knows. The deprecated way is to build sm via VS. Choose the relevant VS version "SDK\sourcemod-master\core\msvc*", run sourcemod_mm.vcxproj, choose the engine version and building mode and press "Build" I can't check it now, but it's the way I did it to build the extension for windows. I remember having some linking problems, so it may be a bit tricky. If it doesn't work, read the instruction again and try not to miss any small detail, even small difference can cause errors. Compare the instruction with the one from "wayback machine", it's been a long time and the process may have changed. I've never had any problems with linux+ambuild, it's always worked out of the box. Windows is rarely used as a server platform nowadays. Mb You'll find something interesting here: https://forums.alliedmods.net/showthread.php?t=265568
Сообщение отредактировал Nail - Пятница, 05.01.2018, 20:58:03
I got it...But only to be sure: Do I have to comment the 4 if-blocks in smn-console.cpp containing sm to unlock the command sm?? I really need to unlock sm because I cant do many operations right now without sm! I mean is that even possible to block “plugin” command and unlock “sm” command?? Thanks a lot!
Сообщение отредактировал AdabraIM - Среда, 10.01.2018, 10:48:37