|Cool VL Viewer forum
|MSBuild line to run the build on windows from the cmdline
|Page 1 of 1|
|Author:||kathrine [ 2021-11-06 14:35:18 ]|
|Post subject:||MSBuild line to run the build on windows from the cmdline|
if you would like to compile the viewer on windows without starting VisualStudio GUI, it can be done with just MSBuild as well:
My current Windows build batchfile looks like this:
Might be nicer if you enable the SSH Daemon on Windows and just trigger the build via SSH in a Windows VM instead of needing a GUI.
|Author:||Henri Beauchamp [ 2021-11-06 22:13:06 ]|
|Post subject:||Re: MSBuild line to run the build on windows from the cmdlin|
Ah yes... Since I restricted the build types to "Release" only for Windows, such a command is now possible without an auxiliary tool (LL uses a custom VSTool.exe to configure the build type, else it defaults to Debug, whatever the type you pass to msbuild)...
However, I do not have VS2017 installed in the directory you quote in the batch file. Also, the Python executable should already be in your PATH (else the windows-prebuild-vs2017.bat script won't work in the first place). Finally, using %CD% instead of an absolute path allows to just double-click on the batch file (when it is placed along windows-prebuild-vs2017.bat) to build the viewer, wherever you place its sources. Oh, and you do not need to pass the CL_MPCount parameter (the cmake files already specify /MP, that VS should adapt automatically to the available cores). Here is a modified script that should work for default VS2017 Community Edition installations:
This said, I do not use ssh to compile the Windows (and Linux) builds, but a VirtualBox VM (that I start only when I need to produce a new official build)... So, it would mean using the Windows terminal/console instead, which is extremely poor (in particular with only a limited scroll back history, not resizable in width, etc...). I definitely prefer the GUI (especially to debug the VS2017 idiosyncrasies that sometimes cause a new release to fail building at my first try).
I'll add the build script to next release however. Thanks for the suggestion !
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group