Announcement

Collapse
No announcement yet.

UE4 4.17 Compile error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    UE4 4.17 Compile error

    Hello guys, could anyone of you help me with a compile problem? I'm trying to compile UE4 from source and I'm getting this error in build time.

    1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
    1>Performing 35 actions (4 in parallel)
    1>Module.Core.9_of_9.cpp
    1>Module.DesktopPlatform.cpp
    1>Module.Core.8_of_9.cpp
    1>Module.ShaderFormatD3D.cpp
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here
    1>Module.ShaderFormatOpenGL.cpp
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here
    1>Module.MetalShaderFormat.cpp
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here
    1>Module.ShaderCompileWorker.cpp
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here
    1>ERROR : UBT error : Failed to produce item: E:\GitHub-Clones\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCompileWorker\Development\ShaderCompileWorker-Core.lib
    1>Total build time: 44.26 seconds (Local executor: 0.00 seconds)
    1>E:\Visual Studi 2017\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat ShaderCompileWorker Win64 Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
    1>Done building project "ShaderCompileWorker.vcxproj" -- FAILED.
    2>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
    2>Creating makefile for UE4Editor (no existing makefile)
    2>Performing full C++ include scan (no include cache file)
    2>Building UnrealHeaderTool...
    2>Performing 10 actions (4 in parallel)
    2>Module.Core.8_of_9.cpp
    2>Module.Core.9_of_9.cpp
    2>Module.UnrealHeaderTool.cpp
    2>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here
    2>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here
    2>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here
    2>ERROR : UBT error : Failed to produce item: E:\GitHub-Clones\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool-Core.lib
    2>Total build time: 10.34 seconds (Local executor: 0.00 seconds)
    2>EXEC : error : UnrealHeaderTool failed for target 'UE4Editor' (platform: Win64, module info: E:\GitHub-Clones\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest, exit code: OtherCompilationError (5)).
    2>E:\Visual Studi 2017\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
    2>Done building project "UE4.vcxproj" -- FAILED.
    ========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========

    Any idea how can I fix this?

    #2
    1. Right before the 'extern "C++"' add a declaration for IUnknown.
    2. interface IUnknown; // Add this line.
    3. extern "C++"
    4. {
    5. <blah blah>
    6. }
    Trent Polack (@mittense)
    Personal Site | Development Blog | Joy Machine

    Comment


      #3
      Hello mittense, could you tell me where I can find the "extern C++" file or section so I can make the modification you are referring to? I am dealing with the same error as OP (vildnex). Thanks!

      Comment


        #4
        I am not sure how I found it, it might have been clicking an error log that opened it or because I tried searching for extern "C++" but I found this file:
        c:\Program Files (x86)\Windows Kits\8.1\Include\um\combaseapi.h

        So a file that is not part of the Unreal Engines source code, but... probably the C++ compiler used by Visual Studio? Not sure. Either way it seems to work doing what mittense suggested.

        Thanks mittense Compiling without errors now... or it seems to do so anyway.

        Comment


          #5
          I had this same error, and an insufficient permission error as well. However i fixed it in a peculiar way. I had to verify my user account on my Windows 10 Desktop. Went to all settings then users. and under my User account was a little blue verify link. After verifying my account on my Desktop i ran the Rebuild and all errors were gone.

          I can only speculate that windows did this as a security precaution to prevent editing of window specific folders and files.

          I hope this helps anyone else.

          Comment


            #6
            You really need to post a screen cap of the actually errors if you want help.I’m assuming you are trying to package for android. Has it ever worked? If not, you probably need to redo your android sdk and environment variables. Did you follow all the steps correctly?

            Comment


              #7
              Hi guys,

              I'm also having trouble with building from source UE4 4.19.

              It's driving me utterly crazy. Any help would be much appreciated.

              Thanks.


              @
              NeoTactical I could not find the "little blue verify link", where is it?



              1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------

              1>Using 'git status' to determine working set for adaptive non-unity build.

              1>Performing 1 actions (9 in parallel)

              1>[1/1] Link ShaderCompileWorker-ImageWrapper.dll

              1>LINK : fatal error LNK1181: cannot open input file 'jpeg9b64.lib'

              1>UnrealBuildTool : error : UBT ERROR: Failed to produce item: C:\Users\Mehdi\Documents\GitHub\UnrealEngine\Engine\Binaries\Win64\ShaderCompileWorker-ImageWrapper.dll

              1>Total build time: 0.83 seconds (Local executor: 0.00 seconds)

              1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat ShaderCompileWorker Win64 Development -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.

              1>Done building project "ShaderCompileWorker.vcxproj" -- FAILED.

              2>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------

              2>Using 'git status' to determine working set for adaptive non-unity build.

              2>Performing 2 actions (9 in parallel)

              2>[1/2] Link UE4Editor-UnrealEd.dll

              2>[2/2] Link UE4Editor-ImageWrapper.dll

              2>LINK : fatal error LNK1181: cannot open input file 'jpeg9b64.lib'

              2>LINK : fatal error LNK1181: cannot open input file 'jpeg9b64.lib'

              2>UnrealBuildTool : error : UBT ERROR: Failed to produce item: C:\Users\Mehdi\Documents\GitHub\UnrealEngine\Engine\Binaries\Win64\UE4Editor-UnrealEd.dll

              2>Total build time: 7.99 seconds (Local executor: 0.00 seconds)

              2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.

              2>Done building project "UE4.vcxproj" -- FAILED.

              ========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========

              Comment

              Working...
              X