Page 1 of 1
Server Build Errors Using Visual Studio 2017
Posted: Tue Apr 25, 2017 8:26 pm
by CoutteFlow
I have been following the steps on the Windows Section of the Building the Server Guide (The top half of
https://wiki.dspt.info/index.php/Building_the_Server) and I assumed I was doing so correctly until I reached the point where I attempt to clean and build the DSConnect, DSGame, and DSSearch servers in Visual Studio 2017 where it fails with 1600 errors. I am sure that the Mysql dspdb database has been created using the DSP_Import.bat file, though it seems like I am missing many files (About 23) such as accounts.sql, auction_house.sql, chars.sql, and others that do not appear in the database folder and navicat, but are referenced in the guide and the DSP_Import.bat file that should not drop all of the player data. I have downloaded and installed all possible C++ dependencies for Visual Studio, but I am not sure how to resolve the #include errors effectively, because there are so many errors. Does anyone have information on whether I have made a mistake, missed some instruction, or if I am missing necessary files?
Re: Server Build Errors Using Visual Studio 2017
Posted: Tue Apr 25, 2017 8:36 pm
by demolish
git reset --hard HEAD (or was it git reset -f)
and try building again, looks like something went wrong when cloning
also use only
Code: Select all
ECHO Creating Database dspdb
"c:\program files\mysql\mysql server 5.6\bin\mysqladmin"-h localhost -u root -pMYSQLPASS DROP dspdb
ECHO Creating Database dspdb
"c:\program files\mysql\mysql server 5.6\bin\mysqladmin"-h localhost -u root -pMYSQLPASS CREATE dspdb
ECHO Loading dspdb tables into the database
cd c:\darkstar\sql
FOR %%X IN (*.sql) DO ECHO Importing %%X & "c:\program files\mysql\mysql server 5.6\bin\mysql" dspdb -h localhost -u root -pMYSQLPASS < %%X
ECHO Finished!
instead of the delete stuff later unless youre updating server from previous revision and wish to preserve char data
Re: Server Build Errors Using Visual Studio 2017
Posted: Thu Jul 13, 2017 1:04 pm
by whasf
IChrisSmith wrote:I am currently having a similar issue. Followed everything step by step, even watched several video. When building I get 238 Errors.
Mostly all Code: C1083 Cannot open include file: 'stdlib.h': No such file or directory DSGame-server c:\dsp\src\common\detour\detouralloc.cpp
I attached a Screenshot as well.
Thank you.
Sounds like the Windows SDK isn't installed. I don't know how, as that is a part of a standard install of Visual Studio. Re-run the setup and make sure it is selected. Or find the Windows 8.1 SDK on the internet and install it. (I think that's the version (@Teo)?)
Re: Server Build Errors Using Visual Studio 2017
Posted: Fri Jul 14, 2017 2:14 pm
by TeoTwawki
@whasf we don't require a specific version of the SDK that I know of, I think you just have to have any win sdk at all that worked with win7 or higher? Am not 100% on that, I have multiple projects with so many diff build targets that I have so many GB of bloat on my system I can't tell.
Re: Server Build Errors Using Visual Studio 2017
Posted: Fri Jul 14, 2017 2:48 pm
by whasf
I think you changed the target for DSP back to Win8.1, I just retarget oldschool to the win10 SDK on my machine here...

Re: Server Build Errors Using Visual Studio 2017
Posted: Fri Jul 14, 2017 9:10 pm
by TeoTwawki
whasf wrote:I think you changed the target for DSP back to Win8.1, I just retarget oldschool to the win10 SDK on my machine here...

I set the target to default to whatever the system has. In VS my understanding was that if you don't specify a specific version it just uses the first one it finds that matches up the OS its running from (and seemed to work that way from muh crappy laptop).
b49e2238a868a517fa1bd3dd1aae1fa4b8e223bf
Commit Message wrote:Remove WindowsTargetPlatformVersion entirely - doesn't need specified.
If we do need to actually specify, I can prolly stick that in the section specific to the newer toolset builds instead of globally for all 4 build configs where it can cause probs.