Re: Add a flags update forward in 1.8.3
I installed all 3 of them (6+ GB, woah) and I got the 14.0 directory. There is the vcvarsall.bat file in it and a vcvars32.bat in the VC/bin directory, so which one do I use and how? Do I run it from my CPPStuff directory using cmd.exe/git bash and what do I need to write exactly because I just wrote "vcvars32" and it says invalid command?
|
Re: Add a flags update forward in 1.8.3
I think you can use either "vcvars32" or "vcvarsall x86", but I'm using "vcvars32" personally and I have the VC/bin directory in my %PATH% environment variable so I can just run it (or any other VC tools) from any directory.
You run it from the same instance of cmd.exe that you are going to use for "ambuild". Doesn't matter what your working directory is, just run it and use that same cmd.exe instance for building AMXX. Environment variables are (unless explicitly set system-wide or per-user) per-process, so you run "vcvars32" to set up some environment variables for your current instance of cmd.exe. AMBuild isn't going to find the C++ compiler unless you do it. Quote:
And then people rant how Linux is difficult to use (try Googling "Linux is difficult"). A working C++ environment is so much easier to set up there. |
Re: Add a flags update forward in 1.8.3
Yeah, but how do I actually run it? I just dragged and dropped the file in the commandline and hit enter - https://i.imgur.com/f6QI8h2.png - nothing seems to be happening. Then I executed the next python command and it threw an exception saying the compiler is not found. I'm not very familiar with the commandline commands. Do I need to be in the C:Program Files directory when I run it? Do I need to get back to my CPPStuff directory for the other commands? How do I actually go back to it? The "cd" command doesn't want to put me in the E: disk for some reason.
Basically, where do I need to be in order to execute these commands and how do I get there in cmd.exe: PHP Code:
|
Re: Add a flags update forward in 1.8.3
https://image.prntscr.com/image/z9N2...3mvpZGc7xg.png
Now because "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin" is in my %PATH%, I can just write "vcvars32" instead of specifying the full path and it would find it. Yes, seemingly nothing happens when you run it but it will set up the environment for your cmd.exe process. Also if you want to switch to a directory on another drive you just have to type in "E:" for example into the command prompt. I don't know why, it's dumb. https://image.prntscr.com/image/eSrG...vXUnM24euA.png They look like emoji though. |
Re: Add a flags update forward in 1.8.3
Ah, that's better. It worked now, got to the "ambuild" command, but got an error related to some "amtl" deirectory when I executed it and the build failed: https://i.imgur.com/4yTKj8p.png
Do i need this too? I used "git clone" on it and put it in the CPPStuff directory, but it didn't change anything. |
Re: Add a flags update forward in 1.8.3
Whoopsie, I knew I would forget something.
Go to amxmodx directory and execute Code:
git submodule init |
Re: Add a flags update forward in 1.8.3
It finally worked! I got the .dll files. I'll try out if they actually work later and then do some modifications. Thank you very much.
|
Re: Add a flags update forward in 1.8.3
It is done! It was actually pretty easy and fun to do. Here's the pull request: https://github.com/alliedmodders/amxmodx/pull/475
For anyone else who is interested in doing this, here is the final "tutorial": PHP Code:
|
All times are GMT -4. The time now is 17:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.