Forum Discussion
demonixis
3 years agoPartner
MetaXR plugin 5.1.1 can't compile for Quest
Hello, The last update of the plugin is not able to compile on my project. I got the following errors UATHelper: Packaging (Android (ASTC)): ld.lld: error: duplicate symbol: FOculusAssetDirecto...
nastyjman
3 years agoProtege
Ok! Been slamming my face on this problem today, and finally got my project to package to an APK ASTC successfully!
How to fix this:
- Delete the Oculus folder in your plugin ('X:\UE_5.1\Engine\Plugins\Runtime\Oculus')
- Right-click your uproject file (mygame.uproject)
- Select "Open With" and choose Notepad
- With the uproject opened in Notepad, look for "OculusInput" and delete it (there will be a comma with it, so delete that comma as well).
- Rebuild your code (if you're coding in C++)
---
I arrived at this solution by just Googling "How to remove a plugin in unreal." I came across a thread in the UE forums called "Removing a plugin" and in there the solution was to right-click the uproject, open it as text file, and then modify the modules specified in it.
What's happening is that OculusVR plugin is clashing with MetaXR plugin. That's why the error is saying 'error: duplicate symbol'. In the uproject file as text, you'll see 'OculusInput' and 'OculusXR'; we need to get rid of 'OculusInput' so 'OculusXR' can package properly. Also, you can see the error message is referencing two file paths: one for the OculusVR plugin, and the other for the MetaXR plugin.
Just finished successfully packaging my game to an APK...
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device