[Qt-creator] Emscripten kit gives "Module cpp could not be loaded"

Denis Shienkov denis.shienkov at gmail.com
Mon Feb 2 08:50:32 CET 2015


Hi.

Maybe it is related (similar) to: https://bugreports.qt.io/browse/QBS-709 ?

BR,
Denis

2015-02-01 23:43 GMT+03:00 Tim Hutt <tdhutt at gmail.com>:

> Hi,
>
> I have an Emscripten kit with a compiler set up to point to: `C:\Program
> Files\Emscripten\emscripten\1.25.0\emcc.bat`
>
> I also have a QBS file as follows:
>
> import qbs
>
>
> CppApplication {
>
> 	type: "application"
>
>
> 	files: [
>
> 		"*.cpp",
>
> 		"*.h",
>
> 		"enet/*.cpp",
>
> 		"enet/*.h"
>
> 	]
>
>
>     cpp.executableSuffix: ".html"
>
>     cpp.includePaths: ["."]
>
>     cpp.cxxFlags: ["-std=c++11", "-Wno-unused-parameter", "-Wno-unused-private-field", "-Wno-unused-variable", "-Wno-switch",
>
>         "-fno-exceptions", "-fno-rtti"]
>
>     cpp.linkerFlags: ["--preload-file", path + "/res@/"]
>
> }
>
>
>
> This worked fine in an older version of Qt Creator (the one that came with
> Qt 5.1 I believe). I just upgraded to Qt Creator 3.3.0 (from Qt 5.4), and I
> get the following error when parsing the QBS file:
>
> C:\Qt\Tools\QtCreator\share\qtcreator\qbs\share\qbs\imports\qbs\base\CppApplication.qbs:4:
> error: Module cpp could not be loaded.
>
> The verbose debug output from QBS isn't interesting. The error goes away
> when I change the kit's compiler to mingw, but obviously that isn't very
> useful. Does anyone have any ideas about this?
>
> Cheers,
>
> Tim
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20150202/34c0d9d2/attachment.html>


More information about the Qt-creator mailing list