GettingStartedWithRTXRayTracing icon indicating copy to clipboard operation
GettingStartedWithRTXRayTracing copied to clipboard

About VS2019 version compiling Falcor3.2 error problem

Open chnth opened this issue 4 years ago • 6 comments

You may encounter the problem of "Cannot find Falcor.lib" during the process of generating the solution. This is because when compiling the Falcor project, there will be an error: "C1189 #error: The <experimental/filesystem> header providingstd: "experimental::filesystem is deprecated by Microsoft and will be REMOVED. It is superseded by the C++17 header providing std::filesystem. You can define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to acknowledge that you have received this warning. (Compile source file Experimental\RenderGraph\RenderGraphUI.cpp) Falcor D:\VS2019\VC\Tools\MSVC\14.29.30133\include\experimental\filesystem 30"and "C4244 "Parameter": Convert from "wchar_t" to "const _Elem", may lose data FalcorD:\VS2019\VC\Tools\MSVC\14.29.30133\include\xstring 2575" error warning". The solution to the first problem above: you need to add in the include item: _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to Preprocessor definitions. Project -> Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions. The second question: In the project that contains warnings, right-click Properties-C/C++-General-Treat warnings as errors-change to "No". After the Falcor solution is modified by the above method, it can be compiled. For the second question, I don't know if there is any problem with this modification.

chnth avatar Nov 06 '21 09:11 chnth

As for me, I change every #include <experimental/filesystem> to #include <filesystem>, and everything is fine.

Yousazoe avatar Nov 21 '21 07:11 Yousazoe

Does this work on Windows10 20H2? There was a runtime error while I was using Falcor3.1. After I changed to Falcor3.2, that issue would be gone?

Mr-222 avatar Nov 24 '21 03:11 Mr-222

这在Windows10 20H2上是否有效?当我使用Falcor3.1时,有一个运行时错误。在我改用Falcor3.2之后,这个问题会消失吗?

This is valid for the 20H2 version, but I don’t know what error you are talking about, you can try to compile the 3.2 version

chnth avatar Nov 24 '21 05:11 chnth

这在Windows10 20H2上是否有效?当我使用Falcor3.1时,有一个运行时错误。在我改用Falcor3.2之后,这个问题会消失吗?

This is valid for the 20H2 version, but I don’t know what error you are talking about, you can try to compile the 3.2 version

请问你是什么运行错误,可以分享一下运行截图吗? What is your runing error, can you share a screenshot of the error?

Yousazoe avatar Nov 24 '21 06:11 Yousazoe

IMG_3140

Mr-222 avatar Nov 24 '21 06:11 Mr-222

我看了一下你想运行的是Tutor01是吧,希望提供更详细的控制台打印的输出报错。 个人经验运行没问题,运行过程中断点异常可能是卡不支持或者驱动问题,我的1050ti只能运行前两个实例,到Gbuffer就会报错设备不支持,换成实验室的2080ti就完全没问题了。

Yousazoe avatar Dec 02 '21 09:12 Yousazoe