Open kungfooman opened 6 years ago
Thanks for this ... 👍
I get a error: "cannot convert argument 1 from 'sChar ' to 'const sChar &'.
I get a error: "cannot convert argument 1 from 'sChar ' to 'const sChar &'.
I think you can just remove the const
from the function signature or do manual casting, which VS version do you use?
Hi, just tried to build this, but I ran into a few problems. It took a bit to figure it out, so the next person will have it easier.
1) First generate the 2012 solution/project files normally 2) Drag&drop the generated
G:\fr_public\altona_wz4\wz4\werkkzeug4\werkkzeug4.sln
on Visual Studio 2015 3) Either Visual Studio retargets it automatically, or if not, simply right click onSolution 'werkkzeug4'
and click on "Retarget" 4) Now open "base/types.hpp"Rewrite this:
to this, because _w64 doesn't exist in Visual Studio 2015:
5) You need the DX9 or DX11 headers and libs, which can be installed by running this: https://www.microsoft.com/en-us/download/details.aspx?id=6812
The DirectX setup will error with some short error message, but all the .lib files and header includes are saved on disc.
6) Now we actually need to tell Visual Studio 2015 where to find the headers/libs:
Add to include search path:
Add the lib search path, only needed for werkkzeug4 project:
8)
9) Add legacy_stdio_definitions.lib to werkkzeug4 project
10) The last problem is that Visual Studio doesn't allow overwriting the
new
operator "easily" anymore. But it works again by defining these two defines for every project (just select all, rightclick on options, C/C++ -> Preprocessor and set those two defines:Otherwise the project will compile, but won't link, because two functions already have a body.
I guess this also works with Visual Studio 2017, but I didn't test it yet. Have fun xd