Coder Social home page Coder Social logo

Comments (6)

a7ul avatar a7ul commented on July 26, 2024

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.

marcus-sa avatar marcus-sa commented on July 26, 2024

@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.

a7ul avatar a7ul commented on July 26, 2024

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.

marcus-sa avatar marcus-sa commented on July 26, 2024

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.

a7ul avatar a7ul commented on July 26, 2024

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.

a7ul avatar a7ul commented on July 26, 2024

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)

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.