Physics Simulation Forum


All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sun Jun 25, 2017 5:54 pm 

Joined: Wed May 24, 2017 11:13 am
Posts: 13
I'm trying to import the Bullet physics engine static library into Unreal Engine 4 that use its own (UBT) Unreal Build Tool to generate project file.

To build Bullet's static libraries files I've used CMake, and as specified by UE4 doc I've to build it using /MD because UBT will generate a .dll file of Thirdparty library (in this case Bullet) ... ild_System

The building of Bullet has no problem, but when I try to build the UE4 source it fail with this error: unresolved external symbol _DllMainCRTStartup

 Creating makefile for UE4Editor (no existing makefile)
2>  Performing 2 actions (4 in parallel)
2>  [1/2] Link UE4Editor-Engine.dll
2>  [2/2] Link UE4Editor-Bullet.dll
2>LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
2>D:\WorkSpace\GitHubProjects\UE_4.16\UnrealEngine\Engine\Binaries\Win64\UE4Editor-Bullet.dll : fatal error LNK1120: 1 unresolved externals
2>     Creating library D:\WorkSpace\GitHubProjects\UE_4.16\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-Engine.suppressed.lib and object D:\WorkSpace\GitHubProjects\UE_4.16\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-Engine.suppressed.exp
2>ERROR : UBT error : Failed to produce item: D:\WorkSpace\GitHubProjects\UE_4.16\UnrealEngine\Engine\Binaries\Win64\UE4Editor-Bullet.dll

This is Bullet's CMake configuration is attached

I've written to UE4 forum ... e&p=728173 (where there are a bit more information about steps i did) but I think the problem occurs due to Bullet's cmake configuration for this reason I'm writing here. I've found some threads that talks about this problem but they doesn't resolve the problem.

What cause the requiring of _DllMainCRTStartup symbol?

How can I resolve it?

Untitled.png [ 99.81 KiB | Viewed 812 times ]
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: Bing [Bot] and 24 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group