home Forums # Technical Support Error Ubuntu

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2194
    Unknown
    Member

    Hi, I made the build files, and them made a “sudo make install” inside the release folder.
    After that, I tried to include the library on QT creator using #include <lf/Headers.h> and it did fine, but when i try to compile, it show me a lot of erros, like

    /usr/local/include/fl/Engine.h:75: error: invalid conversion from ‘long int’ to ‘std::string* {aka std::basic_string<char>*}’ [-fpermissive]
    virtual bool isReady(std::string* status = fl::null) const;

    /usr/local/include/fl/Engine.h:94: error: invalid conversion from ‘long int’ to ‘std::string* {aka std::basic_string<char>*}’ [-fpermissive]
    virtual Type type(std::string* name = fl::null, std::string* reason = fl::null) const;
    ^

    /usr/local/include/fl/Engine.h:94: error: invalid conversion from ‘long int’ to ‘std::string* {aka std::basic_string<char>*}’ [-fpermissive]
    virtual Type type(std::string* name = fl::null, std::string* reason = fl::null) const;
    ^
    ^

    #2195

    Hi,

    Thanks for your post.

    Please, add the definition “-DFL_CPP11=ON” to your project.

    Cheers.

    #2196
    Unknown
    Member

    Juan, first I would like to thank you for your quick answer and for that awesome library/program. I’m sorry to disturb you with these silly questions, but im new on linux and qt creator, so how can I add this definition on my project ?
    Thanks again, cheers.

    #2197

    Hi,

    In your project.pro, add:

    
    CONFIG += c++11
    DEFINES += FL_CPP11
    QMAKE_CXXFLAGS = -std=c++11
    

    I think this would do.

    Cheers.

    #2201
    Unknown
    Member

    Juan, now it’s working perfectly, I am really glad you helped me, thanks a lot.
    Cheers and thanks for your awesome work, it’s really making all the difference im my robots project.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.