Forum Discussion
Anonymous
10 years agoFailed to compile LibOVRKernel
Hello,
I was using an old v0.8 SDK and I decided to apply the newest SDK. I have encountered many errors and crushed most of them, but one last issue bothers me to run my application. When I try to compile LibOVRKernel project on VS2013, it says it cannot find OVR_ThreadCommandQueue.cpp and .hfiles. As it says, I couldn't find them from the downloaded SDK directory. They should be in LibOVRKernel\Src\Kernel, but they aren't.
I also tried to remove them from the Solution Explorer and got new errors such as
for some codes, for instance,
In the meantime, VS generates another errors regarding a class named _Pad defined in xthread.
I was using an old v0.8 SDK and I decided to apply the newest SDK. I have encountered many errors and crushed most of them, but one last issue bothers me to run my application. When I try to compile LibOVRKernel project on VS2013, it says it cannot find OVR_ThreadCommandQueue.cpp and .hfiles. As it says, I couldn't find them from the downloaded SDK directory. They should be in LibOVRKernel\Src\Kernel, but they aren't.
I also tried to remove them from the Solution Explorer and got new errors such as
error C2039: 'thread' : is not a member of 'std' (..\..\..\Src\Util\Util_LongPollThread.cpp)
for some codes, for instance,
std::unique_ptr<std::thread> WatchdogThreadHandle;In the meantime, VS generates another errors regarding a class named _Pad defined in xthread.
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\thr/xthread(172): error C4265: 'std::_Pad' : class has virtual functions, but destructor is not virtual
1> instances of this class may not be destructed correctly (..\..\..\Src\Kernel\OVR_Error.cpp)
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\thr/xthread(172): error C4265: 'std::_Pad' : class has virtual functions, but destructor is not virtual
1> instances of this class may not be destructed correctly (..\..\..\Src\Kernel\OVR_DebugHelp.cpp)
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\thr/xthread(172): error C4265: 'std::_Pad' : class has virtual functions, but destructor is not virtual
1> instances of this class may not be destructed correctly (..\..\..\Src\Kernel\OVR_Log.cpp)
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\thr/xthread(172): error C4265: 'std::_Pad' : class has virtual functions, but destructor is not virtual
1> instances of this class may not be destructed correctly (..\..\..\Src\Kernel\OVR_System.cpp)
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\thr/xthread(172): error C4265: 'std::_Pad' : class has virtual functions, but destructor is not virtual
1> instances of this class may not be destructed correctly (..\..\..\Src\Kernel\OVR_Allocator.cpp)
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\thr/xthread(172): error C4265: 'std::_Pad' : class has virtual functions, but destructor is not virtual
1> instances of this class may not be destructed correctly (..\..\..\Src\Kernel\OVR_ThreadsWinAPI.cpp)
1> Util_Watchdog.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\thr/xthread(172): error C4265: 'std::_Pad' : class has virtual functions, but destructor is not virtual
1> instances of this class may not be destructed correctly (..\..\..\Src\Util\Util_LongPollThread.cpp)
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\thr/xthread(172): error C4265: 'std::_Pad' : class has virtual functions, but destructor is not virtual
1> instances of this class may not be destructed correctly (..\..\..\Src\Util\Util_SystemInfo.cpp)
The problmatic _Pad class is defined as
Does anybody have encountered similar issue? Any comment would be helpful. Thank you in advance.
class _CRTIMP2_PURE _Pad
{ // base class for launching threads
public:
_Pad();
~_Pad() _NOEXCEPT;
void _Launch(_Thrd_t *_Thr);
void _Release();
virtual unsigned _Go() = 0;
private:
_Cnd_t _Cond;
_Mtx_t _Mtx;
bool _Started;
};
1 Reply
- AnonymousIs there a visual studio solution for compiling libOVRKernel in Visual Studio 2013? I only saw a 2015 option, but I have some dependencies. Please Advise?!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 10 years agoAnonymous
- 8 months ago
- 3 years ago