Forum Discussion
rgarcia
10 years agoHonored Guest
Error C2719 when trying to compile on VS 2010
Good afternoon.
I am trying to create a demo which links against libovr using Visual Studio 2010 in windows.
I used as a basis the opengl demo from
http://nuclear.mutantstargoat.com/hg/oculus2/file/tip
However, I am getting the following error:
...\oculussdk\libovr\src\OVR_CAPI.h(661): error C2719: 'eyeTexture': formal parameter with __declspec(align('8')) won't be aligned
(the same line compiles correctly when I compile the demos which are inside the official sdk, version 0.4.4-beta).
I have checked the property pages for the visual studio solution, and all the options seems to match.
However, the error tells me I must have missed something.
I have googled the error but have not been able to find any clues on how to fix it.
Any help is appreciated.
Ruben
EDIT:
I managed to get it to work by using the explanations in
viewtopic.php?f=20&t=8949#p155558
I am trying to create a demo which links against libovr using Visual Studio 2010 in windows.
I used as a basis the opengl demo from
http://nuclear.mutantstargoat.com/hg/oculus2/file/tip
However, I am getting the following error:
...\oculussdk\libovr\src\OVR_CAPI.h(661): error C2719: 'eyeTexture': formal parameter with __declspec(align('8')) won't be aligned
(the same line compiles correctly when I compile the demos which are inside the official sdk, version 0.4.4-beta).
I have checked the property pages for the visual studio solution, and all the options seems to match.
However, the error tells me I must have missed something.
I have googled the error but have not been able to find any clues on how to fix it.
Any help is appreciated.
Ruben
EDIT:
I managed to get it to work by using the explanations in
viewtopic.php?f=20&t=8949#p155558
1 Reply
- oXisHonored GuestI followed your link and did what @HartLabs said but it's still no working. I have the same error.
I'm trying to compile the code from this site -> https://codelab.wordpress.com/2014/09/07/oculusvr-sdk-and-simple-oculus-rift-dk2-opengl-test-program/
I added the #include <Windows.h> in OVR_CAPI_GL.h.
Any ideas?
Edit: I'm using Visual Studio 2013. I'm able to compile the samples provided by the SDK.
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
- 8 months ago
- 4 months agoAnonymous