Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error when Windows language is Chinese #67

Closed
csyonghe opened this issue May 7, 2018 · 3 comments
Closed

Compile error when Windows language is Chinese #67

csyonghe opened this issue May 7, 2018 · 3 comments

Comments

@csyonghe
Copy link

csyonghe commented May 7, 2018

I am using Windows 10 with my OS code page set to 936. When compiling Falcor I got the following error message from msvc:

d:\git_repo\falcornv\falcor\framework\externals\ffmpeg\include\libavutil\rational.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss (compiling source file Utils\Video\VideoEncoder.cpp)

Because treat warnings as errors is turned on, I cannot get Falcor to compile due to this error message. Save the file as UTF8 does not solve the issue, and I cannot locate the offending characater in rational.h.

The workaround is to suppress warning 4819 in project settings. (using pragma in rational.h does not work)

@nbentyNV
Copy link
Contributor

nbentyNV commented May 7, 2018

That error is from an external dependency. We will investigate.
@kyaoNV , this one is yours

@kyaoNV
Copy link
Collaborator

kyaoNV commented May 22, 2018

This is an issue from FFMPEG, we can't do anything about it.

@kyaoNV kyaoNV closed this as completed May 22, 2018
@csyonghe
Copy link
Author

I think you can disable that warning in visual studio project file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants