Replies: 3 comments 1 reply
-
@orcmid I think it could be difficult (and probably cumbersome) to find a solution that works for all the users. Actually, that's one of the reasons I provide a self-contained standalone package for new users. Also note that an user that decides to follow that compilation route will probably be an advance user able to manage the required paths manually. By the way, very impressive your nfoTools, very clear, organized and well documented. |
Beta Was this translation helpful? Give feedback.
-
I have reverted to using Visual Studio Build Tools directly from cmd.exe. Doing static builds in place is easy. I have one sort-of hack for finding vcvarsall.bat. I now need see how to accomplish the same using VS Code. Then I can look at creating and using a static raylib.lib and working that from VS Code also. If I get anything useful I will see what can be contributed to here. PS: I like the Using-raylib-in-VSCode wiki page and also the C++ adaptation to use objects, but now I can't find that. |
Beta Was this translation helpful? Give feedback.
-
The current recommendation for using VS Build Tools later than VS 2015 is to make use of the "Developer Command Prompt for VS 201_x_" that is found in the Visual Studio folder under start page "All Programs." I think the "x64 Native Tools Command Prompt for VS 201_x_" is a better choice, since it is easier to find by just typing "x64" in the Windows 10 task-bar search field and clicking Enter when the first choice is the desired target. Typing command "cl" will provide confirmation. [Assumption: Internationalization of VS is one that does not interfere with this aspect.] After that, three things need to happen.
This is pretty wonky, and using Visual Studio itself (e.g., a Community edition) is certainly "simpler" in some sense. That does not get us into a nice place for using |
Beta Was this translation helpful? Give feedback.
-
I notice in projects/scripts/build-windows.bat that the attempt to discovery VS BuildTools uses WHERE which is great but I also see dependence on specific full-path locations of BuildTools. There are a lot of assumptions in that, none satisfied by my installation of VS 2019 Build Tools :).
In the past, I relied on the fact that there were settings that could be used to discover the the installation of VS versions and their tools, as a way of providing some automatiion for people who might download projects of mine for Windows. Here is what I get for WHERE cl.exe.
I need a more flexible procedure. I would introduce it in my nfoTools project for setting up for compilation with build tools no matter what edition is installed, and what I am building 1
aylib.lib
or any other project using the VC compiler . I am also a little concerned about caveates in the -? and documentation of lib.exe and link.exe about whrre these must be run under. I think that just means the necessary vcvars have been run. I have to test that.The project I got stuck on when VS Build Tools became undiscoverable via settings can be seen in the
VCbind.bat
script in https://github.com/orcmid/nfoTools/tree/master/devKits/WinDev/VCbinder/devBindIf we can find a better discovery technique that a beginner script could use (say, for their first effort at building a cloned project) , I would love to incorporated that in the raylib script for batch operation too.
Anyone have thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions