Got it working. Seems while merging v1.41.0 we resolved a conflict in 
CMakeList.txt wrong.

scho...@gmail.com schrieb am Dienstag, 5. Oktober 2021 um 12:54:09 UTC+2:

> Currently we are building the grpc_csharp_ext.dll like this
>
> ```
> set ARCHITECTURE=%1
>
>
> call "C:\Program Files (x86)\Microsoft Visual 
> Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %ARCHITECTURE%
>
> set OpenSSLVer=Win32
> if "%ARCHITECTURE%" == "x64" (
>   set OpenSSLVer=Win64
> )
>
> cmake -G Ninja -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe 
> -DCMAKE_BUILD_TYPE=RelWithDebInfo -DgRPC_SSL_PROVIDER:STRING=package 
> -DOPENSSL_ROOT_DIR:PATH=c:\OpenSSL-%OpenSSLVer% -DgRPC_BUILD_TESTS=OFF 
> -DgRPC_MSVC_STATIC_RUNTIME=ON 
> ../../../..
>
> cmake --build . --target grpc_csharp_ext
> ```
>
> with small changes in the CMakeList.txt to link with static OpenSSL lib
> ```
> target_link_libraries(grpc_csharp_ext
>   ${_gRPC_ALLTARGETS_LIBRARIES}
>   ${_gRPC_SSL_LIBRARIES}
>   gpr
>   grpc
> )
> ```
> This was working fine in version 1.28. Now we updated our soruces to 1.41 
> and the build of the dll failed with some Linker errors
>
> ```
>
> upb.lib(text_encode.c.obj) : error LNK2019: unresolved external symbol 
> upb_fielddef_isseq referenced in function txtenc_
> msg
> upb.lib(reflection.c.obj) : error LNK2001: unresolved external symbol 
> upb_fielddef_isseq
> upb.lib(text_encode.c.obj) : error LNK2019: unresolved external symbol 
> upb_fielddef_ismap referenced in function txtenc_
> msg
> upb.lib(reflection.c.obj) : error LNK2001: unresolved external symbol 
> upb_fielddef_ismap
> upb.lib(text_encode.c.obj) : error LNK2019: unresolved external symbol 
> upb_fielddef_msgsubdef referenced in function txt
> enc_array
> upb.lib(reflection.c.obj) : error LNK2001: unresolved external symbol 
> upb_fielddef_msgsubdef
> upb.lib(text_encode.c.obj) : error LNK2019: unresolved external symbol 
> upb_fielddef_enumsubdef referenced in function tx
> tenc_array
> ...
> ...
> ``` 
> When running the `run_tests.py` it also failed with `Some tests failed`. 
> Did something change between the versions for building the 
> grpc_csharp_ext.dll? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/e23abc72-de87-43ee-960b-3fd1e14d8b61n%40googlegroups.com.

Reply via email to