项目作者: node-3d

项目描述 :
Qt Gui binaries
高级语言: JavaScript
项目地址: git://github.com/node-3d/deps-qt-gui-raub.git
创建时间: 2017-01-23T19:43:33Z
项目社区:https://github.com/node-3d/deps-qt-gui-raub

开源协议:MIT License

下载


Qt Gui binaries

This is a part of Node3D project.

NPM
ESLint
Test

  1. npm i -s deps-qt-gui-raub

This dependency package is distributing Qt Gui 6.8.0
binaries through NPM for Node.js addons.

  • Platforms (x64): Windows, Linux, Linux ARM, MacOS ARM.
  • Libraries: Qt Gui.
  • Linking: dynamic dll-type.

Windows

Before any import of Qt-dependent module, there should be require('deps-qt-gui-raub').
On Windows it adds Qt’s DLL location to ENV PATH. On Unix it does nothing.

Unix

On Unix, special runtime library directories are not in ENV PATH. The paths
to such directories have to be compiled into the node-addon with rpath option.

Adjust binding.gyp:

  1. 'variables': {
  2. 'bin': '<!(node -p "require(\'addon-tools-raub\').bin")',
  3. 'qt_core_bin': '<!(node -p "require(\'deps-qt-core-raub\').bin")',
  4. 'qt_gui_bin': '<!(node -p "require(\'deps-qt-gui-raub\').bin")',
  5. },
  6. ...
  7. 'targets': [
  8. {
  9. 'target_name': '...',
  10. 'conditions': [
  11. ['OS=="linux"', {
  12. 'libraries': [
  13. "-Wl,-rpath,'$$ORIGIN'",
  14. "-Wl,-rpath,'$$ORIGIN/../node_modules/deps-qt-core-raub/<(bin)'",
  15. "-Wl,-rpath,'$$ORIGIN/../node_modules/deps-qt-gui-raub/<(bin)'",
  16. "-Wl,-rpath,'$$ORIGIN/../../deps-qt-core-raub/<(bin)'",
  17. "-Wl,-rpath,'$$ORIGIN/../../deps-qt-gui-raub/<(bin)'",
  18. '<(qt_core_bin)/libicui18n.so.73',
  19. '<(qt_core_bin)/libicuuc.so.73',
  20. '<(qt_core_bin)/libicudata.so.73',
  21. '<(qt_core_bin)/libicuio.so.73',
  22. '<(qt_core_bin)/libicule.so.73',
  23. '<(qt_core_bin)/libicutu.so.73',
  24. '<(qt_core_bin)/libQt6Core.so.6',
  25. '<(qt_core_bin)/libQt6Network.so.6',
  26. '<(qt_core_bin)/libQt6DBus.so.6',
  27. '<(qt_gui_bin)/libQt6Gui.so.6',
  28. '<(qt_gui_bin)/libQt6OpenGL.so.6',
  29. '<(qt_gui_bin)/libQt6Widgets.so.6',
  30. '<(qt_gui_bin)/libQt6XcbQpa.so.6',
  31. ],
  32. }],
  33. ['OS=="mac"', {
  34. 'libraries': [
  35. '-Wl,-rpath,@loader_path',
  36. '-Wl,-rpath,@loader_path/../node_modules/deps-qt-core-raub/<(bin)',
  37. '-Wl,-rpath,@loader_path/../node_modules/deps-qt-gui-raub/<(bin)',
  38. '-Wl,-rpath,@loader_path/../../deps-qt-core-raub/<(bin)',
  39. '-Wl,-rpath,@loader_path/../../deps-qt-gui-raub/<(bin)',
  40. ],
  41. }],
  42. ],
  43. },

Preload libraries:

  1. #ifndef WIN32
  2. #include <dlfcn.h>
  3. #endif
  4. // ... inside some kind of init() function
  5. #ifdef __linux__
  6. dlopen("libicui18n.so.73", RTLD_LAZY);
  7. dlopen("libicuuc.so.73", RTLD_LAZY);
  8. dlopen("libicudata.so.73", RTLD_LAZY);
  9. dlopen("libicuio.so.73", RTLD_LAZY);
  10. dlopen("libicule.so.73", RTLD_LAZY);
  11. dlopen("libicutu.so.73", RTLD_LAZY);
  12. dlopen("libQt6Core.so.6", RTLD_LAZY);
  13. dlopen("libQt6Network.so.6", RTLD_LAZY);
  14. dlopen("libQt6DBus.so.6", RTLD_LAZY);
  15. dlopen("libQt6Gui.so.6", RTLD_LAZY);
  16. dlopen("libQt6OpenGL.so.6", RTLD_LAZY);
  17. dlopen("libQt6Widgets.so.6", RTLD_LAZY);
  18. dlopen("libQt6XcbQpa.so.6", RTLD_LAZY);
  19. #endif

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 binaries were extracted from installed copy of the framework.


The rest of this package is MIT licensed.