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

Solved Compiling SourceMod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 12-04-2016 , 07:39   Compiling SourceMod
Reply With Quote #1

Ciao guys,

I would like to compile the SourceMod, so I went along the instruction at Building sourcemod (I am running on windows).
But I got some problems..

I configured AMBuild for sourcemod by
Code:
E:\GITs\sourcemod\build>python ../configure.py --sdks csgo
And then I wanted to build the sourcemod by running
Code:
ambuild
But it gave me error:
Spoiler


So I copied hl2sdk-csgo\lib\win32\release\vs2013\libprotobuf.lib to hl2sdk-csgo\lib\win32\release\vs2015\libprotobuf.lib. But I got another error:
Spoiler


Is there a way to force the AMBuild use vs2015 compiler but use vs2013 stuff from dependencies? Or is there another way for me?

Thx in advance
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.

Last edited by KissLick; 12-04-2016 at 10:15. Reason: solved
KissLick is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-04-2016 , 08:29   Re: Compiling SourceMod
Reply With Quote #2

The reason why the vs2015 one has to be separate from the vs2013 one is because the vs2013 one is not ABI-compatible with vs2015. You cannot just copy it.

We don't currently include a 2015 one for that, but may shortly. I had it created locally, but some now-removed, global gitignore rules were hiding Release/* and *.lib, causing me to forget I had it.

Quote:
Originally Posted by KissLick View Post
Is there a way to force the AMBuild use vs2015 compiler but use vs2013 stuff from dependencies? Or is there another way for me?
Yes, if you have vs2013 installed. Using a vs2013 command prompt instead of a vs2015 one will cause it to compile against the vs2013 compiler or generate projects that use the vs2013 compiler (which will still open in vs2015 by default, just decline the auto-upgrade prompt on the project).
psychonic is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 12-04-2016 , 10:14   Re: Compiling SourceMod
Reply With Quote #3

Yep, installing vs2013 and AMBuilding it from it's command prompt helped. Thx!
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
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 22:16.


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