adynathos / AugmentedUnreality

Augmented reality for Unreal Engine 4
Other
288 stars 114 forks source link

Compile in unreal 4.25 #39

Open lui-shex opened 3 years ago

lui-shex commented 3 years ago

Is this plugin supported unreal 4.25?

TimPeterson commented 3 years ago

I am attempting to use this plugin in UE4.25. I see that there's a commit updating the plugin to support 4.25, but I don't see an updated version of the example project with the plugin pre-built for 4.25. Is this something you can provide? I am having difficulty building it myself.

adynathos commented 3 years ago

Here is the build, you can give it a try: plugin - https://adynathos.net/projects/augmented-unreality/AugmentedUnreality_for425.7z project - https://adynathos.net/projects/augmented-unreality/AugmentedUnrealityEx_for425.7z

Please let me know whether it works. If it does I can put it on releases.

hammerchu commented 3 years ago

image Hi, I tried the above project files on 4.25.3 but got errors and the project won't launch.

adynathos commented 3 years ago

Could you post the compilation log and error?

You can see the log/errors when building the project from an IDE (for example VS or VSCode)

hammerchu commented 3 years ago

The error came from running the sample project files you post above (https://adynathos.net/projects/augmented-unreality/AugmentedUnrealityEx_for425.7z) - i wasn't compiling the code for 4.25 so i don't have access to the log.

qpaozixu commented 3 years ago

Does it's fixed?

adynathos commented 3 years ago

Please post the compilation log, then we can try fixing it.

TimPeterson commented 3 years ago

The example project will not open for me either. It appears to be a matter of missing DLL dependencies. The log is attached (from AugmentedUnrealityEx\Saved\Logs).

AugmentedUnrealityEx.log

ezorfa commented 3 years ago

@adynathos I get the same error as @TimPeterson

Have you resolved it?

FOlivaInvelon commented 3 years ago

Same issue here. Compiling the provided zip files results in the following error: 1>D:\Projectes Unreal\AUEX425\Plugins\AugmentedUnreality\Source\AugmentedUnreality\AURDriver.cpp(1): error : Expected AURDriver.h to be first header included. Fixing that error results in the failed to load module problem: LogModuleManager: Warning: ModuleManager: Unable to load module 'D:/Projectes Unreal/AUEX425/Plugins/AugmentedUnreality/Binaries/Win64/UE4Editor-AugmentedUnreality.dll' because the file couldn't be loaded by the OS.

I was able to open the project and run it successfully by copying the dlls in the plugin's Binaries/Win64 folder to the project's Binaries/Win64 folder as well as all the gstreamer dlls from its installation folder.

ezorfa commented 3 years ago

@FOlivaInvelon Have you resolved it or did it work for you?

FOlivaInvelon commented 3 years ago

@FOlivaInvelon Have you resolved it or did it work for you?

It worked for me but it is more like a workaround than a fix worth making a MR

ezorfa commented 3 years ago

@FOlivaInvelon I was also able to make the editor run but it was crashing when I play. Do you have the same problems? The AURExampleMap was also not loading because of the errors.

I had to pickup the gsstreamer dlls from previous versions as well to make it to work.

FOlivaInvelon commented 3 years ago

@ezorfa I didn't try launching or packaging, but regular PIE worked fine without errors or crashing using the AURExampleMap. Make sure all gstreamer and opencv dlls are in the correct binaries folder and check the logs to get clues for what files might be missing and where is UE4 looking for them. Also try running the python script in the plugin's thirdparty folder for gstreamer, you might have to edit it to search for the right system variable/path.

ezorfa commented 3 years ago

Thanks for your feedback. Much appreciated @FOlivaInvelon