Open GoogleCodeExporter opened 9 years ago
I turned on EchoMessages and got command line
it works if I execute it from command line. But it does not work from Visual
Sudio 2012
Original comment by SergeySo...@gmail.com
on 19 Jun 2014 at 7:44
this issue because of TrackFileAccess=true. If I set it to false everything is
ok. And I fund why. If TrackFileAccess= trueit create temporary text file with
unicode encoding for all options. And arm-linux-androideabi-ar.exe does not
recoginze such encoding
Original comment by SergeySo...@gmail.com
on 19 Jun 2014 at 8:24
I've fixed my issue just modifying function in GCCLib
protected override int ExecuteTool(string pathToTool, string
responseFileCommands, string commandLineCommands)
{
if (EchoCommandLines == "true")
{
Log.LogMessage(MessageImportance.High, pathToTool + " " + responseFileCommands);
}
TrackFileAccess = false;
string tmpFile = Path.GetTempFileName();
using (StreamWriter streamWriter = new StreamWriter(tmpFile, false))
{
streamWriter.Write(responseFileCommands);
}
int result = base.ExecuteTool(pathToTool, "", "@" + tmpFile);
File.Delete(tmpFile);
return result;
}
Original comment by SergeySo...@gmail.com
on 19 Jun 2014 at 8:40
I think disabling TrackFileAccess may break dependency checking?
i.e. if you modify a .h header file, do all .c/cpp files that include it
rebuild?
This issue is listed on the Troubleshooting page, btw:
https://code.google.com/p/vs-android/wiki/Troubleshooting#64bit_NDK_-_TRACKER_:_
error_TRK0002:_Failed_to_execute_command
It appears to be specific to using the 64-bit NDK.
Original comment by gavin.dj.pugh
on 25 Jun 2014 at 6:25
Original issue reported on code.google.com by
SergeySo...@gmail.com
on 19 Jun 2014 at 7:11