Giter Club home page Giter Club logo

Comments (8)

zhiyua-git avatar zhiyua-git commented on June 26, 2024

Hi evi8899,

Can you check your GCC version by running g++ --version? This is a C++14 feature which is supported after GCC 5. (C++14 Language Features)

You will need to update your GCC and rebuild to fix this issue.

Thanks,
-ZH

from amazon-kinesis-video-streams-producer-sdk-cpp.

evi8899 avatar evi8899 commented on June 26, 2024

I have updated to gcc 5.
Close the issue. Thanks!!

from amazon-kinesis-video-streams-producer-sdk-cpp.

ACGAshwin avatar ACGAshwin commented on June 26, 2024

I am currently on GCC/C++ 7.2 yet i still get this error

from amazon-kinesis-video-streams-producer-sdk-cpp.

chehefen avatar chehefen commented on June 26, 2024

do you have multiple compilers installed? can you try export CC=path/to/gcc-7.2.0 and CXX=path/to/g++-7.2.0? Also remember to delete CMakeCache.txt before running install-script.

from amazon-kinesis-video-streams-producer-sdk-cpp.

ACGAshwin avatar ACGAshwin commented on June 26, 2024

Thanks Chehefen. That didnt resolve the issue.

Did the following
export CXX=/opt/rh/devtoolset-7/root/usr/bin/g++
export CC=/opt/rh/devtoolset-7/root/usr/bin/gcc

and then removed the CMakeCache.txt from the native build directory and still got the same error

from amazon-kinesis-video-streams-producer-sdk-cpp.

ACGAshwin avatar ACGAshwin commented on June 26, 2024

configure is able to detect as well but the build still fails. which compiler ver was used by you ?

checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... /opt/rh/devtoolset-7/root/usr/bin/gcc
checking whether the C compiler works... yes 

from amazon-kinesis-video-streams-producer-sdk-cpp.

ACGAshwin avatar ACGAshwin commented on June 26, 2024

Alternative : I tried compiling by forcing the following definition of make_unique into the DefaultCallbackProvider.h . The file compiled but now i am stuck at another error error: invalid use of auto’ PServiceCallContext service_call_ctx) -> auto {

`namespace std {
template struct _Unique_if {
typedef unique_ptr _Single_object;
};

template<class T> struct _Unique_if<T[]> {
    typedef unique_ptr<T[]> _Unknown_bound;
};

template<class T, size_t N> struct _Unique_if<T[N]> {
    typedef void _Known_bound;
};

template<class T, class... Args>
    typename _Unique_if<T>::_Single_object
    make_unique(Args&&... args) {
        return unique_ptr<T>(new T(std::forward<Args>(args)...));
    }

template<class T>
    typename _Unique_if<T>::_Unknown_bound
    make_unique(size_t n) {
        typedef typename remove_extent<T>::type U;
        return unique_ptr<T>(new U[n]());
    }

template<class T, class... Args>
    typename _Unique_if<T>::_Known_bound
    make_unique(Args&&...) = delete;

}`

from amazon-kinesis-video-streams-producer-sdk-cpp.

unicornss avatar unicornss commented on June 26, 2024

Hi @ACGAshwin ,

Could you please try

export PATH=/opt/rh/devtoolset-7/root/usr/bin:$PATH

rm -rf yourpathtosdk/kinesis-video-native-build/CMakeCache.txt yourpathtosdk/kinesis-video-native-build/CMakeFiles

before running the ./install-script ?

Thanks

from amazon-kinesis-video-streams-producer-sdk-cpp.

Related Issues (20)

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.