Skip to content

Commit

Permalink
Merge pull request #669 from Cysharp/doc/stub
Browse files Browse the repository at this point in the history
doc: grpc_csharp_ext_dummy_stubs.c also apply to Linux
  • Loading branch information
guitarrapc authored Aug 9, 2023
2 parents 8a38844 + c31aec6 commit 9d4a134
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1201,8 +1201,8 @@ $ cd ${UNITY_PATH}/Plugins/Grpc.Core/runtime/android/${TARGET_ARCH}
$ strip.exe libgrpc_csharp_ext.so
```

## Workaround for il2cpp + Windows Build failure
If you do a Windows il2cpp build with the gRPC daily build, the build may fail with following error messages.
## Workaround for il2cpp + Windows/Linux Build failure
If you do a Windows/Linux il2cpp build with the gRPC daily build, the build may fail with following error messages.

```
20AAB1A42EE7F9CA535031CD347327DE.obj : error LNK2019: unresolved external symbol dlopen referenced in function Mono_dlopen_m7F2DE2CD0870AB15EEA4E0A0BA6C47044E74BB67
Expand All @@ -1212,7 +1212,7 @@ C:\Path\To\MyProject\Library\il2cpp_cache\linkresult_C1E926E002526A4D380E4B12B6B
```

The reason is because some native function (but not nessessary at the runtime) not found on Windows il2cpp build.
You can avoid this problem by adding the following code to `grpc_csharp_ext_dummy_stubs.c`.
You can avoid this problem by adding the following code to `Assets/Pugins/Grpc.Core/runtimes/grpc_csharp_ext_dummy_stubs.c`. Then enable platform you needed, `Windows x86/x64` and/or `Linux x64`.

```c
void* dlopen(const char* filename, int flags) {
Expand Down

0 comments on commit 9d4a134

Please sign in to comment.