Skip to content

Instantly share code, notes, and snippets.

@LogIN-
Created September 30, 2014 13:41
Show Gist options
  • Save LogIN-/54b8bebd12de24eb884b to your computer and use it in GitHub Desktop.
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/
{
"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