Open Alexorleon opened 8 years ago
Maybe you should add "QMAKE_CXXFLAGS += --std=gnu++11" in your pro file and also add the lines
QQmlApplicationEngine engine;
engine.addImportPath("qrc:/");
within your "main.cpp" file to make the Material plugin available.
i have same problem , designer shows controls perfectly but in running i get "module "Material" is not installed"
Hello.
I created an empty project. Qt 5.6, Ubuntu x64. Added the submodule: git submodule add https://github.com/papyros/qml-material.git material
Added the .pri file to project and included OPTIONS += roboto.
Added import Material 0.2
But nothing works.
QQmlApplicationEngine failed to load component qrc:/qml/main.qml:2 module "Material" is not installed
I did this: mkdir build // ok cd build // ok qmake .. // ok, after installing some libraries (quick, qml) make // error
In file included from ../material/src/plugin.cpp:15:0: ../material/src/core/device.h:45:22: error: ISO C++ forbids declaration of ‘Q_ENUM’ with no type [-fpermissive] Q_ENUM(FormFactor) ^ ../material/src/core/device.h:45:22: error: expected ‘;’ at end of member declaration make: *\ [plugin.o] Error 1
This is a bug or am I doing something wrong?