01-07-2015 10:07 AM
01-07-2015 10:34 AM
01-07-2015 11:54 AM
/// Used to configure slave GL rendering (i.e. for devices created externally).
typedef struct OVR_ALIGNAS(8) ovrGLConfigData_s
{
/// General device settings.
ovrRenderAPIConfigHeader Header;
#if defined(OVR_OS_WIN32)
/// The optional window handle. If unset, rendering will use the current window.
HWND Window;
/// The optional device context. If unset, rendering will use a new context.
HDC DC;
#elif defined (OVR_OS_LINUX)
/// Optional display. If unset, will issue glXGetCurrentDisplay when context
/// is current.
struct _XDisplay* Disp;
#endif
} ovrGLConfigData;
01-07-2015 12:24 PM
01-07-2015 01:44 PM
03-06-2015 03:50 AM
"EpicZa" wrote:
So im trying to compile this
http://nuclear.mutantstargoat.com/hg/oc ... src/main.c
(Want to use opengl as I want to add in LeapMotion with minimal effort, but thats for later..)
And I spent ages trying to figure out what .libs I was missing, and Ive now added all those in the tiny room demo.
But I'm still getting one error:
1>Source.obj : error LNK2019: unresolved external symbol "void __cdecl ovrhmd_EnableHSWDisplaySDKRender(struct ovrHmdDesc_ const *,char)" (?ovrhmd_EnableHSWDisplaySDKRender@@YAXPBUovrHmdDesc_@@D@Z) referenced in function "int __cdecl init(void)" (?init@@YAHXZ)
Google has proved fruitless so Im stuck.
Any Advice?
03-06-2015 05:20 AM
"rasta" wrote:
I have the same error. How can i fix it?
My problem is in the config of the project's visual studio because I have two project with the same code, i download one sample and work fine. But when I create the same sample in a new project then this dont work. It get the same error.
I've configured the lib libovrd.lib and all option for config in both project. but one of them give the same error.
Thank you!!"EpicZa" wrote:
So im trying to compile this
http://nuclear.mutantstargoat.com/hg/oc ... src/main.c
(Want to use opengl as I want to add in LeapMotion with minimal effort, but thats for later..)
And I spent ages trying to figure out what .libs I was missing, and Ive now added all those in the tiny room demo.
But I'm still getting one error:
1>Source.obj : error LNK2019: unresolved external symbol "void __cdecl ovrhmd_EnableHSWDisplaySDKRender(struct ovrHmdDesc_ const *,char)" (?ovrhmd_EnableHSWDisplaySDKRender@@YAXPBUovrHmdDesc_@@D@Z) referenced in function "int __cdecl init(void)" (?init@@YAHXZ)
Google has proved fruitless so Im stuck.
Any Advice?
03-06-2015 02:37 PM
"rasta" wrote:
I found the problem, this function "ovrhmd_EnableHSWDisplaySDKRender" is declarate as EXTERN C,
And my project was CPP. I change the extension .cpp to .c and it work now.