diff --git a/README.md b/README.md index 1ad9f7ce4..51628caf0 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Follow the instructions below to compile and run the engine from source. * Install Visual Studio Code * Install Mono ([https://www.mono-project.com/download/stable](https://www.mono-project.com/download/stable)) * Install Git with LFS -* Install requried packages: `sudo apt-get install nuget autoconf libtool libogg-dev automake build-essential gettext cmake python curl libtool-bin libx11-dev libpulse-dev libasound2-dev libjack-dev portaudio19-dev` +* Install requried packages: `sudo apt-get install nuget autoconf libtool libogg-dev automake build-essential gettext cmake python curl libtool-bin libx11-dev libpulse-dev libasound2-dev libjack-dev portaudio19-dev libcurl4-gnutls-dev` * Install compiler `sudo apt-get install clang-7 lldb-7 lld-7` * Clone repo (with LFS) * Run `sudo bash GenerateProjectFiles.sh` diff --git a/Source/ThirdParty/curl/curl.Build.cs b/Source/ThirdParty/curl/curl.Build.cs index a631fc2ee..f2eca1fa8 100644 --- a/Source/ThirdParty/curl/curl.Build.cs +++ b/Source/ThirdParty/curl/curl.Build.cs @@ -24,10 +24,10 @@ public class curl : DepsModule base.Setup(options); var depsRoot = options.DepsFolder; + options.PublicDefinitions.Add("CURL_STATICLIB"); switch (options.Platform.Target) { case TargetPlatform.Windows: - options.PublicDefinitions.Add("CURL_STATICLIB"); options.OutputFiles.Add(Path.Combine(depsRoot, "libcurl.lib")); options.OptionalDependencyFiles.Add(Path.Combine(depsRoot, "libcurl.pdb")); options.OutputFiles.Add("ws2_32.lib"); @@ -35,6 +35,7 @@ public class curl : DepsModule options.OutputFiles.Add("crypt32.lib"); break; case TargetPlatform.Linux: + options.Libraries.Add("curl"); break; default: throw new InvalidPlatformException(options.Platform.Target); }