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"

Unresolved external symbol _DllMainCRTStartup when adding external dependencies


Ok so I'm trying to add "assimp" as a dependency for my project. So far I've written the build scripts for Linux, and it seems to work just fine

I'm currently writing build scripts for Windows, however I'm running into some issues. As far as I can tell, I build the assimp static libs just fine (As in assimp-vc140-mt.lib, IrrXML.lib, and zlibstatic.lib are created from the assimp build), however when trying to add the libraries/headers in UnrealBuildTool, it fails with "unresolved external symbol _DllMainCRTStartup" on linking UE4Editor-libassimp.dll

Furthermore, I also recieve "Cannot open include file 'assimp/Importer.hpp': No such file or directory" even though I've added the include path

From my libassimp.Build.cs

     Type = ModuleType.External;


     bAddDefaultIncludePaths = false;

     // ...

     if (Target.Platform == UnrealTargetPlatform.Win64) {
         PublicIncludePaths.Add(ModuleDirectory + "\\include\\");

         PublicAdditionalLibraries.Add(ModuleDirectory + "\\lib\\assimp.lib");
         PublicAdditionalLibraries.Add(ModuleDirectory + "\\lib\\IrrXML.lib");
         PublicAdditionalLibraries.Add(ModuleDirectory + "\\lib\\zlibstatic.lib");
Product Version: UE 4.18
more ▼

asked Dec 12 '17 at 08:55 PM in C++ Programming

avatar image

6 3 4 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Problem solved - Looks like it didn't like me setting the Type to External in .Build.cs

If anyone else stumbles by this, here's my assimp module as a reference
Build scripts/module: https://github.com/UnrealMKB/UnrealMKB/tree/model-loading/UnrealMKB/Source/ThirdParty/libassimp
Git submodule for assimp is located in /ThirdParty/assimp of the repo

(If I forgot to update the link and that link leads to a 404, try this: https://github.com/UnrealMKB/UnrealMKB/tree/master/UnrealMKB/Source/ThirdParty/libassimp)

more ▼

answered Dec 14 '17 at 08:21 PM

avatar image

6 3 4 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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