Skip to content

Instantly share code, notes, and snippets.

@Kakadu
Created April 11, 2012 13:32
Show Gist options
  • Save Kakadu/2359311 to your computer and use it in GitHub Desktop.
Save Kakadu/2359311 to your computer and use it in GitHub Desktop.
debugging QBS
$ cat project.qbp
import qbs.base 1.0
Project {
moduleSearchPaths: "."
Application {
name: "helloworld"
files: ["main.cpp", "a.ml"]
Depends { name: "Qt.core" }
Depends { name: "cpp" }
Depends { name: "Qt.declarative" }
Depends { name: "ocaml" }
}
}
$ cat ocaml/OCamlModule.qbs
import qbs.base 1.0
Module {
name: "ocaml"
FileTagger {
pattern: "*.ml"
fileTags: ["ml"]
}
Rule {
id: "compile"
prepare: {
var cmd = new Command("ocaml -c", input.basename );
return cmd;
}
}
}
$ qbs -vvvvv
Found project file /media/disk/kakadu/prog/lablqt/qml/test2qbs/project.qbp
TRACE: pluginmanager: loading plugins from '/media/disk/kakadu/prog/qbs/plugins/'.
TRACE: pluginmanager: scanner plugin '/media/disk/kakadu/prog/qbs/plugins/libqbs_cpp_scanner.so' loaded.
TRACE: pluginmanager: scanner plugin '/media/disk/kakadu/prog/qbs/plugins/libqbs_qt_scanner.so' loaded.
DEBUG: [BG] No stored build graph found that's compatible to the desired build configuration.
TRACE: [LDR] resolving /media/disk/kakadu/prog/lablqt/qml/test2qbs/project.qbp
TRACE: [LDR] resolve top-level /media/disk/kakadu/prog/lablqt/qml/test2qbs/project.qbp
TRACE: [LDR] resolve top-level /media/disk/kakadu/prog/lablqt/qml/test2qbs/project.qbp
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qt/core' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qt/core/qtcore.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qt/core' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qt/core/qtcore.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qt/declarative' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qt/declarative/declarative.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qt/core' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qt/core/qtcore.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qt/core' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qt/core/qtcore.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qt/gui' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qt/gui/qtgui.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qt/core' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qt/core/qtcore.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qt/core' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qt/core/qtcore.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qt/network' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qt/network/network.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qt/core' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qt/core/qtcore.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qt/script' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qt/script/script.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qt/core' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qt/core/qtcore.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'cpp' from /media/disk/kakadu/prog/qbs/share/qbs/modules/cpp/linux-gcc.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
TRACE: loading module 'qt/xmlpatterns' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qt/xmlpatterns/qtxmlpatterns.qbs
TRACE: loading module 'qbs' from /media/disk/kakadu/prog/qbs/share/qbs/modules/qbs/common.qbs
ERROR: id: must be followed by identifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment