Page 1 of 1

UOX3 Windows Building

Posted: Fri Aug 21, 2020 3:18 am
by Mindless Automaton
Since I did so well on linux, I thought I would try Windows:
Option A) Visual Studio 2017 (v15.9.22+)[\quote]

MS Visual Studio Community 2017 v 15.9.26 was the version I could download for 2017.
1) Execute Vcvarsall.bat x86 -vcvars_ver=14.0 from a command prompt in the "C:\Program Files (x86)\Microsoft Visual Studio\2017\VC\Auxiliary\Build" folder to enable the nmake command[\quote]

The batch file errors "VC++ 14.0 Toolset Installation was not found" so a bit of Googlefu revealed I could add this as an individual component with the installer, it calls it: "VC++ 2015.3 v14.00 (v140) toolset for desktop" Batch worked after that. :P
3)- 9) can now copy the new UOX3.exe file to the root folder of your actual UOX3 project (not the git repository) and run it!
and then!

Code: Select all

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2019	unresolved external symbol "class std::tuple<char *,unsigned __int64> __cdecl UOP::mapUOP(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (?mapUOP@UOP@@YA?AV?$tuple@PAD_K@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@H@Z) referenced in function "public: __thiscall UOX::UOXFile::UOXFile(char const * const,char const * const)" (??0UOXFile@UOX@@QAE@QBD0@Z)	UOX3_Official	C:\uox3\source\fileio.obj	1	
This is from develop branch so maybe I got it while something is in progress so I will try again with master. (last time I compiled on windows was like VB6)

I think I broke GitHub Desktop though, I switched to master (leave my changes) and then try to switch back to develop and it doesn't :(

Re: UOX3 Windows Building

Posted: Fri Aug 21, 2020 1:28 pm
by Xuri
Try the following, after opening UOX3_Official.sln in Visual Studio:
Add UOPInterface.hpp to the Header Files > Other filter in Solution Explorer
Add UOPInterface.cpp to the Source Files > Other filter in Solution Explorer
Then Build > Rebuild UOX3_Official

Or... pull the last commit I made to the develop branch, which basically contains the updated solution filters that I forgot to commit previously ^^;;

Re: UOX3 Windows Building

Posted: Sun Aug 30, 2020 2:21 am
by Mindless Automaton
Xuri wrote: Or... pull the last commit I made to the develop branch, which basically contains the updated solution filters that I forgot to commit previously ^^;;
Ok, I did this and was able to compile. Thanks!