Windows 10 Compile Failure with Alpha 8.0
-
- Trader
- Posts: 21
- Joined: Thu Dec 30, 2021 3:06 am
- Location: Canada
Windows 10 Compile Failure with Alpha 8.0
The compile appears to have gone fine, and the vegastrike-engine.exe is present in my bin subdirectory. But I have nothing in my Appdata directory, as per below results:
PS D:\Users\KenH\Downloads\VSA1\VSA1\bin> .\vegastrike-engine -d"D:\Users\KenH\Downloads\VSA1\VSA1\data"
[2021-12-29 21:59:35.307439] [0x000017b4] [trace] Registering codec ogg
[2021-12-29 21:59:35.308436] [0x000017b4] [trace] .
Legacy Mode: FALSE
In path D:\Users\KenH\Downloads\VSA1\VSA1\bin
Windows version 6 2
Vega Strike
See http://www.gnu.org/copyleft/gpl.html for license details.
ARG #1 = -dD:\Users\KenH\Downloads\VSA1\VSA1\data
Using data dir specified on command line : D:\Users\KenH\Downloads\VSA1\VSA1\data
GOT SUBDIR ARG =
Found MODDIR = D:\Users\KenH\Downloads\VSA1\VSA1\data/mods
USING HOMEDIR : C:\Users\KenH\AppData\Local\.vegastrike as the home directory
CONFIGFILE - No config found in home : C:\Users\KenH\AppData\Local\.vegastrike/vegastrike.config
CONFIGFILE - No config found in data dir : D:\Users\KenH\Downloads\VSA1\VSA1\data/vegastrike.config
Have I missed a step? Am I supposed to install vsUtCS separately? If so, where can I find the instructions for that?
Thanks.
PS D:\Users\KenH\Downloads\VSA1\VSA1\bin> .\vegastrike-engine -d"D:\Users\KenH\Downloads\VSA1\VSA1\data"
[2021-12-29 21:59:35.307439] [0x000017b4] [trace] Registering codec ogg
[2021-12-29 21:59:35.308436] [0x000017b4] [trace] .
Legacy Mode: FALSE
In path D:\Users\KenH\Downloads\VSA1\VSA1\bin
Windows version 6 2
Vega Strike
See http://www.gnu.org/copyleft/gpl.html for license details.
ARG #1 = -dD:\Users\KenH\Downloads\VSA1\VSA1\data
Using data dir specified on command line : D:\Users\KenH\Downloads\VSA1\VSA1\data
GOT SUBDIR ARG =
Found MODDIR = D:\Users\KenH\Downloads\VSA1\VSA1\data/mods
USING HOMEDIR : C:\Users\KenH\AppData\Local\.vegastrike as the home directory
CONFIGFILE - No config found in home : C:\Users\KenH\AppData\Local\.vegastrike/vegastrike.config
CONFIGFILE - No config found in data dir : D:\Users\KenH\Downloads\VSA1\VSA1\data/vegastrike.config
Have I missed a step? Am I supposed to install vsUtCS separately? If so, where can I find the instructions for that?
Thanks.
-
- The Shepherd
- Posts: 5841
- Joined: Fri May 13, 2005 8:37 pm
- Location: Ottawa
- Contact:
Re: Windows 10 Compile Failure with Alpha 8.0
Welcome Kenner IIRC since our settings app does not compile on Windows yet there is a bug in the GTK library/ddl that Microsoft has not addressed yet you have to put the config file in the home folder manually. Have asked one of our devs to chime in here.
Enjoy the Choice
Enjoy the Choice
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
-
- Trader
- Posts: 21
- Joined: Thu Dec 30, 2021 3:06 am
- Location: Canada
Re: Windows 10 Compile Failure with Alpha 8.0
Thanks - appreciate the reply. Just need to know where to get the config file from, and I "should" be good to go.
-
- Trader
- Posts: 21
- Joined: Thu Dec 30, 2021 3:06 am
- Location: Canada
Re: Windows 10 Compile Failure with Alpha 8.0
Hi,
Sorry to be a pain, but you've slipped past my knowledge level now.
I'm not sure what to do with that link? Am I supposed to have github installed? Is there a specific sub-directory within that link where I find VS:UtCS?
I used to be okay with SVN, but I confess that I'm completely lost with github. Any help would be appreciated.
Sorry to be a pain, but you've slipped past my knowledge level now.
I'm not sure what to do with that link? Am I supposed to have github installed? Is there a specific sub-directory within that link where I find VS:UtCS?
I used to be okay with SVN, but I confess that I'm completely lost with github. Any help would be appreciated.
-
- Trader
- Posts: 21
- Joined: Thu Dec 30, 2021 3:06 am
- Location: Canada
Re: Windows 10 Compile Failure with Alpha 8.0
Update - never mind, I figured it out. Turns out Visual Studio can do a clone onto my computer. I've got the program up and running. Now I just need to figure out how to navigate, dock, etc. Looks good so far in Windows, though.
-
- The Shepherd
- Posts: 5841
- Joined: Fri May 13, 2005 8:37 pm
- Location: Ottawa
- Contact:
Re: Windows 10 Compile Failure with Alpha 8.0
You could of cloned the Assets repo or just got a zip file of it from the github site one of the options that github's web interface offers. But glad you got it running BTW the config file is standard XML that you can edit with notepad++.
Enjoy the Choice
Enjoy the Choice
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
-
- Merchant
- Posts: 37
- Joined: Thu May 25, 2017 6:26 pm
Re: Windows 10 Compile Failure with Alpha 8.0
Hi there Kenner!!
Since I am also trying to compile it and it's something WAY ABOVE my paygrade , is there any step by step guide?
Since I am also trying to compile it and it's something WAY ABOVE my paygrade , is there any step by step guide?
-
- Trader
- Posts: 21
- Joined: Thu Dec 30, 2021 3:06 am
- Location: Canada
Re: Windows 10 Compile Failure with Alpha 8.0
The instructions provided are mostly complete:
### Compiling On Windows
Vega Strike is now compiling on Windows! If you want to compile it, try it out, and perhaps offer feedback, that would certainly be welcome.
To compile Vega Strike on Windows, start by installing Visual Studio 2019, if you haven't already. When selecting the Workloads and Components to install, include at least "C++ for Desktop"; "Python"; and a recent build of the Windows SDK. Probably Git and the GitHub for Windows extension also. Install the latest Visual Studio updates as well.
Once Visual Studio finishes installing, reboot your computer. Then, find `Developer PowerShell for VS 2019` on the Start menu; alt-click it ("right-click"); and choose "Run as Administrator." Run `Set-ExecutionPolicy RemoteSigned` (or another suitable PowerShell Execution Policy of your choice). Type `Y` and press Enter to confirm. Exit PowerShell. Now reopen `Developer PowerShell for VS 2019`, this time without Admin privileges, and run `script/bootstrap.ps1`. Once that finishes, reboot your computer again. Finally, open `Developer PowerShell for VS 2019` one more time, and run `script/build.ps1`.
Assuming all the above steps succeed, you are now ready to run Vega Strike. Note that `vegasettings` is not currently building on Windows, so you will need to edit `vegastrike.config` manually as needed. Also note: Windows installer is still pending.
Finally, note that the location of the `.vegastrike` folder has changed since v0.5.1r1. It will now be located here: `C:\Users\<YourUserName>\AppData\Local\.vegastrike`.
What's missing from the instructions are that you also need to install Upon the Coldest Sea assets as well. The link for that is in an earlier email.
Finally, I created a .bat file in order to run the game without having to enter a command line every time. This is what's in mine, but you'll need to tweak your settings for wherever the bits end up:
D:\Users\KenH\Downloads\VSA1\VSA1\bin\./vegastrike-engine.exe -d"D:\Users\KenH\Source\Repos\Assets-Production"
(the -d is to specify the data directory).
Also, I think you also need to put vegastrike.config in your AppData directory. Mine is in C:\Users\KenH\AppData\Local\.vegastrike, but again, yours will vary.
### Compiling On Windows
Vega Strike is now compiling on Windows! If you want to compile it, try it out, and perhaps offer feedback, that would certainly be welcome.
To compile Vega Strike on Windows, start by installing Visual Studio 2019, if you haven't already. When selecting the Workloads and Components to install, include at least "C++ for Desktop"; "Python"; and a recent build of the Windows SDK. Probably Git and the GitHub for Windows extension also. Install the latest Visual Studio updates as well.
Once Visual Studio finishes installing, reboot your computer. Then, find `Developer PowerShell for VS 2019` on the Start menu; alt-click it ("right-click"); and choose "Run as Administrator." Run `Set-ExecutionPolicy RemoteSigned` (or another suitable PowerShell Execution Policy of your choice). Type `Y` and press Enter to confirm. Exit PowerShell. Now reopen `Developer PowerShell for VS 2019`, this time without Admin privileges, and run `script/bootstrap.ps1`. Once that finishes, reboot your computer again. Finally, open `Developer PowerShell for VS 2019` one more time, and run `script/build.ps1`.
Assuming all the above steps succeed, you are now ready to run Vega Strike. Note that `vegasettings` is not currently building on Windows, so you will need to edit `vegastrike.config` manually as needed. Also note: Windows installer is still pending.
Finally, note that the location of the `.vegastrike` folder has changed since v0.5.1r1. It will now be located here: `C:\Users\<YourUserName>\AppData\Local\.vegastrike`.
What's missing from the instructions are that you also need to install Upon the Coldest Sea assets as well. The link for that is in an earlier email.
Finally, I created a .bat file in order to run the game without having to enter a command line every time. This is what's in mine, but you'll need to tweak your settings for wherever the bits end up:
D:\Users\KenH\Downloads\VSA1\VSA1\bin\./vegastrike-engine.exe -d"D:\Users\KenH\Source\Repos\Assets-Production"
(the -d is to specify the data directory).
Also, I think you also need to put vegastrike.config in your AppData directory. Mine is in C:\Users\KenH\AppData\Local\.vegastrike, but again, yours will vary.
-
- Trader
- Posts: 21
- Joined: Thu Dec 30, 2021 3:06 am
- Location: Canada
Re: Windows 10 Compile Failure with Alpha 8.0
If any step is not clear, or you need help, just post a follow-up and I'll help if I can. If not, one of the developers usually drops in with the solution!
-
- Trader
- Posts: 21
- Joined: Thu Dec 30, 2021 3:06 am
- Location: Canada
Re: Windows 10 Compile Failure with Alpha 8.0
Also, just for a laugh, I downloaded and installed the PWCU assets and tried to get it to run, but I don't think it's compatible with the latest alpha version. It throws some catastrophic errors and quits.
-
- Trader
- Posts: 21
- Joined: Thu Dec 30, 2021 3:06 am
- Location: Canada
Re: Windows 10 Compile Failure with Alpha 8.0
Oh... forgot to mention - really super important - make sure your directory path is not too long and does not include any spaces. The compiler really has a problem if your path is too long. That's why I shortened my download directory name to VSA1 before starting the install (the second time). Experience is a great teacher!
-
- Merchant
- Posts: 37
- Joined: Thu May 25, 2017 6:26 pm
Re: Windows 10 Compile Failure with Alpha 8.0
Thank you Kenner, for your swift reply!!
I 've also tried the procedure posted on the vega-strike site, but generates errors!! (But I am a complete noob , so I expect that I will not get it right, on my first try !!).
I 've also tried the procedure posted on the vega-strike site, but generates errors!! (But I am a complete noob , so I expect that I will not get it right, on my first try !!).
Same think happens when I 'm trying to build vega-strike in Manjaro!!! Never got the bloody think to work!!! On the other hand I was able to install it, in a virtual machine running PoP OS 20.04. Mouse movement is jerky , and for some reason (on the VmWare side), my joystick is not recognized, but I got it to run!!Also, just for a laugh, I downloaded and installed the PWCU assets and tried to get it to run, but I don't think it's compatible with the latest alpha version. It throws some catastrophic errors and quits.
-
- Trader
- Posts: 21
- Joined: Thu Dec 30, 2021 3:06 am
- Location: Canada
Re: Windows 10 Compile Failure with Alpha 8.0
When you run the compiler, it will generate a ton (no exaggeration) of errors. However, for me, none of them were fatal. Most of them are about floats being converted, that kind of thing. At the end, it still generated the executables. Did that not happen for you?
-
- The Shepherd
- Posts: 5841
- Joined: Fri May 13, 2005 8:37 pm
- Location: Ottawa
- Contact:
Re: Windows 10 Compile Failure with Alpha 8.0
Most of those errors are warnings and are present in the Linux build as well still a lot of cleaning of the code needed our focus has been updating the library API.
Enjoy the Choice
Enjoy the Choice
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
-
- Merchant
- Posts: 37
- Joined: Thu May 25, 2017 6:26 pm
Re: Windows 10 Compile Failure with Alpha 8.0
No! And I had errors, running both scripts!! But I will give it another try, this weekend and I will try to post any logs!!When you run the compiler, it will generate a ton (no exaggeration) of errors. However, for me, none of them were fatal. Most of them are about floats being converted, that kind of thing. At the end, it still generated the executables. Did that not happen for you?
For some reason I could not build in Manjaro, both in real hardware and VMWare!! I will also post the logs!!!Most of those errors are warnings and are present in the Linux build as well still a lot of cleaning of the code needed our focus has been updating the library API.
-
- Merchant
- Posts: 37
- Joined: Thu May 25, 2017 6:26 pm
Re: Windows 10 Compile Failure with Alpha 8.0
I tried compiling the latest alpha, and still had no luck whatsoever. These are the errors it generates when I try to run the "bootstrap.ps1" script:
Now, if I just open the source folder with Visual Studio 2019, it generates the following errors:
The "build.ps1" script, just stops, without generating anything!!PS C:\Users\Cmdr_Kal\source\repos> script/bootstrap.ps1
Directory: C:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 11/1/2022 10:42 πμ Projects
fatal: destination path 'vcpkg' already exists and is not an empty directory.
Downloading https://github.com/microsoft/vcpkg-tool ... /vcpkg.exe -> C:\Projects\vcpkg\vcpkg.exe... done.
Validating signature... done.
. : The term 'refreshenv' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\Cmdr_Kal\source\repos\script\bootstrap.ps1:41 char:3
+ . refreshenv
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (refreshenv:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Now, if I just open the source folder with Visual Studio 2019, it generates the following errors:
Severity Code Description Project File Line Suppression State
Error CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake 230
Severity Code Description Project File Line Suppression State
Error CMake Error at C:\Users\Cmdr_Kal\Documents\VS_Projects\Vega-Strike-Engine-Source-0.8.0-alpha3\engine\CMakeLists.txt:540 (ADD_SUBDIRECTORY):
ADD_SUBDIRECTORY given source "../ext/" which is not an existing directory.
++ boost dir: ../ext/ Vega_Strike C:\Users\Cmdr_Kal\Documents\VS_Projects\Vega-Strike-Engine-Source-0.8.0-alpha3\engine\CMakeLists.txt 540
-
- Merchant
- Posts: 51
- Joined: Thu Aug 29, 2019 2:07 pm
Re: Windows 10 Compile Failure with Alpha 8.0
Hi Captain_Kal,
Hopefully I can help get you going here. This error:
What is the exact output of the "build.ps1" script, if any? Are you running it as ".\script\build.ps1", from the Vega-Strike-Engine-Source root directory?
Hopefully I can help get you going here. This error:
is unfortunate, but can be safely ignored.. : The term 'refreshenv' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\Cmdr_Kal\source\repos\script\bootstrap.ps1:41 char:3
+ . refreshenv
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (refreshenv:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
What is the exact output of the "build.ps1" script, if any? Are you running it as ".\script\build.ps1", from the Vega-Strike-Engine-Source root directory?
-
- Merchant
- Posts: 37
- Joined: Thu May 25, 2017 6:26 pm
Re: Windows 10 Compile Failure with Alpha 8.0
Thank you very much for your response. Developer Powershell for VS 2019, uses the default (I think) VS 2019 directory. In my case:
First
Then:
I 've copied the source code in it. And then I run the scripts:PS C:\Users\Cmdr_Kal\source\repos>
First
PS C:\Users\Cmdr_Kal\source\repos> script/bootstrap.ps1
Then:
PS C:\Users\Cmdr_Kal\source\repos> script/build.ps1
-
- Merchant
- Posts: 37
- Joined: Thu May 25, 2017 6:26 pm
Re: Windows 10 Compile Failure with Alpha 8.0
Tried again, with the new "alpha" source code (v0.8.0-alpha5).
This time the script was completed (yeah!!!!), but it didn't produced a vegastrike executable, since it encountered a fatal error:
Anyway it did produced, some executables:
This time the script was completed (yeah!!!!), but it didn't produced a vegastrike executable, since it encountered a fatal error:
This was the final message after a couple of pages of messages!!!!! I think I did something wrong with the libraries and the linker could not find them.C:\Users\Cmdr_Kal\source\repos\build\Release\vegastrike-engine.exe : fatal error LNK1120: 43 unresolved externals [C:\U
sers\Cmdr_Kal\source\repos\build\vegastrike-engine.vcxproj]
Anyway it did produced, some executables:
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 21/1/2022 9:20 πμ bin
.\build\Release\vegastrike-engine.exp
.\build\Release\vegastrike-engine.lib
.\build\Release\vegastrike-engine.pdb
.\build\Release\vegastrike-engine_com.lib
.\build\Release\vegastrike-OPcollide.lib
5 File(s) copied
.\build\objconv\Release\libexpat.dll
.\build\objconv\Release\vega-meshtool.exe
.\build\objconv\Release\vega-meshtool.pdb
.\build\objconv\Release\vs-buildenv-asteroidgen.exe
.\build\objconv\Release\vs-buildenv-asteroidgen.pdb
.\build\objconv\Release\vs-buildenv-replace.exe
.\build\objconv\Release\vs-buildenv-replace.pdb
.\build\objconv\Release\vs-buildenv-trisort.exe
.\build\objconv\Release\vs-buildenv-trisort.pdb
9 File(s) copied
-
- Merchant
- Posts: 51
- Joined: Thu Aug 29, 2019 2:07 pm
Re: Windows 10 Compile Failure with Alpha 8.0
OK cool, so we're making some progress. Now to figure out why the linker can't find the libraries it needs.
Can you open your Developer PowerShell window, and run the following command:
Can you open your Developer PowerShell window, and run the following command:
Code: Select all
echo $env:VCPKG_ROOT
-
- Merchant
- Posts: 51
- Joined: Thu Aug 29, 2019 2:07 pm
Re: Windows 10 Compile Failure with Alpha 8.0
Also, can you check that the C:\Projects directory exists, and that a directory named vcpkg exists inside of that?
-
- Merchant
- Posts: 37
- Joined: Thu May 25, 2017 6:26 pm
Re: Windows 10 Compile Failure with Alpha 8.0
It Returned this message:Can you open your Developer PowerShell window, and run the following command:
CODE: SELECT ALL
echo $env:VCPKG_ROOT
C:\Projects\vcpkg
Yes, on both!!Also, can you check that the C:\Projects directory exists, and that a directory named vcpkg exists inside of that?
-
- Merchant
- Posts: 37
- Joined: Thu May 25, 2017 6:26 pm
Re: Windows 10 Compile Failure with Alpha 8.0
And for the bravest of the brave, , I tried to build 8.0 alpha 1, and copied the error messages, in a txt file, that I attached!!
You do not have the required permissions to view the files attached to this post.
-
- Merchant
- Posts: 51
- Joined: Thu Aug 29, 2019 2:07 pm
Re: Windows 10 Compile Failure with Alpha 8.0
OK. Good to know. So far so good.Captain_Kal wrote: ↑Sun Jan 23, 2022 12:44 pmIt Returned this message:Can you open your Developer PowerShell window, and run the following command:
CODE: SELECT ALL
echo $env:VCPKG_ROOT
C:\Projects\vcpkgYes, on both!!Also, can you check that the C:\Projects directory exists, and that a directory named vcpkg exists inside of that?
-
- Merchant
- Posts: 51
- Joined: Thu Aug 29, 2019 2:07 pm
Re: Windows 10 Compile Failure with Alpha 8.0
Wow. Okay. It looks like the version of Boost that the linker is trying to use, was built for Windows 7, not for Windows 10.Captain_Kal wrote: ↑Sun Jan 23, 2022 5:53 pm And for the bravest of the brave, , I tried to build 8.0 alpha 1, and copied the error messages, in a txt file, that I attached!!
Do you have multiple instances of Boost on your system, by any chance? Or perhaps an out-of-date version? (You could search your system for files and folders named
Code: Select all
boost*.*
Next time you try building the code, can you perhaps delete the folder
Code: Select all
C:\Users\Cmdr_Kal\source\repos\build
Thanks!