umautobots / GTAVisionExport

Code to export full segmentations from GTA
MIT License
126 stars 42 forks source link

on native: d3d11_4.h is missing #6

Closed Cuky88 closed 7 years ago

Cuky88 commented 7 years ago

Hi,

I ran cmake without any problems. I have also made the settings according to your Readme file in VS17. But when I want to compile it, I receive the error, that d3d11_4.h is missing: Error C1083 Datei (Include) kann nicht geöffnet werden: "d3d11_4.h": No such file or directory GTAVisionNative D:\Devel\GTAVisionExport\native\src\main.cpp 4

I looked into to the SDK folder on Windows 10, there is only d3d11.h. Microsoft says, that on Windows 10 only d3d11_3.h exists and not d3d11_4.h, but I cannot even find d3d11_3.h. Can you please help me out?

Thanks.

yifenghuang commented 7 years ago

You may need to change the cmakelist.txt and disable the NAMESPACE_VERSIONING option. (not official reply, just a suggestion)

Cuky88 commented 7 years ago

@yifenghuang this is what I have in cmakelist.txt:

project(GTANativePlugin)
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/)
#add_subdirectory(deps)
add_subdirectory(src)

What do I need to change here?

Thanks.

Cuky88 commented 7 years ago

I deleted everything and did follow the Readme again, as I did before. I don't know why, but now it works!

JiamingSuen commented 7 years ago

FYI: Build this repo and add the include folder inside VS GTAVisionNative "Additional Include Directories".