Git Product home page Git Product logo

Comments (9)

hokyungh avatar hokyungh commented on May 24, 2024

Hi @SantosLV, thank you for reporting the issue. It might be due to setting boringssl to true as seen in here.

You might want to pass
-DLWS_WITH_BORINGSSL=OFF to turn it off or change the CMakeLists file to turn it off explicitly.

It is little weird that it didn't work with boring ssl though, would you be able to share the command you have used to build? Does it resemble something like

cmake -S . -B build -DLWS_OPENSSL_LIBRARIES="<boringssl_-ocation>/libssl.a;<boringssl-location>/libcrypto.a" -DLWS_OPENSSL_INCLUDE_DIRS=<ssl-header-location> -DCMAKE_TOOLCHAIN_FILE="./cmake/toolchains/LinuxClang.cmake"

?

We'll update the documentation as well to explicitly state this.

from amazon-chime-sdk-cpp.

SantosLV avatar SantosLV commented on May 24, 2024

Yeap,

the command I used was

cmake -S . -B build -DLWS_OPENSSL_LIBRARIES="boringssl/build/ssl/libssl.a;boringssl/build/crypto/libcrypto.a" -DLWS_OPENSSL_INCLUDE_DIRS=boringssl/include/openssl -DCMAKE_TOOLCHAIN_FILE="./cmake/toolchains/LinuxClang.cmake"

and I get the same errors.

Also-DLWS_WITH_BORINGSSL=OFF does not solve the issue.

What solves the issue for me was when I disable the option in CMakeLists.txt.

Thanks for your support @hokyungh .

from amazon-chime-sdk-cpp.

hokyungh avatar hokyungh commented on May 24, 2024

Hi glad changing the CMakeLists solved the issue. For DLWS_OPENSSL_INCLUDE_DIRS could you pass boringssl/include/? without openssl

from amazon-chime-sdk-cpp.

SantosLV avatar SantosLV commented on May 24, 2024

Yeap, boringssl/include/, solves the issue.

But then I got a linking error:

Linking C shared library libwebsockets.so
/usr/bin/ld: boringssl/build/crypto/libcrypto.a(bcm.c.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)

from amazon-chime-sdk-cpp.

hokyungh avatar hokyungh commented on May 24, 2024

Would you be able to provide OS/version you are running and how you installed boringssl? As seen in the demo, we directly uses boringssl from webRTC built artifacts.

from amazon-chime-sdk-cpp.

SantosLV avatar SantosLV commented on May 24, 2024

I am using Ubuntu 20.04.5 LTS. As for boringssl, I clone it from here https://github.com/google/boringssl

from amazon-chime-sdk-cpp.

hokyungh avatar hokyungh commented on May 24, 2024

That's very interesting. Could you add -fPIC flag when building boringssl or use the one from WebRTC as described in the demo?

from amazon-chime-sdk-cpp.

SantosLV avatar SantosLV commented on May 24, 2024

Adding -fPIC flag solves the issue!! :)

Thanks for your support!!

from amazon-chime-sdk-cpp.

hokyungh avatar hokyungh commented on May 24, 2024

cool glad it worked! Will close the issue. Feel free to open issues if you experience any problem.

from amazon-chime-sdk-cpp.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.