haiyangwu / mediasoup-client-android

mediasoup android client side library https://mediasoup.org
MIT License
178 stars 107 forks source link

compilation problem with ver-3.4.0 #56

Closed qwert3356 closed 1 year ago

qwert3356 commented 1 year ago

Hello, Developer of mediasoup-client-android,

I'm currently importing the dev-3.4.0 version (commit af27763) into my project as an android module

but when android studio doing Task :mediasoup-client-3.4.0:externalNativeBuildDebug

it will get c++ compile error for two file below:

mediasoup-client\src\main\jni\device_jni.cpp mediasoup-client\src\main\jni\transport_jni.cpp

D:\10-11-5g-android\10-11-5g-android\mediasoup-client-3.4.0\src\main\jni\device_jni.cpp:113:29: error: allocating an object of abstract class type 'mediasoupclient::SendTransportListenerJni'

D:\10-11-5g-android\10-11-5g-android\mediasoup-client-3.4.0\src\main\jni\transport_jni.cpp:219:83: error: no viable conversion from 'nlohmann::json' (aka 'basic_json<>') to 'const nlohmann::json ' (aka 'const basic_json<> ')

Is this problem related to my android studio settings? Or the part with c++ jni in dev-3.4.0 still under development?

build error.log

haiyangwu commented 1 year ago

v3.4.0 is a develop branch, the issue you mentioned haven't been solved yet.

On Tue, Oct 11, 2022 at 12:43 PM qwert3356 @.***> wrote:

Hello, Developer of mediasoup-client-android,

I'm currently importing the dev-3.4.0 version (commit af27763 https://github.com/haiyangwu/mediasoup-client-android/commit/af27763bd5f486a0d1a8c239b4759492c048341c) into my project as an android module

but when android studio doing Task :mediasoup-client-3.4.0:externalNativeBuildDebug

it will get c++ compile error for two file below:

mediasoup-client\src\main\jni\device_jni.cpp mediasoup-client\src\main\jni\transport_jni.cpp

D:\10-11-5g-android\10-11-5g-android\mediasoup-client-3.4.0\src\main\jni\device_jni.cpp:113:29: error: allocating an object of abstract class type 'mediasoupclient::SendTransportListenerJni'

D:\10-11-5g-android\10-11-5g-android\mediasoup-client-3.4.0\src\main\jni\transport_jni.cpp:219:83: error: no viable conversion from 'nlohmann::json' (aka 'basic_json<>') to 'const nlohmann::json ' (aka 'const basic_json<> ')

Is this problem related to my android studio settings? Or the part with c++ jni in dev-3.4.0 still under development?

build error.log https://github.com/haiyangwu/mediasoup-client-android/files/9751149/build.error.log

— Reply to this email directly, view it on GitHub https://github.com/haiyangwu/mediasoup-client-android/issues/56, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOBOGQMFD33BCK65LA7OVLWCTV5PANCNFSM6AAAAAARB4RRJI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Haiyang Wu @.***>

qwert3356 commented 1 year ago

Ok, many thanks!

Glad you were able to restart this project, hope you can successfully complete your work on it!