I'm trying to build one of the sample projects included with mobile SDK 1.5, but i'm getting build errors, apparently, when building the dependent libs (see the build log outtake). As i understand, this is caused by some files missing standard library including declarations, has anyone ever had such problems? Any advice is much appreciated.
[armeabi-v7a] Compile++ arm : vrappframework <= SurfaceTexture.cpp
[armeabi-v7a] Compile++ arm : vrappframework <= VrCommon.cpp
make: Leaving directory `/Users/artem/XCprojects/ovr_sdk_mobile_1.5.0/VrAppFramework/Projects/Android'
jni/../../../Src/PackageFiles.cpp:176:20: error: use of undeclared identifier 'read'
const int r = read( fd, buffer, length );
^
jni/../../../Src/PackageFiles.cpp:177:6: error: use of undeclared identifier 'close'
close( fd );
^
jni/../../../Src/PackageFiles.cpp:191:4: error: use of undeclared identifier 'close'
close( fd );
^
jni/../../../Src/PackageFiles.cpp:234:18: error: use of undeclared identifier 'write'
const int r = write( fd, buffer, length );
^
jni/../../../Src/PackageFiles.cpp:235:4: error: use of undeclared identifier 'close'
close( fd );
^
5 errors generated.
make: *** [obj/local/armeabi-v7a/objs/vrappframework/__/__/__/Src/PackageFiles.o] Error 1
make: *** Waiting for unfinished jobs....
jni/../../../Src/VrCommon.cpp:229:11: error: use of undeclared identifier 'W_OK'
mode |= W_OK;
^
jni/../../../Src/VrCommon.cpp:233:11: error: use of undeclared identifier 'R_OK'
mode |= R_OK;
^
jni/../../../Src/VrCommon.cpp:238:11: error: use of undeclared identifier 'X_OK'
mode |= X_OK;
^
jni/../../../Src/VrCommon.cpp:240:9: error: use of undeclared identifier 'access'
return access( s.ToCStr(), mode ) == 0;
^
4 errors generated.
make: *** [obj/local/armeabi-v7a/objs/vrappframework/__/__/__/Src/VrCommon.o] Error 1
FAILURE: Build failed with an exception.