Created
September 30, 2014 13:41
-
-
Save LogIN-/54b8bebd12de24eb884b to your computer and use it in GitHub Desktop.
including flags for QT framework simple in binding.gyp - node native module. If error possible solution is to add path: export LD_LIBRARY_PATH=/home/xxx/Qt/5.3/gcc/lib/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"targets": [{ | |
"target_name": "CutyCapt", | |
"sources": ["CutyCapt.cc"], | |
'conditions': [ | |
['OS=="linux"', { | |
'cflags': [ | |
'-fPIC', | |
'-std=c++11', | |
'<!@(pkg-config --cflags Qt5Core Qt5Svg Qt5WebKit Qt5WebKitWidgets Qt5Network)' | |
], | |
'ldflags': [ | |
'<!@(pkg-config --libs-only-L --libs-only-other Qt5Core Qt5Svg Qt5WebKit Qt5WebKitWidgets Qt5Network)' | |
], | |
'libraries': [ | |
'<!@(pkg-config --libs-only-l Qt5Core Qt5Svg Qt5WebKit Qt5WebKitWidgets Qt5Network)' | |
] | |
}] | |
] | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment