Comments (6)
From what I understand you need a way to include dlls ?
Wont libraryPaths in the config work ?
https://github.com/nodegui/qode#configurations-available-from-qode-v103
from qode.
@master-atul thanks for pointing that out, I didn't even notice it at all.
Shouldn't the property just be called libraries
instead of libraryPaths
?
From the description Specify extra library paths to load dlls from
, but in relative to what working directory exactly?
TL;DR
{
'variables': {
'qt_home_dir%': "/home/marcus-sa/Qt/5.13.1/gcc_64",
},
'target_conditions': [
['OS=="linux"', {
'include_dirs': [
'<(qt_home_dir)/include',
'<(qt_home_dir)/include/QtTest',
'<(qt_home_dir)/include/QtWidgets',
'<(qt_home_dir)/include/QtCore',
],
'libraries': [
'<(qt_home_dir)/lib/libQt5Test.so',
^-- Being able to include libraries
that comes with the Qt5 installation
'<(qt_home_dir)/lib/libQt5Widgets.so',
'<(qt_home_dir)/lib/libQt5Core.so',
],
}],
],
}
from qode.
libraryPaths
The libraryPaths are relative to qode executable or (you can even provide absolute paths)
'libraries': [
'<(qt_home_dir)/lib/libQt5Test.so',
^-- Being able to include libraries
that comes with the Qt5 installation
'<(qt_home_dir)/lib/libQt5Widgets.so',
This should work aswell (if this config is from qode gyp)
from qode.
The problem is that Qode only copies the libraries that I just wrote (QtCore, QtWidgets, QtGui) instead of the entire framework with all of its different libraries.
Installing Qt locally on my machine, I can see that they have 20+ libraries you can include, but since Qode only copies 3 of them (the ones needed for NodeGUI) it's impossible to actually use Qode for building 3rd party "plugins" that depend on specific Qt libraries that comes with the default installation...
That config I provided is the one from my own repository.
I'll try to implement it and create a PR.
from qode.
Why will qode include libraries that it doesnt need ? @marcus-sa
Ideally qode shouldnt depend on QtWidgets aswell since it only needs QtGui( for QApplication) and QtCore.
All other libs are needed for Nodegui shared binary
I am planning to remove QtWidgets also from Qode.
from qode.
So in short it would be better if you could add the libraries you need to your own shared library that you are building (ng-test)
from qode.
Related Issues (20)
- support for ia32 or arm64 on windows HOT 5
- Support global or root-user installations on Linux HOT 5
- Micro tasks being run manually HOT 2
- Question: What's wrong with my env? HOT 2
- Add node version correspondance HOT 1
- Errors while building on Windows 10 HOT 1
- qode.exe run error in chinese path? HOT 2
- qode.exe can't be renamed after packaging? HOT 3
- Cache downloaded resources HOT 1
- armv7l release HOT 2
- qode.exe runs only when run from the deploy/win32/build/AppName folder HOT 3
- Starting qode when user logs into windows? HOT 1
- Can only run qode via npm script?
- npm install fails with 'https://github.com/nodegui/qode/releases/download/v2.1.0/qode-darwin-arm64-v2.1.0.tar.gz. Not Found' HOT 4
- Documentation for injecting event loop HOT 5
- npm install fails HOT 1
- Win32 support HOT 4
- windows10 build failed HOT 2
- dynamic imports never resolve, iff you import anything from @nodegui/nodegui in the script doing the importing HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qode.