elastos / Elastos.CarrierClassic.Native

Elastos Carrier is a decentralized peer to peer communication framework.
GNU General Public License v3.0
30 stars 27 forks source link

Error when building feeds-service on RPi ubuntu arm64 #410

Open ademcan opened 4 years ago

ademcan commented 4 years ago

Hi team,

I am having the following error when I try to build https://github.com/elastos-trinity/feeds-service on a Raspberry Pi 4 running Ubuntu (arm64). I am posting here as the issue occurs while building the carrier SDK:

[ 88%] Linking C shared library libelasession.so /usr/bin/ld: cannot find -lpjmedia /usr/bin/ld: cannot find -lpjnath /usr/bin/ld: cannot find -lpjlib-util /usr/bin/ld: cannot find -lpj /usr/bin/ld: cannot find -lsrtp collect2: error: ld returned 1 exit status make[5]: [src/session/CMakeFiles/elasession-shared.dir/build.make:235: src/session/libelasession.so] Error 1 make[4]: [CMakeFiles/Makefile2:925: src/session/CMakeFiles/elasession-shared.dir/all] Error 2 make[3]: [Makefile:152: all] Error 2 make[2]: [deps/Elastos.NET.Carrier.Native.SDK/CMakeFiles/Elastos.NET.Carrier.Native.SDK.dir/build.make:115: deps/Elastos.NET.Carrier.Native.SDK/external/src/Elastos.NET.Carrier.Native.SDK-stamp/Elastos.NET.Carrier.Native.SDK-build] Error 2 make[1]: [CMakeFiles/Makefile2:466: deps/Elastos.NET.Carrier.Native.SDK/CMakeFiles/Elastos.NET.Carrier.Native.SDK.dir/all] Error 2 make: [Makefile:152: all] Error 2

The issue is the same as #173 but this should have been fixed already. Thank you for your help.

stiartsly commented 4 years ago

@ademcan Please check whether the dependency "pjsip" has been compiled successfully or not on your raspberry. You can check there are pjsip libraries mentioned your error list under $YOUR-BUILD-PATH/intermediate/lib .

stiartsly commented 4 years ago

In the case, you can try to rebuild pjsip dependency to see what's real reason of failure with the commands below:

 $ cd $YOUR-BUILD-PATH
 $ rm -rf deps/pjsip
 $ make pjsip

let's see what's the real error information in screen, and decide how to resolve later.

libbin commented 2 years ago

The new code should build on ubuntu arm64 https://github.com/elastos/Elastos.NET.Carrier.Native.SDK/commit/79c8d02077f25eebf6ce42ba03d0744395c20a29