RPCS3 Forums
Can't build on Windows - Printable Version

+- RPCS3 Forums (https://forums.rpcs3.net)
+-- Forum: Support & Issues (https://forums.rpcs3.net/forumdisplay.php?fid=17)
+--- Forum: Support (https://forums.rpcs3.net/forumdisplay.php?fid=18)
+--- Thread: Can't build on Windows (/showthread.php?tid=198308)



Can't build on Windows - yener90 - 03-27-2018

Hello,

I am using Visual Studio 2015 and all the required files and can't build project.
I get following error:
Code:
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_BitBlt referenced in function "public: virtual enum VkResult __cdecl vk::swapchain_WIN32::present(unsigned int)" (?present@swapchain_WIN32@vk@@UEAA?AW4VkResult@@I@Z)
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_CreateCompatibleDC referenced in function "public: virtual bool __cdecl vk::swapchain_WIN32::init(void)" (?init@swapchain_WIN32@vk@@UEAA_NXZ)
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_DeleteDC referenced in function "public: virtual void __cdecl vk::swapchain_WIN32::destroy(bool)" (?destroy@swapchain_WIN32@vk@@UEAAX_N@Z)
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_DeleteObject referenced in function "public: virtual void __cdecl vk::swapchain_WIN32::destroy(bool)" (?destroy@swapchain_WIN32@vk@@UEAAX_N@Z)
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_SelectObject referenced in function "public: virtual bool __cdecl vk::swapchain_WIN32::init(void)" (?init@swapchain_WIN32@vk@@UEAA_NXZ)
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_CreateDIBSection referenced in function "public: virtual bool __cdecl vk::swapchain_WIN32::init(void)" (?init@swapchain_WIN32@vk@@UEAA_NXZ)
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_GdiFlush referenced in function "public: virtual enum VkResult __cdecl vk::swapchain_WIN32::present(unsigned int)" (?present@swapchain_WIN32@vk@@UEAA?AW4VkResult@@I@Z)

Also for building of VKGSRender "/bigobj" parameter is required. Don't know if the problem is related to this.

Regards
Yener


RE: Can't build on Windows - AlexAltea - 09-18-2018

Most likely you are building under the default "Debug - LLVM" configuration, which has some issues. Change the configuration to "Debug", "Release" or "Release - LLVM".

Alternatively, you can fix the issues on "Debug - LLVM" by:
1. Adding the `/bigobj` option under the project: VKGSRender -> Properties -> C/C++ -> Command Line -> Additional Options (as you already did).
2. Adding the `gdi32.lib` library under the project: rpcs3 -> Properties -> Linker -> Input -> Additional Dependencies.