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

Compiling


Post New Thread Reply   
 
Thread Tools Display Modes
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 11-20-2015 , 19:40   Re: Compiling
Reply With Quote #11

Thanks a million, i will try now
__________________
gubka is offline
Send a message via ICQ to gubka
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 11-21-2015 , 12:38   Re: Compiling
Reply With Quote #12

Quote:
Originally Posted by WildCard65 View Post
SM's checkout-deps.sh automatically installs AMBuild into your python install(as long as you can use python in command prompt): https://github.com/alliedmodders/sou...s.sh#L108-L124

Hi again) What abount this file checkout-deps.sh, i cant open it , but how install ambuild on windows? in my python folder. Thanks
__________________
gubka is offline
Send a message via ICQ to gubka
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 11-21-2015 , 13:20   Re: Compiling
Reply With Quote #13

Quote:
Originally Posted by gubka View Post
Hi again) What abount this file checkout-deps.sh, i cant open it , but how install ambuild on windows? in my python folder. Thanks
if your trying to compile for linux, make sure checkout-deps.sh is executable then run it as you would any other bash script.

For windows, you need a bash terminal emulator(Github for windows includes one), and then run the bash script as you would in linux
WildCard65 is offline
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 11-22-2015 , 21:20   Re: Compiling
Reply With Quote #14

Quote:
Originally Posted by WildCard65 View Post
if your trying to compile for linux, make sure checkout-deps.sh is executable then run it as you would any other bash script.

For windows, you need a bash terminal emulator(Github for windows includes one), and then run the bash script as you would in linux

In this emulator I need to run checkout-desh.sp, after ambuild will be install , correct ?
__________________
gubka is offline
Send a message via ICQ to gubka
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 11-23-2015 , 06:53   Re: Compiling
Reply With Quote #15

this is what the checkout-deps.sh will do:
First, it'll grab and undecompress a copy of MYSQL 5.0 source.
Then it'll clone a copy of MM:S
Then it'll go and clone all the available hl2sdks
Then it'll run a check for ambuild, if it fails, it'll clone AMBuild then promptly install it.
WildCard65 is offline
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 11-25-2015 , 05:47   Re: Compiling
Reply With Quote #16

Quote:
Originally Posted by WildCard65 View Post
this is what the checkout-deps.sh will do:
First, it'll grab and undecompress a copy of MYSQL 5.0 source.
Then it'll clone a copy of MM:S
Then it'll go and clone all the available hl2sdks
Then it'll run a check for ambuild, if it fails, it'll clone AMBuild then promptly install it.

How I can use ambuild after installation ? Can I compile projects in VS?
__________________
gubka is offline
Send a message via ICQ to gubka
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 11-25-2015 , 06:54   Re: Compiling
Reply With Quote #17

Quote:
Originally Posted by gubka View Post
How I can use ambuild after installation ? Can I compile projects in VS?
Quote:
Originally Posted by WildCard65 View Post
now to configure AMBuild to build run the following(in any folder you want as an output folder, replace optimize with debug for debug build):
Code:
python ../configure.py --sdks present --enable-optimize
what --sdks present does is tell AMBuild to ONLY build with sdks available(found), if you set env up as instructed above, it'll only locate CSGO(may have case where it finds all but some).

for vs projects, just tack on --gen vs onto the end of the command line for configure.py

to build(with gen = ambuild2), do this:
Code:
ambuild
NOTE: you must have VS command line building enabled(the temp env changes via vsvars32.bat) in order to use the ambuild 2 gen system, VS gen doesn't require.

And if all is correct, the scripts will run(with no python exceptions) and build will be compile error free and link error free.
WildCard65 is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 11-25-2015 , 10:53   Re: Compiling
Reply With Quote #18

Compiling extensions truly is a pain in the ass. I wonder how AM's automatic build system does it for SM, MM, TF2Items and such.
Potato Uno is offline
psychonic

BAFFLED
Join Date: May 2008
Old 11-25-2015 , 11:05   Re: Compiling
Reply With Quote #19

Quote:
Originally Posted by Potato Uno View Post
I wonder how AM's automatic build system does it for SM, MM
We use a continuous integration system, Buildbot, in this case. It then drops the builds into a web-accessible directory.

All of our configs for it, short of credentials/paths are public.
psychonic is offline
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 12-02-2015 , 05:08   Re: Compiling
Reply With Quote #20

Hi again , anybody has extension which print to server console during server start
__________________
gubka is offline
Send a message via ICQ to gubka
Reply



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 08:45.


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