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

Build Airsim failed with Warnings C4819 and Errors C2220 #4775

Open
Holdenpham opened this issue Jan 9, 2023 · 2 comments
Open

Build Airsim failed with Warnings C4819 and Errors C2220 #4775

Holdenpham opened this issue Jan 9, 2023 · 2 comments

Comments

@Holdenpham
Copy link

Holdenpham commented Jan 9, 2023

When I run build.cmd in airsim directory, I have the below errors. Can you tell me the solution for this issues.

"G:\AirSim\AirSim.sln" (default target) (1) ->
"G:\AirSim\MavLinkCom\MavLinkCom.vcxproj" (default target) (11) ->
(ClCompile target) ->
G:\AirSim\MavLinkCom\mavlink\mavlink_sha256.h(1,1): warning C4819: The file contains a character that cannot be
represented in the current code page (932). Save the file in Unicode format to prevent data loss [G:\AirSim\Ma
vLinkCom\MavLinkCom.vcxproj]
G:\AirSim\MavLinkCom\mavlink\mavlink_sha256.h(1,1): warning C4819: The file contains a character that cannot be
represented in the current code page (932). Save the file in Unicode format to prevent data loss [G:\AirSim\Ma
vLinkCom\MavLinkCom.vcxproj]
G:\AirSim\MavLinkCom\mavlink\mavlink_sha256.h(1,1): warning C4819: The file contains a character that cannot be
represented in the current code page (932). Save the file in Unicode format to prevent data loss [G:\AirSim\Ma
vLinkCom\MavLinkCom.vcxproj]
G:\AirSim\MavLinkCom\mavlink\mavlink_sha256.h(1,1): warning C4819: The file contains a character that cannot be
represented in the current code page (932). Save the file in Unicode format to prevent data loss [G:\AirSim\Ma
vLinkCom\MavLinkCom.vcxproj]
G:\AirSim\MavLinkCom\mavlink\mavlink_sha256.h(1,1): warning C4819: The file contains a character that cannot be
represented in the current code page (932). Save the file in Unicode format to prevent data loss [G:\AirSim\Ma
vLinkCom\MavLinkCom.vcxproj]

   "G:\AirSim\AirSim.sln" (default target) (1) ->
   "G:\AirSim\MavLinkCom\MavLinkCom.vcxproj" (default target) (11) ->
   (ClCompile target) ->
     G:\AirSim\MavLinkCom\mavlink\mavlink_sha256.h(1,1): error C2220: the following warning is treated as an error
   [G:\AirSim\MavLinkCom\MavLinkCom.vcxproj]
     G:\AirSim\MavLinkCom\mavlink\mavlink_sha256.h(1,1): error C2220: the following warning is treated as an error
   [G:\AirSim\MavLinkCom\MavLinkCom.vcxproj]
     G:\AirSim\MavLinkCom\mavlink\mavlink_sha256.h(1,1): error C2220: the following warning is treated as an error
   [G:\AirSim\MavLinkCom\MavLinkCom.vcxproj]
     G:\AirSim\MavLinkCom\mavlink\mavlink_sha256.h(1,1): error C2220: the following warning is treated as an error
   [G:\AirSim\MavLinkCom\MavLinkCom.vcxproj]
     G:\AirSim\MavLinkCom\mavlink\mavlink_sha256.h(1,1): error C2220: the following warning is treated as an error
   [G:\AirSim\MavLinkCom\MavLinkCom.vcxproj]

5 Warning(s)
5 Error(s)
@Holdenpham Holdenpham changed the title Build Airsim failed Build Airsim failed with Warnings C4819 and Errors C2220 Jan 9, 2023
@osqzss
Copy link

osqzss commented Jul 1, 2023

I got the same errors. Did the problem get resolved?

@Syug0
Copy link

Syug0 commented Feb 12, 2024

I also got the same error.
I solved this problem by editing the following file.

AirSim\MavLinkCom\mavlink\mavlink_sha256.h

This file has the following garbled characters, which should be fixed.

  • Copyright (c) 1995 - 2001 Kungliga Tekniska H?gskolan

I think this character does not support 932 (shift_jis). If you have other similar errors, you can fix them by correcting the unsupported character.

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