PacktPublishing / 3D-Graphics-Rendering-Cookbook-Second-Edition

3D-Graphics-Rendering-Cookbook, Second Edition
MIT License
116 stars 11 forks source link

Build error under windows 11 #1

Closed Latias94 closed 6 months ago

Latias94 commented 6 months ago

ldrutils is missing after download deps

git clone ...
python ./deploy_deps.py

Open Clion

--- Finished
Initial BUILD_X64=ON
Initial CMAKE_BUILD_TYPE=Debug
bc7enc build type: Debug
Building 64-bit
CMake Error at CMakeLists.txt:24 (add_subdirectory):
  add_subdirectory given source
  "deps/src/lightweightvk/third-party/deps/src/ldrutils" which is not an
  existing directory.

error C2220

build Ch02_Sample02_HelloTriangle

[90/98] Building CXX object deps\src\assimp\code\CMakeFiles\assimp.dir\__\contrib\clipper\clipper.cpp.obj
FAILED: deps/src/assimp/code/CMakeFiles/assimp.dir/__/contrib/clipper/clipper.cpp.obj 
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe  /nologo /TP -DASSIMP_BUILD_NO_3DS_IMPORTER -DASSIMP_BUILD_NO_3D_IMPORTER -DASSIMP_BUILD_NO_3MF_IMPORTER -DASSIMP_BUILD_NO_AC_IMPORTER -DASSIMP_BUILD_NO_AMF_IMPORTER -DASSIMP_BUILD_NO_ASE_IMPORTER -DASSIMP_BUILD_NO_ASSBIN_IMPORTER -DASSIMP_BUILD_NO_B3D_IMPORTER -DASSIMP_BUILD_NO_BLEND_IMPORTER -DASSIMP_BUILD_NO_BVH_IMPORTER -DASSIMP_BUILD_NO_C4D_IMPORTER -DASSIMP_BUILD_NO_COB_IMPORTER -DASSIMP_BUILD_NO_COLLADA_IMPORTER -DASSIMP_BUILD_NO_CSM_IMPORTER -DASSIMP_BUILD_NO_DXF_IMPORTER -DASSIMP_BUILD_NO_EXPORT -DASSIMP_BUILD_NO_FBX_IMPORTER -DASSIMP_BUILD_NO_HMP_IMPORTER -DASSIMP_BUILD_NO_IFC_IMPORTER -DASSIMP_BUILD_NO_IQM_IMPORTER -DASSIMP_BUILD_NO_IRRMESH_IMPORTER -DASSIMP_BUILD_NO_IRR_IMPORTER -DASSIMP_BUILD_NO_LWO_IMPORTER -DASSIMP_BUILD_NO_LWS_IMPORTER -DASSIMP_BUILD_NO_M3D_EXPORTER -DASSIMP_BUILD_NO_M3D_IMPORTER -DASSIMP_BUILD_NO_MD2_IMPORTER -DASSIMP_BUILD_NO_MD3_IMPORTER -DASSIMP_BUILD_NO_MD5_IMPORTER -DASSIMP_BUILD_NO_MDC_IMPORTER -DASSIMP_BUILD_NO_MDL_IMPORTER -DASSIMP_BUILD_NO_MMD_IMPORTER -DASSIMP_BUILD_NO_MS3D_IMPORTER -DASSIMP_BUILD_NO_NDO_IMPORTER -DASSIMP_BUILD_NO_NFF_IMPORTER -DASSIMP_BUILD_NO_OFF_IMPORTER -DASSIMP_BUILD_NO_OGRE_IMPORTER -DASSIMP_BUILD_NO_OPENGEX_IMPORTER -DASSIMP_BUILD_NO_PLY_IMPORTER -DASSIMP_BUILD_NO_Q3BSP_IMPORTER -DASSIMP_BUILD_NO_Q3D_IMPORTER -DASSIMP_BUILD_NO_RAW_IMPORTER -DASSIMP_BUILD_NO_SIB_IMPORTER -DASSIMP_BUILD_NO_SMD_IMPORTER -DASSIMP_BUILD_NO_STL_IMPORTER -DASSIMP_BUILD_NO_TERRAGEN_IMPORTER -DASSIMP_BUILD_NO_X3D_IMPORTER -DASSIMP_BUILD_NO_XGL_IMPORTER -DASSIMP_BUILD_NO_X_IMPORTER -DASSIMP_IMPORTER_GLTF_USE_OPEN3DGC=1 -DOPENDDLPARSER_BUILD -DOPENDDL_STATIC_LIBARY -DRAPIDJSON_HAS_STDSTRING=1 -DRAPIDJSON_NOMEMBERITERATORCLASS -DUNICODE -DWIN32_LEAN_AND_MEAN -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\cmake-build-debug\deps\src\assimp\include -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\cmake-build-debug\deps\src\assimp -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\include -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\code -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\. -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\contrib\zlib -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\cmake-build-debug\deps\src\assimp\contrib\zlib -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\code\..\contrib\pugixml\src -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\code\..\contrib\rapidjson\include -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\code\..\contrib -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\code\..\contrib\unzip -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\code\..\contrib\openddlparser\include -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\code\..\include -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\cmake-build-debug\deps\src\assimp\code\..\include -IE:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\code\.. /DWIN32 /D_WINDOWS /GR /EHsc /Zi /Ob0 /Od /RTC1 /D_DEBUG /Zi /Od -std:c++17 -MDd /MP /bigobj /wd4244 /W4 /WX /wd4267 /showIncludes /Fodeps\src\assimp\code\CMakeFiles\assimp.dir\__\contrib\clipper\clipper.cpp.obj /Fddeps\src\assimp\code\CMakeFiles\assimp.dir\assimp.pdb /FS -c E:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\contrib\clipper\clipper.cpp
E:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\contrib\clipper\clipper.cpp(3913): error C2220:  warning treated as error - no object file is created.
E:\cpp\3D-Graphics-Rendering-Cookbook-Second-Edition\deps\src\assimp\contrib\clipper\clipper.cpp(3913): warning C4819: ...

It seems https://github.com/assimp/assimp/releases has released v5.4.0 and fixed this error ('Eliminate non-ascii comments in clipper' in changelog) After change assimp version to v5.4.0 in bootstrap.json and re-run python scrpits, I can build target successfully.

corporateshark commented 6 months ago

Fixed. Tested CLion 2023.3.4.

Latias94 commented 6 months ago

Thank you for your quick fix! I'm thrilled to learn about a new Vulkan book being published soon, as the first edition greatly expanded my horizons in computer graphics! Could you please inform me when this book is expected to be released?

corporateshark commented 6 months ago

@Latias94 Thanks! Just subscribe to this repo and you will know ASAP.