npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

deps-qmlui-raub

v4.0.0

Published

Binaries and headers for QmlUi-dependent compilation

Downloads

26

Readme

QmlUi binaries

This is a part of Node3D project.

NPM ESLint Test Cpplint Build

npm i -s deps-qmlui-raub

OpenGL QML offscreen renderer with non-Qt C++ API. Uses QQuickRenderControl to render QML scenes to textures. The QML renderer has a separate OpenGL context, so resource sharing is used.

Binaries are prebuilt and then used as dependency package.

  • Platforms (x64): Windows, Linux, Linux ARM, MacOS ARM.
  • Library: QmlUi.
  • Linking: static dll-type.

Common workflow

  1. Create a window and initialize OpenGL context.
  2. Call QmlUi::init2(...) to create the QML rendering surface (and its shared OpenGL context).
  3. Instantiate QmlUi and load a QML scene.
  4. Receive an OpenGL texture ID and use it somehow.
  5. Send/receive input and other events.

See QmlUi header for more details.

Building addons

Requiring this module on Windows - require('deps-qmlui-raub') - adds Qt's DLL location to ENV PATH. On Unix this does nothing, as library directories are not in ENV PATH. The paths for Unix have to be compiled into the node-addon with rpath option.

  'variables': {
    'qt_core_bin': '<!(node -p "require(\'deps-qmlui-raub\').core.bin")',
    'qt_gui_bin': '<!(node -p "require(\'deps-qmlui-raub\').gui.bin")',
    'qt_qml_bin': '<!(node -p "require(\'deps-qmlui-raub\').qml.bin")',
    'qmlui_include': '<!(node -p "require(\'deps-qmlui-raub\').include")',
    'qmlui_bin': '<!(node -p "require(\'deps-qmlui-raub\').bin")',
  },
  ...
  'targets': [
    {
      'target_name': '...',
      
      'include_dirs': [
        '<(qmlui_include)',
      ],
      
      'library_dirs': [ '<(qmlui_bin)' ],
      'libraries'    : [ '-lqmlui' ],
      
      'conditions': [
        
        ['OS=="linux"', {
          'libraries': [
            "-Wl,-rpath,'$$ORIGIN'",
            "-Wl,-rpath,'$$ORIGIN/../node_modules/deps-qt-core-raub/bin-linux'",
            "-Wl,-rpath,'$$ORIGIN/../node_modules/deps-qt-gui-raub/bin-linux'",
            "-Wl,-rpath,'$$ORIGIN/../node_modules/deps-qt-qml-raub/bin-linux'",
            "-Wl,-rpath,'$$ORIGIN/../node_modules/deps-qmlui-raub/bin-linux'",
            "-Wl,-rpath,'$$ORIGIN/../../deps-qt-core-raub/bin-linux'",
            "-Wl,-rpath,'$$ORIGIN/../../deps-qt-gui-raub/bin-linux'",
            "-Wl,-rpath,'$$ORIGIN/../../deps-qt-qml-raub/bin-linux'",
            "-Wl,-rpath,'$$ORIGIN/../../deps-qmlui-raub/bin-linux'",
          ],
        }],
        
        ['OS=="mac"', {
          'libraries': [
            '<(qmlui_bin)/libqmlui.dylib',
            '-Wl,-rpath,@loader_path',
            '-Wl,-rpath,@loader_path/../node_modules/deps-qt-core-raub/bin-osx',
            '-Wl,-rpath,@loader_path/../node_modules/deps-qt-gui-raub/bin-osx',
            '-Wl,-rpath,@loader_path/../node_modules/deps-qt-qml-raub/bin-osx',
            '-Wl,-rpath,@loader_path/../node_modules/deps-qmlui-raub/bin-osx',
            '-Wl,-rpath,@loader_path/../../deps-qt-core-raub/bin-osx',
            '-Wl,-rpath,@loader_path/../../deps-qt-gui-raub/bin-osx',
            '-Wl,-rpath,@loader_path/../../deps-qt-qml-raub/bin-osx',
            '-Wl,-rpath,@loader_path/../../deps-qmlui-raub/bin-osx',
          ],
        }],
        
        ['OS=="win"', {
          'libraries': [ '-lqmlui' ],
        }],
        
      ],
    },
#ifdef __linux__
  #include <dlfcn.h>
#endif

  // ... inside some kind of init() function
  #ifdef __linux__
  dlopen("libicui18n.so.73", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libicuuc.so.73", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libicudata.so.73", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libicuio.so.73", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libicule.so.73", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libicutu.so.73", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libQt6Core.so.6", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libQt6Network.so.6", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libQt6DBus.so.6", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libQt6Gui.so.6", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libQt6OpenGL.so.6", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libQt6Widgets.so.6", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libQt6XcbQpa.so.6", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libQt6Qml.so.6", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libQt6Quick.so.6", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libQt6QuickControls2.so.6", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libQt6QuickTemplates2.so.6", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libQt6QuickWidgets.so.6", RTLD_NOW | RTLD_GLOBAL);
  dlopen("libqmlui.so", RTLD_NOW | RTLD_GLOBAL);
  #endif

Legal notice

This software uses the Qt library. Qt is legally used under the LGPLv3 (GNU Lesser General Public License) version. It is explicitly stated that Qt Libraries can be used in a commercial closed-source app (if you wish):

In case of dynamic linking, it is possible, but not mandatory, to keep application source code proprietary as long as it is “work that uses the library” – typically achieved via dynamic linking of the library.

These terms and conditions allow using (unmodified) Qt as a shared library (DLL), in a closed-source project.

Qt licensing information (a COPY) is given in a separate file, which also can be found on Qt's official web-site.


The rest of this package is MIT licensed.