Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error module not found #15

Open
mahamohyeldin opened this issue Jan 15, 2018 · 11 comments
Open

Error module not found #15

mahamohyeldin opened this issue Jan 15, 2018 · 11 comments

Comments

@mahamohyeldin
Copy link

I wanna thank you for such a great plugin and project, I downloaded the example and it worked properly with me, but when i try to add the plugin to another project i get this message
module not found

@adynathos
Copy link
Owner

I understand you copy the plugin to MyProject/Plugins/AugmentedUnreality?

If it is a C++ project, maybe rebuilding in visual studio should help.

Anyway, I am in the process of building for UE 4.18 and I will see if I encounter this problem.

@adynathos
Copy link
Owner

The logs reveal that this (at least for me) was a missing gstreamer installation.
In general the way to solve it would be to:

  • install gstreamer
  • add the directory containing DLLs to $PATH
    But I do not remember which gstreamer version was used for the plugin last time.

I am making a new build with current UE, OpenCV, Gstreamer and once it all works I will release it.

[2018.01.15-23.17.14:975][  0]LogWindows: Failed to preload 'D:/unreal/projects/AugmentedUnrealityEx/Plugins/AugmentedUnreality/Binaries/Win64/opencv_videoio340.dll' (GetLastError=126)
[2018.01.15-23.17.14:975][  0]LogWindows:   Missing import: MSVFW32.dll
[2018.01.15-23.17.14:975][  0]LogWindows:   Missing import: AVIFIL32.dll
[2018.01.15-23.17.14:975][  0]LogWindows:   Missing import: AVICAP32.dll
[2018.01.15-23.17.14:975][  0]LogWindows:   Missing import: libgstpbutils-1.0-0.dll
[2018.01.15-23.17.14:975][  0]LogWindows:   Missing import: libgstreamer-1.0-0.dll
[2018.01.15-23.17.14:976][  0]LogWindows:   Missing import: libgstriff-1.0-0.dll
[2018.01.15-23.17.14:976][  0]LogWindows:   Missing import: libglib-2.0-0.dll
[2018.01.15-23.17.14:976][  0]LogWindows:   Missing import: libgstapp-1.0-0.dll
[2018.01.15-23.17.14:976][  0]LogWindows:   Missing import: libgobject-2.0-0.dll

@adynathos
Copy link
Owner

Ok, you can try the new build, gstreamer files are included.

If the problem persists, post the log file, it should tell us what the problem is.

Version 1.2.03 - updated for UE 4.18.2, OpenCV 3.4.0, gstreamer 1.12.4 - preview download:

@mahamohyeldin
Copy link
Author

I am very grateful for your quick response and help. Actually i didn't install gstreamer, as a beginner and feeling lost all i did is creating a new c++ project inside Unreal 4.16, and i did not add any code in the visual studio project, then closed the unreal project and added the plugin to the Project/Plugins/AugmentedUnreality path then tried to open the project again in unreal to see if the plugin is listed in the plugins window ,but it doesn't open and i get the message i attached in the post.
should i install Cmake, as i see it repeated in the errors?
Here is the log file.
PluginTrial.log

@adynathos
Copy link
Owner

adynathos commented Jan 16, 2018

C:\Users\Maha\Documents\Unreal Projects\PluginTrial\Plugins\AugmentedUnreality-master
The directory name suggests that you downloaded a snapshot of the GIT repository. The repository does not contain the external libraries and is therefore not enough to run the plugin.
And indeed as the log says, the OpenCV files are missing.

Please use the release plugin package instead.
(Or, if you need only the Win64 platform, the newest version)

@mahamohyeldin
Copy link
Author

Really i am speechless. It worked well, May allah bless you.
My project depends on hand tracking then moving the objects in the game according to hand movement, and i implemented the c++ code, what are the steps to make the marker projecting the 3D models in a new unreal project?

@adynathos
Copy link
Owner

what are the steps to make the marker projecting the 3D models in a new unreal project?

You can add a marker component to an actor, to make that actor move according to the marker.
You can find it in the example project.

@mahamohyeldin
Copy link
Author

I opened the example folders, and now i am pretty understanding how to add marker in unreal.
So what all i need to project on marker is to write the code in Visual studio to add and detect marker, then add the marker component to the actor?
Excuse me for my many questions , but i am beginner and i don't find any tutorials for markers in unreal.

@adynathos
Copy link
Owner

So what all i need to project on marker is to write the code in Visual studio to add and detect marker, then add the marker component to the actor?

You do not even need any code:

  • add a marker component to your actor (use a predefined marker or create your own marker blueprint)
  • create an AUR camera actor (this is what the example PlayerController in the example project does, you can look there)
  • when you launch the game, the marker image file will be saved somewhere in the YourProject/Saved -> print the file and point the camera at it

@mahamohyeldin
Copy link
Author

My project depends on hand tracking, and moving 3D objects according to hand movement.
I did it in visual studio and it runs successfully and move 2D objects, but when i add the code to an unreal project, and try to run it , it also runs successfully and open unreal, but without the output windows that appeared when it was only a visual studio project!

@adynathos
Copy link
Owner

but when i add the code to an unreal project, and try to run it , it also runs successfully and open unreal

I see, this is a complicated setup, it is hard to know if your code is even executed.

The usual printfs do not work well with Unreal. To print messages, use UE_LOG.

Since the external code does not have the UE_LOG definition, I use a lambda function for this purpose:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants