osx - getting project to build - help!
Hi All,
I'm having trouble building my very small application. I have a single c file (helloworld.c) as follows:
#include "OculusSDK 3/LibOVR/Include/OVR.h"
int main(int argc, char** argv) {
ovr_Initialize();
return 0;
}
And I'm using g++ as follows:
> g++ helloworld.c OculusSDK\ 3/Samples/CommonSrc/Platform/*.cpp OculusSDK\ 3/Samples/CommonSrc/Render/*.cpp OculusSDK\ 3/Samples/CommonSrc/Util/*.cpp -L OculusSDK\ 3/LibOVR/Lib/Mac/Release/ -lovr -o VROUTPUT
So, I'm including my c file, all the CommonSrc code included in the Oculus SDK, LibOVR, but i get the following error:
OculusSDK 3/Samples/CommonSrc/Util/RenderProfiler.h:27:10: fatal error: 'OVR_Kernel.h' file not found
#include "OVR_Kernel.h"
^
1 error generated.
Does anyone have a very simple application they have built on mac with all the correct libraries etc and a compile command that seems to work? Am I using the wrong compiler? Is there a "hello world" tutorial for actually building and compiling an application?
I'm having trouble building my very small application. I have a single c file (helloworld.c) as follows:
#include "OculusSDK 3/LibOVR/Include/OVR.h"
int main(int argc, char** argv) {
ovr_Initialize();
return 0;
}
And I'm using g++ as follows:
> g++ helloworld.c OculusSDK\ 3/Samples/CommonSrc/Platform/*.cpp OculusSDK\ 3/Samples/CommonSrc/Render/*.cpp OculusSDK\ 3/Samples/CommonSrc/Util/*.cpp -L OculusSDK\ 3/LibOVR/Lib/Mac/Release/ -lovr -o VROUTPUT
So, I'm including my c file, all the CommonSrc code included in the Oculus SDK, LibOVR, but i get the following error:
OculusSDK 3/Samples/CommonSrc/Util/RenderProfiler.h:27:10: fatal error: 'OVR_Kernel.h' file not found
#include "OVR_Kernel.h"
^
1 error generated.
Does anyone have a very simple application they have built on mac with all the correct libraries etc and a compile command that seems to work? Am I using the wrong compiler? Is there a "hello world" tutorial for actually building and compiling an application?
