x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Cross compiling for linux server failed

Hi, I trying to follow step in article to cross compile my linux server:

https://wiki.unrealengine.com/Dedicated_Server_Guide_(Windows_%26_Linux) https://wiki.unrealengine.com/Compiling_For_Linux

but I get compile error, does there has any idea to fix this?

1>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : 'new' file not found

 1>------ Build started: Project: ShaderCompileWorker, Configuration: Linux_Development_Program Win32 ------
 1>  Using LINUX_ROOT (deprecated, consider LINUX_MULTIARCH_ROOT), building with toolchain 'D:\workspace\CrossCompile\v7_clang-3.7.0_ld-2.24_glibc-2.12.2\toolchain'
 1>  Performing 86 actions (4 in parallel)
 1>  [1/86] Compile CorePrivatePCH.h
 1>  [2/86] Compile CoreUObjectPrivate.h
 1>  [3/86] Compile Module.Json.cpp
 1>  [4/86] Compile Module.Projects.cpp
 1>  In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Intermediate\Build\Linux\B4D820EA\ShaderCompileWorker\Development\CoreUObject\CoreUObjectPrivate.h:4:
 1>  In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\CoreUObject\Private\CoreUObjectPrivate.h:9:
 1>  In file included from Runtime/Core/Public\Core.h:16:
 1>  In file included from Runtime/Core/Public/HAL\PlatformIncludes.h:6:
 1>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : 'new' file not found
 1>  #include <new>
 1>           ^
 1>  In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Intermediate\Build\Linux\B4D820EA\ShaderCompileWorker\Development\Core\CorePrivatePCH.h:4:
 1>  In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\Core\Private\CorePrivatePCH.h:16:
 1>  In file included from Runtime/Core/Public/HAL\PlatformIncludes.h:6:
 1>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : 'new' file not found
 1>  #include <new>
 1>           ^
 1>  In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Intermediate\Build\Linux\B4D820EA\ShaderCompileWorker\Development\Projects\Module.Projects.cpp:2:
 1>  In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\Projects\Private\ProjectsPrivatePCH.h:6:
 1>  In file included from Runtime/Projects/Public\Projects.h:9:
 1>  In file included from Runtime/Core/Public\Core.h:16:
 1>  In file included from Runtime/Core/Public/HAL\PlatformIncludes.h:6:
 1>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : 'new' file not found
 1>  #include <new>
 1>           ^
 1>  In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Intermediate\Build\Linux\B4D820EA\ShaderCompileWorker\Development\Json\Module.Json.cpp:2:
 1>  In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\Json\Private\Dom\JsonObject.cpp:3:
 1>  In file included from Runtime/Json/Private\JsonPrivatePCH.h:5:
 1>  In file included from Runtime/Json/Public\Json.h:9:
 1>  In file included from Runtime/Core/Public\Core.h:16:
 1>  In file included from Runtime/Core/Public/HAL\PlatformIncludes.h:6:
 1>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : 'new' file not found
 1>  #include <new>
 1>           ^
 1>  1 error generated.
 1>  [5/86] Compile Module.RHI.cpp
 1>  1 error generated.
 1>  1 error generated.
 1>  In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Intermediate\Build\Linux\B4D820EA\ShaderCompileWorker\Development\RHI\Module.RHI.cpp:2:
 1>  In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\RHI\Private\RHIPrivatePCH.h:5:
 1>  In file included from Runtime/RHI/Public\RHI.h:9:
 1>  In file included from Runtime/Core/Public\Core.h:16:
 1>  In file included from Runtime/Core/Public/HAL\PlatformIncludes.h:6:
 1>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : 'new' file not found
 1>  #include <new>
 1>           ^
 1>  [6/86] Compile Module.RenderCore.cpp
 1>  In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Intermediate\Build\Linux\B4D820EA\ShaderCompileWorker\Development\RenderCore\Module.RenderCore.cpp:2:
 1>  In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\RenderCore\Private\RenderCore.cpp:7:
 1>  In file included from C:\Program Files (x86)\Epic Games\UnrealEngine\Engine\Source\Runtime\RenderCore\Private/RenderCorePrivatePCH.h:5:
 1>  In file included from Runtime/RenderCore/Public\RenderCore.h:8:
 1>  In file included from Runtime/Core/Public\Core.h:16:
 1>  In file included from Runtime/Core/Public/HAL\PlatformIncludes.h:6:
 1>Runtime/Core/Public/HAL/PlatformCrt.h(5,10): fatal error : 'new' file not found
 1>  #include <new>
 
 ......
Product Version: UE Github Master branch
Tags:
more ▼

asked Oct 18 '16 at 03:38 PM in Linux

avatar image

dorgon chang
88 8 13 22

avatar image Mentos Oct 22 '16 at 03:47 AM

I have the same issue, anyone able to resolve this?

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

It seems need open UE4.sln and build engine first.

After doing that, I can compile successful.

more ▼

answered Oct 25 '16 at 01:08 AM

avatar image

dorgon chang
88 8 13 22

(comments are locked)
10|2000 characters needed characters left

You either did not run Setup.bat, or you set LINUX_MULTIARCH_ROOT (or older LINUX_ROOT) variable after doing so. Also, make sure you're syncing after this commit: https://github.com/EpicGames/UnrealEngine/commit/e3c4f8ed231c973e305b80f79023838f6fa81afb

more ▼

answered Oct 25 '16 at 01:12 AM

avatar image

RCL STAFF
2.6k 59 6 88

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question