Error while running project. UE4Editor-OculusRift.dll (API version -1). OculusRift failed to load

Hi, I just got unrealengine 4.12 from github, I compiled it, all fine.

When I launch my project it says “Found module file …/…/…/Engine/Plugins/Runtime/OculusRift/Binaries/Win64/UE4Editor-OculusRift.dll (API version -1), but it was incompatible with the current engine API version (0).”

I checked the file and it’s just rebuilt. this was not happening to me with 4.10

Also I tried to use UE.sln directly (without my project), and it does something very similar. After compile it says:

“Plugin ‘OculusRift’ failed to load because module ‘OculusRift’ does not appear to be compatible with the current version of the engine. The plugin may need to be recompiled.”

Any idea on how to solve this?

I found you can temporarly disable it by adding this to your project file (example MyProject2.uproject).

"Plugins": 
        {
        "Name": "OculusRift",
        "Enabled": false
    },
    {
        "Name": "OculusLibrary",
        "Enabled": false
    },
    {
        "Name": "OculusInput",
        "Enabled": false
    }
]

still will be interesting to know why it happens and how to fix it.