View Single Post
Naydef
Senior Member
Join Date: Dec 2015
Location: Doom Town, Nevada
Old 02-23-2016 , 14:47   Re: Can someone explain me HOW to COMPILE extension under Windows, please!
Reply With Quote #19

I opened the command prompt, but this again:
HTML Code:
ERROR: Cannot determine the location of the VS Common Tools folder.

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>cd cd C:\libs\sourcemod-m
aster\public\testproject
The filename, directory name, or volume label syntax is incorrect.

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>cd C:\libs\sourcemod-mast
er\public\testproject

C:\libs\sourcemod-master\public\testproject>dir
 Volume in drive C has no label.
 Volume Serial Number is 103A-1B24

 Directory of C:\libs\sourcemod-master\public\testproject

02/23/2016  04:42 PM    <DIR>          .
02/23/2016  04:42 PM    <DIR>          ..
02/07/2016  12:56 AM               951 AMBuilder
02/07/2016  12:56 AM            14,946 AMBuildScript
02/07/2016  12:56 AM             1,164 configure.py
02/18/2016  09:15 PM             1,898 extension.cpp
02/18/2016  09:52 PM             4,345 extension.h
02/21/2016  04:34 PM             6,240 extension.obj
02/07/2016  12:56 AM             6,304 Makefile
02/18/2016  07:30 PM    <DIR>          msvc10
02/21/2016  04:44 PM    <DIR>          msvc12
02/18/2016  07:30 PM    <DIR>          msvc8
02/18/2016  07:30 PM    <DIR>          msvc9
02/23/2016  07:17 PM    <DIR>          obj-windows-AMD64
02/07/2016  12:56 AM             1,299 PackageScript
02/18/2016  09:06 PM             3,142 smsdk_config.h
               9 File(s)         40,289 bytes
               7 Dir(s)  151,560,216,576 bytes free

C:\libs\sourcemod-master\public\testproject>python configure.py --sdks tf2
Warning: build is being configured in the source tree.
Re-using build folder: obj-windows-AMD64
Checking CC compiler (vendor test msvc)... ['cl', 'test.c', '-o', 'test.exe', '-
nologo', '-showIncludes']
not found
Checking CC compiler (vendor test gcc)... ['cl', 'test.c', '-o', 'test.exe']
not found
Traceback (most recent call last):
  File "configure.py", line 23, in <module>
    builder.Configure()
  File "C:\Program Files (x86)\Python35-32\lib\site-packages\ambuild2\frontend\v
2_0\prep.py", line 121, in Configure
    if not builder.generate():
  File "C:\Program Files (x86)\Python35-32\lib\site-packages\ambuild2\frontend\v
2_0\base\gen.py", line 274, in generate
    self.parseBuildScripts()
  File "C:\Program Files (x86)\Python35-32\lib\site-packages\ambuild2\frontend\v
2_0\base\gen.py", line 183, in parseBuildScripts
    self.evalScript(root)
  File "C:\Program Files (x86)\Python35-32\lib\site-packages\ambuild2\frontend\v
2_0\base\gen.py", line 243, in evalScript
    exec(code, new_vars)
  File "C:\libs\sourcemod-master\public\testproject\AMBuildScript", line 436, in
 <module>
    Extension.configure()
  File "C:\libs\sourcemod-master\public\testproject\AMBuildScript", line 131, in
 configure
    cxx = builder.DetectCompilers()
  File "C:\Program Files (x86)\Python35-32\lib\site-packages\ambuild2\frontend\v
2_0\base\gen.py", line 103, in DetectCompilers
    self.compiler = self.generator.detectCompilers().clone()
  File "C:\Program Files (x86)\Python35-32\lib\site-packages\ambuild2\frontend\v
2_0\amb2\gen.py", line 201, in detectCompilers
    self.base_compiler = detect.DetectCxx(os.environ, self.options)
  File "C:\Program Files (x86)\Python35-32\lib\site-packages\ambuild2\frontend\v
2_0\cpp\detect.py", line 56, in DetectCxx
    cc = DetectCxxCompiler(env, 'CC')
  File "C:\Program Files (x86)\Python35-32\lib\site-packages\ambuild2\frontend\v
2_0\cpp\detect.py", line 97, in DetectCxxCompiler
    raise Exception('Unable to find a suitable ' + var + ' compiler')
Exception: Unable to find a suitable CC compiler

C:\libs\sourcemod-master\public\testproject>
But I noticed the error on the top:
HTML Code:
ERROR: Cannot determine the location of the VS Common Tools folder.
Maybe this is the problem?
__________________
My plugins:
*None for now*


Steam:
naydef
Naydef is offline