# Compiling libraries in Linux

**URL:** <https://forums.unrealengine.com/t/compiling-libraries-in-linux/400275>\
**Category:** Platform & Builds\
**Tags:** third-party-librarie, unreal-engine, question\
**Created:** [July 17, 2017, 9:46pm UTC](https://forums.unrealengine.com/t/compiling-libraries-in-linux/400275 "2017-07-17T21:46:48Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![6r0m](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/6r0m/32/1194563_2.png) [@6r0m](https://forums.unrealengine.com/u/6r0m)\
**Post date:** [December 12, 2023, 7:10am UTC](https://forums.unrealengine.com/t/compiling-libraries-in-linux/400275/9 "2023-12-12T07:10:50Z")

</div>

yeap, this topic helps a lot with final building grpc framework (1.59) on Linux (Ubuntu 22.04) and integrating in UE (5.2).

**with `-nodefaultlibs` there is a problem with building.**

final command line:

```auto
CXXFLAGS="-fPIC -std=c++17 -nostdinc++ -I/home/igor/Documents/Repos/UnrealEngine/UnrealEngine/Engine/Source/ThirdParty/Unix/LibCxx/include -I/home/igor/Documents/Repos/UnrealEngine/UnrealEngine/Engine/Source/ThirdParty/Unix/LibCxx/include/c++/v1 -stdlib=libc++ -L/home/igor/Documents/Repos/UnrealEngine/UnrealEngine/Engine/Source/ThirdParty/Unix/LibCxx/lib/Unix/x86_64-unknown-linux-gnu/ -L/home/igor/Documents/Repos/UnrealEngine/UnrealEngine/Engine/Source/ThirdParty/Unix/LibCxx/lib/Unix/x86_64-unknown-linux-gnu/libc++.a -L/home/igor/Documents/Repos/UnrealEngine/UnrealEngine/Engine/Source/ThirdParty/Unix/LibCxx/lib/Unix/x86_64-unknown-linux-gnu/libc++abi.a -lm -lc -lgcc_s -lgcc
" cmake ../../Repos/grpc -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/igor/Documents/Build/grpc/install -DCMAKE_C_COMPILER=/home/igor/Documents/Repos/UnrealEngine/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v21_clang-15.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang -DCMAKE_CXX_COMPILER=/home/igor/Documents/Repos/UnrealEngine/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v21_clang-15.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++ -DgRPC_SSL_PROVIDER=package -DOPENSSL_ROOT_DIR=/home/igor/Documents/Repos/openssl_1_1_1n

```

be ready to edit some grpc headers macro, wrap protobuf headers to undef UE macros, recompile abseil with different function calls (absent in UE environment), download make ssl with the same version as in UE and rebuild grpc with this.

also [this article](https://pgaleone.eu/2022/05/27/unreal-engine-third-party-linux-abi-compatibility/) clarifies UE Linux building process .

---

_[View the full topic](https://forums.unrealengine.com/t/compiling-libraries-in-linux/400275)._
