realitix / pyvma

Python Wrapper for VulkanMemoryAllocator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Failing (CL.exe issue solved, c++ errors it seems now)

amengede opened this issue · comments

Hi, so I cloned the code, opened it in Developer Command Prompt for VS2019 so that CL.exe and LIB.exe would be recognised, however I'm still getting errors. Any idea on how I should proceed with installation?

C:\pyvma>python setup.py build
running build
vk_mem_alloc.h
Microsoft (R) Library Manager Version 14.29.30040.0
Copyright (C) Microsoft Corporation. All rights reserved.

running build_py
creating build\lib.win32-3.9
creating build\lib.win32-3.9\pyvma
copying pyvma_init_.py -> build\lib.win32-3.9\pyvma
running egg_info
writing pyvma.egg-info\PKG-INFO
writing dependency_links to pyvma.egg-info\dependency_links.txt
writing requirements to pyvma.egg-info\requires.txt
writing top-level names to pyvma.egg-info\top_level.txt
reading manifest file 'pyvma.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'pyvma.egg-info\SOURCES.txt'
creating build\lib.win32-3.9\pyvma\pyvma_build
copying pyvma\pyvma_build\vk_mem_alloc.h -> build\lib.win32-3.9\pyvma\pyvma_build
creating build\lib.win32-3.9\pyvma\pyvma_build\cdef
copying pyvma\pyvma_build\cdef\stddef.cdef.h -> build\lib.win32-3.9\pyvma\pyvma_build\cdef
copying pyvma\pyvma_build\cdef\vk_mem_alloc.cdef.h -> build\lib.win32-3.9\pyvma\pyvma_build\cdef
creating build\lib.win32-3.9\pyvma\pyvma_build\include
creating build\lib.win32-3.9\pyvma\pyvma_build\include\vulkan
copying pyvma\pyvma_build\include\vulkan\vulkan.h -> build\lib.win32-3.9\pyvma\pyvma_build\include\vulkan
running build_ext
generating cffi module 'build\temp.win32-3.9\Release\_pyvma.c'
creating build\temp.win32-3.9
creating build\temp.win32-3.9\Release
building '_pyvma' extension
creating build\temp.win32-3.9\Release\build
creating build\temp.win32-3.9\Release\build\temp.win32-3.9
creating build\temp.win32-3.9\Release\build\temp.win32-3.9\Release
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Andrew\AppData\Local\Programs\Python\Python39\include -IC:\Users\Andrew\AppData\Local\Programs\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tcbuild\temp.win32-3.9\Release_pyvma.c /Fobuild\temp.win32-3.9\Release\build\temp.win32-3.9\Release_pyvma.obj -IC:\pyvma\pyvma\pyvma_build\include
_pyvma.c
build\temp.win32-3.9\Release_pyvma.c(15272): error C2440: 'initializing': cannot convert from 'PFN_vkAllocationFunction *' to 'void *(__cdecl **)(void *,size_t,size_t,VkSystemAllocationScope)'
build\temp.win32-3.9\Release_pyvma.c(15273): error C2440: 'initializing': cannot convert from 'PFN_vkReallocationFunction *' to 'void *(__cdecl **)(void *,void *,size_t,size_t,VkSystemAllocationScope)'
build\temp.win32-3.9\Release_pyvma.c(15274): error C2440: 'initializing': cannot convert from 'PFN_vkFreeFunction *' to 'void (__cdecl **)(void *,void *)'
build\temp.win32-3.9\Release_pyvma.c(15275): error C2440: 'initializing': cannot convert from 'PFN_vkInternalAllocationNotification *' to 'void (__cdecl **)(void *,size_t,VkInternalAllocationType,VkSystemAllocationScope)'
build\temp.win32-3.9\Release_pyvma.c(15276): error C2440: 'initializing': cannot convert from 'PFN_vkInternalFreeNotification *' to 'void (__cdecl **)(void *,size_t,VkInternalAllocationType,VkSystemAllocationScope)'
build\temp.win32-3.9\Release_pyvma.c(15660): error C2440: 'initializing': cannot convert from 'PFN_vmaAllocateDeviceMemoryFunction *' to 'void (__cdecl **)(VmaAllocator_T *,uint32_t,VkDeviceMemory_T *,uint64_t)'
build\temp.win32-3.9\Release_pyvma.c(15661): error C2440: 'initializing': cannot convert from 'PFN_vmaFreeDeviceMemoryFunction *' to 'void (__cdecl **)(VmaAllocator_T *,uint32_t,VkDeviceMemory_T *,uint64_t)'
build\temp.win32-3.9\Release_pyvma.c(15727): error C2440: 'initializing': cannot convert from 'PFN_vkGetPhysicalDeviceProperties *' to 'void (__cdecl **)(VkPhysicalDevice_T *,VkPhysicalDeviceProperties *)'
build\temp.win32-3.9\Release_pyvma.c(15728): error C2440: 'initializing': cannot convert from 'PFN_vkGetPhysicalDeviceMemoryProperties *' to 'void (__cdecl **)(VkPhysicalDevice_T *,VkPhysicalDeviceMemoryProperties *)'
build\temp.win32-3.9\Release_pyvma.c(15729): error C2440: 'initializing': cannot convert from 'PFN_vkAllocateMemory *' to 'VkResult (__cdecl **)(VkDevice_T *,const VkMemoryAllocateInfo *,const VkAllocationCallbacks *,VkDeviceMemory_T **)'
build\temp.win32-3.9\Release_pyvma.c(15730): error C2440: 'initializing': cannot convert from 'PFN_vkFreeMemory *' to 'void (__cdecl **)(VkDevice_T *,VkDeviceMemory_T *,const VkAllocationCallbacks *)'
build\temp.win32-3.9\Release_pyvma.c(15731): error C2440: 'initializing': cannot convert from 'PFN_vkMapMemory *' to 'VkResult (__cdecl **)(VkDevice_T *,VkDeviceMemory_T *,uint64_t,uint64_t,uint32_t,void **)'
build\temp.win32-3.9\Release_pyvma.c(15732): error C2440: 'initializing': cannot convert from 'PFN_vkUnmapMemory *' to 'void (__cdecl **)(VkDevice_T *,VkDeviceMemory_T *)'
build\temp.win32-3.9\Release_pyvma.c(15733): error C2440: 'initializing': cannot convert from 'PFN_vkBindBufferMemory *' to 'VkResult (__cdecl **)(VkDevice_T *,VkBuffer_T *,VkDeviceMemory_T *,uint64_t)'
build\temp.win32-3.9\Release_pyvma.c(15734): error C2440: 'initializing': cannot convert from 'PFN_vkBindImageMemory *' to 'VkResult (__cdecl **)(VkDevice_T *,VkImage_T *,VkDeviceMemory_T *,uint64_t)'
build\temp.win32-3.9\Release_pyvma.c(15735): error C2440: 'initializing': cannot convert from 'PFN_vkGetBufferMemoryRequirements *' to 'void (__cdecl **)(VkDevice_T *,VkBuffer_T *,VkMemoryRequirements *)'
build\temp.win32-3.9\Release_pyvma.c(15736): error C2440: 'initializing': cannot convert from 'PFN_vkGetImageMemoryRequirements *' to 'void (__cdecl **)(VkDevice_T *,VkImage_T *,VkMemoryRequirements *)'
build\temp.win32-3.9\Release_pyvma.c(15737): error C2440: 'initializing': cannot convert from 'PFN_vkCreateBuffer *' to 'VkResult (__cdecl **)(VkDevice_T *,const VkBufferCreateInfo *,const VkAllocationCallbacks *,VkBuffer_T **)'
build\temp.win32-3.9\Release_pyvma.c(15738): error C2440: 'initializing': cannot convert from 'PFN_vkDestroyBuffer *' to 'void (__cdecl **)(VkDevice_T *,VkBuffer_T *,const VkAllocationCallbacks *)'
build\temp.win32-3.9\Release_pyvma.c(15739): error C2440: 'initializing': cannot convert from 'PFN_vkCreateImage *' to 'VkResult (__cdecl **)(VkDevice_T *,const VkImageCreateInfo *,const VkAllocationCallbacks *,VkImage_T **)'
build\temp.win32-3.9\Release_pyvma.c(15740): error C2440: 'initializing': cannot convert from 'PFN_vkDestroyImage *' to 'void (__cdecl **)(VkDevice_T *,VkImage_T *,const VkAllocationCallbacks *)'
build\temp.win32-3.9\Release_pyvma.c(15741): error C2440: 'initializing': cannot convert from 'PFN_vkGetBufferMemoryRequirements2KHR *' to 'void (__cdecl **)(VkDevice_T *,const VkBufferMemoryRequirementsInfo2KHR *,VkMemoryRequirements2KHR *)'
build\temp.win32-3.9\Release_pyvma.c(15742): error C2440: 'initializing': cannot convert from 'PFN_vkGetImageMemoryRequirements2KHR *' to 'void (__cdecl **)(VkDevice_T *,const VkImageMemoryRequirementsInfo2KHR *,VkMemoryRequirements2KHR *)'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\cl.exe' failed with exit code 2

Hello @amengede, thanks for posting this issue. Sadly I don't have a Windows machine so I can't test and reproduce it.
I don't have time currently to manage Windows bug...

All good, I completely understand. Thanks for making this and pyvulkan, I really appreciate it.