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

SourceMod Build Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SovRedBit
Member
Join Date: May 2017
Old 12-04-2017 , 11:22   SourceMod Build Error
Reply With Quote #1

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
SovRedBit is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 12-04-2017 , 11:30   Re: SourceMod Build Error
Reply With Quote #2

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.
__________________
WildCard65 is offline
SovRedBit
Member
Join Date: May 2017
Old 12-04-2017 , 12:20   Re: SourceMod Build Error
Reply With Quote #3

And is there anyway to make it find the Day of Infamy SDK?
SovRedBit is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 12-06-2017 , 01:35   Re: SourceMod Build Error
Reply With Quote #4

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.
Fyren is offline
Reply


Thread Tools
Display Modes

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 17:57.


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