x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Oculus Rift support broken since beta 6?

I have the following line in my custom camera class:

 GEngine->HMDDevice->GetCurrentOrientationAndPosition( head_orientation, position );

This now fails to compile:

 1>C:\Program Files\Unreal Engine\4.0\Engine\Source\Runtime/HeadMountedDisplay/Public/IHeadMountedDisplay.h(21): error C2079: 'IHeadMountedDisplay' uses undefined class 'HEADMOUNTEDDISPLAY_API'

Looking at the class definition:

 class HEADMOUNTEDDISPLAY_API IHeadMountedDisplay : public IModuleInterface, public IStereoRendering

...and doing a search for HEADMOUNTEDDISPLAY_API in the source shows that it's not defined anywhere in UE4.

Product Version: Not Selected
Tags:
more ▼

asked Mar 24 '14 at 08:11 PM in C++ Programming

avatar image

Neil.Griffiths
348 14 15 27

avatar image Dark-Veil STAFF Mar 25 '14 at 12:06 AM

Oculus Rift support definitely works.

That's strange. I'll investigate this more tomorrow. For now, to your game's MyGame.Build.cs file, please try adding:

PrivateIncludePathModuleNames.Add( "HeadMountedDisplay" );

That will tell UnrealBuildTool that you your module needs to have the HEADMOUNTEDDISPLAY_API macro defined because it is (indirectly) using those headers. You should not need to do this, so there appears to be a regression.

--Mike

avatar image jcoombs Jan 07 '15 at 12:38 AM

I hit the same error and Mike's suggestion worked for me.

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question