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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Cannot find HCAD.lib when using UnrealED

I need to use the FileHelpers.h in UnrealEd, But if I add UnrealEd in PublicDependencyModuleNames.

alt text

When I try to package my project, I will get this error: alt text

I think it's tries to tell me that it cannot found HCAD.lib, My compiler always shows these question markers with errors, It probably has to do something with my language setting.

I ve seen other people posting the same question, but the solution to theirs is to remove UnrealEd from PublicDependencyModuleNames. The things is, I need the FileHelpers.h in the UnrealEd. I'll be greatly appreciated if anyone can help me out on this.

Product Version: UE 4.10
more ▼

asked May 16 '16 at 12:01 PM in Packaging & Deployment

avatar image

1 1 3 4

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

1 answer: sort voted first


The things contained in UnrealEd are only available to be used inside of the editor so it fails whenever you attempt to package. The only way for you to include this without heavily editing the source code (I'm not even sure how much that would entail, but it would be a lot) would be to let the editor know that you only want to include it for use inside of the editor. You can do that by using the syntax given by ZKarmaKun near the end of this forum thread: https://forums.unrealengine.com/showthread.php?84531-Halp!-Cannot-open-input-file-HACD_64-lib-when-packaging

more ▼

answered May 16 '16 at 02:32 PM

avatar image fxckenstein May 17 '16 at 04:41 AM

Thanks for the help, I added those line in my Wind_Farm_X.Build.cs files alt text

But I am getting the error of not finding FileHelpers.h, like I didn't include UnrealEd at all. alt text I am not sure if I added those lines in the right place, Did I do anything wrong? Thanks again.

001.jpg (48.6 kB)
002.jpg (16.5 kB)
avatar image Matthew J May 17 '16 at 02:10 PM

The error message seems to be pointing to line #5 in a particular .cpp file. I can't tell what it is due to where the screenshot cuts off. Could you take a look at that file and see why that line would be causing the compilation to fail? It seems like it may be referencing a file that doesn't exist.

avatar image fxckenstein May 18 '16 at 02:42 AM

Here is the full screenshot alt text And below is my .cpp file, please note that MySQLConnecter doesn't actually do anything with MySQL, I was planning to use MySQL but finally give up and decided to read a text file instead, so I used FileHelpers.h in the UnrealED. alt text So, any ideas?

003.jpg (83.3 kB)
004.jpg (133.3 kB)
avatar image Matthew J May 19 '16 at 04:18 PM

I'm not sure if this will work due to not knowing what you're using FileHelpers.h for exactly, but can you try surrounding the include for it with an #if WITH_EDITOR, like so?

 #include "FileHelpers.h"

This should let it be used in the editor but be excluded from the end product, since it's part of UnrealEd and won't be visible at that point since UnrealEd isn't either.

avatar image fxckenstein May 20 '16 at 02:17 AM

Many thanks to you, it worked!

(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