How can I resolve a compile issue with missing ImageWrapper.cpp?

Compiling issue with source in VS Express 2013.

Check out the error log for details. The error is centered around failing to produce UE4Editor-ImageWrapper.dll and a an inability to open the following:
Cannot open include file: ‘jpgd.h’: No such file or directory C:\Users\MDIjohngo\Documents\GitHub\UnrealEngine\Engine\Source\Developer\ImageWrapper\Private\JpegImageWrapper.cpp 20 1

UE4
Error 1 error C1083: Cannot open include file: ‘opus.h’:link text

I previously had VS Express installed and reinstalled the latest for UE4. I followed the tutorial and upon the suggestion of a few in other forums added Dx Runtime. I do have DX 11 installed and it does not make sense
to me for the Image Wrapper from the source code to not exist.

Any thoughts?

Hi,

I looks like you are somehow missing some third-party includes.

Do you have the following directories present?

\UE4\Engine\Source\ThirdParty\libJPG\
\UE4\Engine\Source\ThirdParty\libOpus\

If you do not you can get them from the GitHub.

Possible duplicate of Errors during Build UBT error ImageWrapper? - C++ - Epic Developer Community Forums

Thanks for answering so quickly. I will check. It is a GitHub fork so I am assuming there should not be any file missing.

silk_float.lib is several folders down in the libOpus directory and UElibJPG.Build.cs is in the libJPG directory. What the error log calls for is the imageWrapper.dll and so I’ll do a comparison as to what is in the master branch of Epic Games GitHub repository.

In hind sight it sounds like it would be in the Release zip files. I downloaded the optional zip as well. Maybe it caused issues and replaced files it should not have?

The imageWrapper.cpp is in the development folder. So, it is there. Perhaps, I should revert to the original source and add the two release zip and see what happens instead of tracking down code when I’m just getting started. The good news is I found the documentation in the source. I hope it is more accurate than what it online.

I downloaded the source zip added the two required zips and still a jpgd.h file is missing. Same error exactly.
The image wrapper calls for the following:

  #include "jpgd.h"

#include "jpgd.cpp"

#include "jpge.h"

#include "jpge.cpp"

Does it have to do more so with Visual Studio 2013? The repository does not contain a jpgd.h file.

ahh… there is a workaround on Visual Studio’s website:

http://support.microsoft.com/kb/2896450

It mentions having VS2012 installed previously. Windows Phone SDK needs to be uninstalled and reinstalled as well as the tools for maintaining store apps.

or Under programs and features selecting the change button and repairing the installation.

Currently trying this option because it fits the scenario.

Still the same error after installing and reinstalling.

(bNDACompiler
? TEXT(“C:\Imagination\PowerVR\GraphicsSDK\Compilers\OGLES\Windows_x86_32\glslcompiler_sgx543_nda.exe”)
: TEXT(“C:\Imagination\PowerVR\GraphicsSDK\Compilers\OGLES\Windows_x86_32\glslcompiler_sgx543.exe”));
}

It is throwing an error at this line of code. Clearly not my drive. I went to the website and found the glslcompiler must be included in the SDK. Why am I receiving this error and no other users are having trouble compiling. Is PowerVR included somehow that I am not aware of?

Are you still getting this problem?

The error is occuring when building the ImageWrapper dll, which requires libjpg headers to build correctly. Are those headers present in your "Engine\Source\ThirdParty\libJPG" directory (they should be there along with UElibJPG.Build.cs).

Note that the GitHub repository does NOT contain the libjpg headers. These are supplied in the supplementary Required_1of2.zip and Required_2of2.zip files.

It lead to another problem. zlib is now throwing an error.

I think in the end it was a corrupted download file in the required 2 of 2 zip file and perhaps a sync of the source to github which may have over wrote the files. After downloading the source and not succeeding. I recloned from github and added the two zip files making sure the 2 of 2 had the zlib which was throwing an error after the opus.h and jpgd.h problems were resolved.

I was running into build errors for missing the libopus and libjpg headers and I re-downloaded the required zips three times for version 4.0.2 (to make sure they downloaded correctly) but neither of the required zips contained them.
I then tried downloading the required files for version 4.0.1 which had the headers so I copied over all of those required files (in case anything else was also missing) and then copied the 4.0.2 required files over after that and it built fine.

Was I wrong in assuming the required files for the current version should contain all of the relevant files? Both the written and video guides on setting it up don’t state to download required files for all versions but I noticed quite a few extra files in 4.0.1’s required files that 4.0.2’s required files didn’t contain.

My guess is bait and switch Ponzi scheme. :frowning:

None of it made sense to me. I downloaded the files several times as well. I think the github sync function could have overwritten the required zip files and therefore were missing. But if you built it right away I don’t think this is the case.