AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   SourceMod Build Error (https://forums.alliedmods.net/showthread.php?t=303371)

SovRedBit 12-04-2017 11:22

SourceMod Build Error
 
Hello, i am using Docker on Windows 10 with Ubuntu 14.04, i made everything using this instruction:
https://wiki.alliedmods.net/Building_sourcemod#Linux
But it always show me this error, and yes, when i am using something like VirtualBox or maybe Linux on real machine it works well, so what's wrong with docker and SourceMod compiling?

Code:

root@83cab58a3667:/home/alliedmodders/sourcemod/build# python ../configure.py
Traceback (most recent call last):
  File "../configure.py", line 40, in <module>
    parser.Configure()
  File "/root/.local/lib/python2.7/site-packages/ambuild2/frontend/v2_1/prep.py", line 139, in Configure
    if not builder.generate():
  File "/root/.local/lib/python2.7/site-packages/ambuild2/frontend/v2_1/base/gen.py", line 207, in generate
    self.parseBuildScripts()
  File "/root/.local/lib/python2.7/site-packages/ambuild2/frontend/v2_1/base/gen.py", line 57, in parseBuildScripts
    self.execContext(cx)
  File "/root/.local/lib/python2.7/site-packages/ambuild2/frontend/v2_1/base/gen.py", line 144, in execContext
    exec(code, scriptGlobals)
  File "/home/alliedmodders/sourcemod/AMBuildScript", line 532, in <module>
    SM.detectSDKs()
  File "/home/alliedmodders/sourcemod/AMBuildScript", line 115, in detectSDKs
    raise Exception('Could not find a valid path for {0}'.format(sdk.envvar))
Exception: Could not find a valid path for HL2SDKDOI


WildCard65 12-04-2017 11:30

Re: SourceMod Build Error
 
SourceMod's build scripts has 3 ways of locating dependencies:
  1. Use the value of the associated cli option, for the option for hl2 sdks, it's the folder containing the sdk folders.
  2. Use the value obtained from the associated environment variable (skipped if option value is provided).
  3. Traverse the folder hierarchy from the current working directory until a valid folder is located.
SourceMod couldn't locate the folder for Day of Infamy.

Should all 3 ways fail, the script will raise a Python exception.

SovRedBit 12-04-2017 12:20

Re: SourceMod Build Error
 
And is there anyway to make it find the Day of Infamy SDK?

Fyren 12-06-2017 01:35

Re: SourceMod Build Error
 
If your Docker container doesn't work but building it on your real system works, then complain to the person who made the container.

If your container is only not finding DoI's SDK but does find the others, it might be that you're running an older checkout-deps.sh that doesn't create the SDK directory for the DoI branch.


All times are GMT -4. The time now is 05:18.

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