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"

How do I add thirdparty library?

Hello there,

I want to add a Third Party Library to my project but I dont realy know HOW! ...

Ive found Static Libraries Using The Build System , but I dont know what I must do know.

The thirdparty library, which I want to add is MySQL.

According to the MySQL Document I need to add the library to the Linker in Visual Studio, but there is no Linker. In the german unrealengine4 forum someone wrote to me that Unreal Engine 4 dont use this settings from Visual Studio and I need to add the library manually.

Can someone help me out here?

ErrorsIncludescppProject Setting

Product Version: Not Selected
error.png (38.2 kB)
includecpp.png (8.2 kB)
cpp.png (28.0 kB)
settings.png (68.5 kB)
more ▼

asked Apr 27 '15 at 04:02 PM in C++ Programming

avatar image

16 1 1 2

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

2 answers: sort voted first

Have a look at this other answer to the same question.


That wiki help page is very unhelpful.

The tldr; is, in your Project.Build.cs, you need to add:


You can use the various C# methods (eg.

 var base_path = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name)), "../../mysql"));
 var includes = Path.Combine(base_path, "include");

To generate the required absolute paths.

more ▼

answered May 10 '15 at 02:49 AM

avatar image

542 17 18 80

avatar image goofyseeker311 Jun 27 '16 at 08:11 PM

Somehow in the newest UE4 Target.cs files, there is no reference to those Public* variables in the TargetRules context.. Those are available in ModuleRules structure but how and where?

avatar image Slabilo Aug 17 '16 at 10:48 AM
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

The article (Static Libraries Using The Build System) shows exactly how to add you third-party *.lib in a UE4 project and corresponding include directories through the C# project build (no need to include them in VS project settings). You can link to your mysqlclient.lib and include directories from there. Have you tried it ?

more ▼

answered May 09 '15 at 09:37 PM

avatar image

276 32 37 54

avatar image shadowmint May 10 '15 at 02:52 AM

To be fair, that is the most useless wiki page on the site. It tells you almost absolutely nothing about how the linking works, doesn't have a complete example, and links to the a UE4 plugin (ie. V8) that uses a different method to link it's libraries.

(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