Compiling SourceMod - questions and issues
A week ago I've started trying to compile SourceMod on Linux, following this article:
http://wiki.alliedmods.net/Compiling_SourceMod Unfortunately it didn't work (I've had to move around some source files and it just didn't seem right although I had the exact folder structure as described in the article), until I've found this: https://bitbucket.org/asherkin/sourcemod-compile Which is genius, to keep it short. But again I've stumbled across some issues here: -SM needed MM1.8 to compile, easy to fix, as well as adding MySQL -The output files seem to be extremely huge compare to the files you get by downloading a precompiled package from the website. I don't know why and honestly it's annoying to upload files that are sometimes ten times the original size. This doesn't feel right as well, although it works. EDIT: Manages to fix this by using "python3 ../configure.py --enable-optimize". -Using AMBuilder (which I am all the time, FYI), the plugins won't compile during the compilation process. Well they do, but the console hangs and I have to press enter each time it tries to compile a new plugin. Then it works for some strange reason, but often (not everytime), this message appears, which doesn't affect the procedure, but I think it's still important to mention: Code:
"/home/vagrant/sourcemod-1.4/build/spcomp/spcomp" "SM_GENERATED_BUILD=" "-i../includes" "-i../../plugins/include" "/home/vagrant/sourcemod-1.4/plugins/admin-flatfile/admin-flatfile.sp" EDIT: The last issue seems to have been fixed as well. I've created a shellscript inside the sourcemod-1.4 folder which deletes the contents of build and then just goes ahead and Code:
cd build After all it would be great to link to asherkin's approach in the wiki article. Thanks again. |
Re: Compiling SourceMod - questions and issues
The Vagrant VM isn't really setup for compiling SourceMod itself right now, I have some changes locally that make it a bit more useful for that.
You issue with the compiler sounds like you did a debug build of it: https://bugs.alliedmods.net/show_bug.cgi?id=5626 |
Re: Compiling SourceMod - questions and issues
Yup, no wonder it became "suddenly" fixed when I changed the configuration parameters.
As I've said although your setup is meant to compile extensions, it only needs a few changes and scripts to make the compilation of SourceMod both possible and comfortable. |
All times are GMT -4. The time now is 20:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.