← Back to team overview

ubuntu-phone team mailing list archive

Re: Running uNav locally

 

El día Thursday, April 21, 2016 a las 04:00:55PM +0200, Michael Zanetti escribió:

> As a quick start start:
> 
> main.cpp:
> 
> #include <QQuickView>
> #include <QCoreApplication>
> 
> int main(int argc, char *argv[]) {
>   QGuiApplication app(argc, argv);
>   QQuickView v;
>   v.setSource("/path/to/some/qmlfile.qml");
>   v.show();
>   return app.exec();
> }
> 
> ...

Compiling this in my chroot system gives:

phablet@ubuntu-phablet:~/qapp$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG
-DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem
/usr/include/arm-linux-gnueabihf/qt5 -isystem
/usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem
/usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem
/usr/include/arm-linux-gnueabihf/qt5/QtCore -I.
-I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -o main.o main.cpp
main.cpp:16:22: fatal error: QQuickView: No such file or directory
#include <QQuickView>
                     ^
compilation terminated.

What piece do I miss? Thanks

	matthias


-- 
Matthias Apitz, ✉ guru@xxxxxxxxxxx, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045
¡Dios querido denos otra vez los problemas de ayer, los que tuvimos en la RDA!
My Lord, give us back the problems of yesterday, those we have had in the GDR.


Follow ups

References