Coder Social home page Coder Social logo

Cannot get running on Ubuntu 20.04 about livekeys HOT 1 OPEN

bj0 avatar bj0 commented on June 12, 2024
Cannot get running on Ubuntu 20.04

from livekeys.

Comments (1)

dinusv avatar dinusv commented on June 12, 2024

The minimal release requires Qt 5.14 to run, probably from apt you have a lower one.

The standalone release has the Qt version shipped with the application, but for some reason it's not finding the Opencv packages, I will need to look into that.

Till then building the source would be the best option. That webengine error is a feature Qt have changed depending on the version. In some you need to initialise the webengine before declaring the application, and in others you need to initialise it after.

Here's the section in https://github.com/live-keys/livekeys/blob/master/application/src/main.cpp:

...

#if (QT_VERSION >= QT_VERSION_CHECK(5,12,0))
    QtWebEngine::initialize();
#endif
    
    QGuiApplication app(argc, argv);
    QGuiApplication::setApplicationName("Livekeys");
    QGuiApplication::setApplicationVersion(Livekeys::versionString());

#if (QT_VERSION < QT_VERSION_CHECK(5,12,0))
    QtWebEngine::initialize();
#endif

In your case, you will need it after the construction of the application object. Just remove the two macros, and declare it after, it should build fine:

// #if (QT_VERSION >= QT_VERSION_CHECK(5,12,0))
//    QtWebEngine::initialize();   
//#endif. 
    
    QGuiApplication app(argc, argv);
    QGuiApplication::setApplicationName("Livekeys");
    QGuiApplication::setApplicationVersion(Livekeys::versionString());

// #if (QT_VERSION < QT_VERSION_CHECK(5,12,0))
    QtWebEngine::initialize();
// #endif

Let me know how the build works, and let me know what version you have so I can update the macros.

Also, note that building from source will not build the documentation (including the startup tutorial), you will need live-doc for that:

apt install doxygen node
git clone https://github.com/live-keys/live-doc.git
cd live-doc
npm install
node live-doc.js <path_to_livekeys_source> --deploy <path_to_livekeys_bin>

from livekeys.

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.