Quantcast
Channel: Qt DevNet forums: QtonPi
Viewing all 92 articles
Browse latest View live

Cross compiling Qt5 for raspberry pi - ABI detection failed

$
0
0
Hi, I am trying to use QtCreator 2.5.2 in ubuntu 12.10 to cross compile and deploy to 2012-10-28-wheezy-raspbian. I ran the bakeqtpi script from here: http://qt-project.org/wiki/RaspberryPi_Beginners_guide then fixed the “Qt version not properly installed” error by using mkdir bin and mkdir translations, then fixed the “The default mkspec symlink is broken.” error by copying the mkspecs to /mnt/rasp-pi-rootfs as described, and then making the default symlink. Now in the Qt Creator Build and Run | Qt Versions tab, there is a warning triangle next to the qt5pi version and the message: “ABI detection failed: Make sure to use a matching tool chain when building”. I am wondering if this is the reason why Qt Creator will not let me change the QT version to qt5pi in the Embedded linux target (the list of versions is greyed out and stuck on Qt4.8.3 in PATH). As an alternative, I tried using the Desktop target (where I can select and build the arm qt5pi version) but here there is no “Deploy to Remote Linux Host” Deployment configuration available to add (unlike in the Embedded linux target). So I can build a rasbian qt5 executable in Desktop but can’t deploy it, whereas under Embedded Linux I think I could deploy it, but can’t build it! Any help would be greatly appreciated. Regards, Kit

bakeqtpi.bash script build error in QtBase

$
0
0
I’ve tried bakeqtpi.bash script to generate an image with Qt5 following the instructions at http://qt-project.org/wiki/RaspberryPi_Beginners_guide both in build machines Ubuntu 12.04 32-bit and Debian Wheezy 64-bit and I get the same build failure: .obj/release-shared/main.o: In function `dumpRecursive(QDir const&, QTextStream&)’: main.cpp:(.text+0×3ea): undefined reference to `QDir::entryInfoList(QFlags<QDir::Filter>, QFlags<QDir::SortFlag>) const’ main.cpp:(.text+0×3ea): undefined reference to `QDir::entryInfoList(QFlags<QDir::Filter>, QFlags<QDir::SortFlag>) const’ main.cpp:(.text+0×45f): undefined reference to `QDir::QDir(QString const&)’ main.cpp:(.text+0×476): undefined reference to `QDir::~QDir()’ .obj/release-shared/main.o: In function `createProject(QString const&)’: main.cpp:(.text+0×572): undefined reference to `QDir::currentPath()’ main.cpp:(.text+0×57f): undefined reference to `QDir::QDir(QString const&)’ main.cpp:(.text+0×5aa): undefined reference to `QDir::dirName() const’ main.cpp:(.text+0×5c6): undefined reference to `QFile::QFile()’ main.cpp:(.text+0×5ef): undefined reference to `QFile::open(_IO_FILE*, QFlags<QIODevice::OpenModeFlag>, QFlags<QFileDevice::FileHandleFlag>)’ main.cpp:(.text+0×699): undefined reference to `QFile::~QFile()’ main.cpp:(.text+0×6bf): undefined reference to `QDir::~QDir()’ main.cpp:(.text+0×74d): undefined reference to `QDir::QDir(QString const&)’ main.cpp:(.text+0×769): undefined reference to `QDir::~QDir()’ main.cpp:(.text+0×7d9): undefined reference to `QFile::setFileName(QString const&)’ It seems it can’t find the Qt libraries. Should I install qt5 libs on the build machine before running the script? I’ve already installed Qt5 SDK Beta 2.

What projects are you running on QtonPi

$
0
0
I’d like to see your Projects and read about your experiences with QtonPi

Fast Pi delivery in benelux

$
0
0
today, my Pi arrived. It only took one week through the benelux farnell provider minifo. I expected to get it next year following all the forum topics complaining about months of waiting. So if you want it for a newsyear present… go for it! Now is play time!!

Problem cross compiling (QT5) Qt3D to raspberry Pi

$
0
0
Hi, I have created working cross compile environment to my linux mint laptop. I was able to deploy simple helloworld app to my rpi. Now I have tried to get teapot example to work, but no luck. Teapot qt example is here: “http://doc-snapshot.qt-project.org/qt3d-1.0/qt3d-teapot.html” There is something wrong with my teapotview constructor, but I don’t now what it is.. Does anyone know what is the problem, I have run out of ideas here? Error print: In file included from ../qt5-raspberrypi-example/main.cpp:2:0: ../qt5-raspberrypi-example/teapotview.h: In constructor 'TeapotView::TeapotView(QWidget*)': ../qt5-raspberrypi-example/teapotview.h:13:65: error: no matching function for call to 'QGLView::QGLView(QWidget*&)' ../qt5-raspberrypi-example/teapotview.h:13:65: note: candidates are: In file included from /mnt/rasp-pi-rootfs/usr/local/qt5pi/include/Qt3D/QGLView:1:0,                  from ../qt5-raspberrypi-example/teapotview.h:4,                  from ../qt5-raspberrypi-example/main.cpp:2: /mnt/rasp-pi-rootfs/usr/local/qt5pi/include/Qt3D/qglview.h:63:14: note: QGLView::QGLView(const QSurfaceFormat&, QWindow*) /mnt/rasp-pi-rootfs/usr/local/qt5pi/include/Qt3D/qglview.h:63:14: note:   no known conversion for argument 1 from 'QWidget*' to 'const QSurfaceFormat&' /mnt/rasp-pi-rootfs/usr/local/qt5pi/include/Qt3D/qglview.h:62:14: note: QGLView::QGLView(QWindow*) /mnt/rasp-pi-rootfs/usr/local/qt5pi/include/Qt3D/qglview.h:62:14: note:   no known conversion for argument 1 from 'QWidget*' to 'QWindow*' /mnt/rasp-pi-rootfs/usr/local/qt5pi/include/Qt3D/qglview.h:58:21: note: QGLView::QGLView(const QGLView&) /mnt/rasp-pi-rootfs/usr/local/qt5pi/include/Qt3D/qglview.h:58:21: note:   no known conversion for argument 1 from 'QWidget*' to 'const QGLView&' make: *** [main.o] Error 1 Here is my code and pro file: main.cpp #include <Qt/qapplication.h> #include "teapotview.h"   int main(int argc, char *argv[]) {     QApplication app(argc, argv);     TeapotView view;       if (view.stereoType() != QGLView::RedCyanAnaglyph)         view.camera()->setEyeSeparation(0.3f);     if (QApplication::arguments().contains(QLatin1String("-maximize")))         view.showMaximized();     else if (QApplication::arguments().contains(QLatin1String("-fullscreen")))         view.showFullScreen();     else         view.show();       return app.exec(); } teapotview.h: #ifndef TEAPOTVIEW_H #define TEAPOTVIEW_H   #include <Qt3D/QGLView> #include <Qt3D/QGLTeapot>   class QGLSceneNode;   class TeapotView : public QGLView {     Q_OBJECT public:      TeapotView(QWidget *parent = 0) : QGLView(parent), teapot(0) {}     ~TeapotView();     protected:     void initializeGL(QGLPainter *painter);     void paintGL(QGLPainter *painter); private:     QGLSceneNode *teapot; };   #endif // TEAPOTVIEW_H teapotview.cpp #include "teapotview.h" #include <Qt3D/QGLBuilder> #include <Qt3D/QGLSceneNode>   void TeapotView::initializeGL(QGLPainter *painter) {     painter->setStandardEffect(QGL::LitMaterial);     QGLBuilder builder;     builder << QGLTeapot();     teapot = builder.finalizedSceneNode(); }   TeapotView::~TeapotView() {     delete teapot; }   void TeapotView::paintGL(QGLPainter *painter) {     teapot->draw(painter); } helloworld.pro TEMPLATE = app   target.path = /home/pi/teapot TARGET = teapot INSTALLS += target   DEPENDPATH += . INCLUDEPATH += .   SOURCES += main.cpp \     teapotview.cpp   HEADERS += \     teapotview.h   CONFIG += qt qwidgets warn-on qt3d_deploy_pkg   OTHER_FILES += \     teapot.rc \     teapot.desktop   RC_FILE = teapot.rc   INCLUDEPATH += /mnt/rasp-pi-rootfs/usr/local/qt5pi/include/ qml_folder.source = qml DEPLOYMENTFOLDERS = qml_folder     for(deploymentfolder, DEPLOYMENTFOLDERS) {     item = item$${deploymentfolder}     itemsources = $${item}.sources     $$itemsources = $$eval($${deploymentfolder}.source)     itempath = $${item}.path     $$itempath= $$eval($${deploymentfolder}.target)     export($$itemsources)     export($$itempath)     DEPLOYMENT += $$item }   installPrefix = /home/pi/$${TARGET}   for(deploymentfolder, DEPLOYMENTFOLDERS) {     item = item$${deploymentfolder}     itemfiles = $${item}.files     $$itemfiles = $$eval($${deploymentfolder}.source)     itempath = $${item}.path     $$itempath = $${installPrefix}/$$eval($${deploymentfolder}.target)     export($$itemfiles)     export($$itempath)     INSTALLS += $$item }

Moving to the new QtonPi subforum

$
0
0
I’ve done some moving of older Qtonpi threads to this new subforum. I hope this will help other Pi entousiasts getting easier to all the Raspberry forum topics from the past. I could have missed some. In case you see a thread about the Pi that is not in this subforum, please let us know by adding a post in the same thread. The moderators can move them where they belong, thanks. Eddy

Unable to compile hello-qtonpi project with Qt Creator !

$
0
0
Hello everyone ! This is my first post in this forum ! :) I have installed the setup required to deploy Qt apps to Raspberry pi : http://qt-project.org/wiki/Create When I first tried to ‘build all’ , it was giving following errors : I/opt/qt5/include/QtXmlPatterns -I/opt/qt5/include/QtQml -I/opt/qt5/include/QtDeclarative -I/opt/qt5/include/QtQuick -I../hello-qtonpi -I/opt/qtonpi/armv5tel-qtonpi-linux-gnueabi/sys-root/opt/vc/include -I. -I. -o main.o ../hello-qtonpi/main.cpp /opt/qtonpi/bin/armv5tel-qtonpi-linux-gnueabi-g++: /lib/libc.so.6: version `GLIBC_2.11' not found (required by /opt/qtonpi/bin/armv5tel-qtonpi-linux-gnueabi-g++) make: *** [main.o] Error 1 make: Leaving directory `/home/student/hello-qtonpi-build-desktop-Qt_5_0_0__qt5__Release' 19:42:15: The process "/usr/bin/make" exited with code 2. Error while building project hello-qtonpi (target: Desktop) When executing build step 'Make' Then I downloaded and installed glibc-2.11.2 in my home dir. After added that path in project—>Build-Settings—>Build Environment—> LD_LIBRARY_PATH. After doing this It is not giving previous error but the new one :( 19:24:56: Running build steps for project hello-qtonpi... 19:24:56: Configuration unchanged, skipping qmake step. 19:24:56: Starting: "/usr/bin/make" -w 19:24:56: The process "/usr/bin/make" crashed. Error while building project hello-qtonpi (target: Desktop) When executing build step 'Make' Could anyone please guide me since I am totally new to Qt and its SDK….

Qt5 for Raspberry Pi. X11 or FrameBuffer?

$
0
0
Hi all, I compiled Qt5 for my Raspberry Pi following this [gigabytes.it] good (italian) tutorial . Now I can build application for the board but it seems Qt was compiled for execution in framebuffer (I can execute it without X11). What should I have done to compile for X11 ? This is my configure: ./configure -opensource -confirm-license -no-pch -prefix /opt/qt5-raspi -release -force-debug-info -device linux-rasp-pi-g++ -make libs -nomake tests -nomake examples -opengl es2 -device-option CROSS_COMPILE=/opt/arm-toolchain/bin/arm-linux-gnueabihf- -sysroot /opt/raspbian-chroot

Antialiasing on Pi

$
0
0
Hello ! I would like to experiment with anti-aliasing on the RPi. Starting with samples using opengl es (hello_pi, hello_triangle and so on …), I wrote a few lines to rotate a triangle on the screen, using ortho (2D) projection, and I clearly see the effect of aliasing on the lines. Can anyone give me a few hints on how to activate anti-aliasing (I think I have read that RPi support multisampling ?) best regards harry

Apps always fullscreen

$
0
0
Hi all, I’m testing some Qtquick and qt gui apps and deploying them to the raspberry. I’ve followed beginners guide to make cross-compilation enviroment. Why always apps are shown on fullscreen mode? thanks

App fills only half of the screen

$
0
0
Hello I tried the qtonpi a few month ago. Pretty awesome stuff. Back then I had no issues with the deployment on my Pi. Now I’m trying to deploy the hello-gtonpi example with the qtonpi-0.2 version and have a Problem with the app showing just on the lower half of the screen. I use a 1024×768 screen HMDI->DVI cabel. The application shows a white background on the entire screen, but the qml part fills just the lower half. If I try to move the qml part up the the qml elements start to disappear. Do you have any Ideas how to solve this ? Thanks edit: I tried the same on an 1680×1050 monitor and it worked fine. But the 1024×768 screen reders the qml to low. The width of the app works fine.

Cross-compile Qt for RaspberryPi

$
0
0
I’ve come across this wiki article on cross-compiling Qt5 for the Raspberry Pi [qt-project.org] However, it’s dated Nov 14, and one step occurred to me as odd when considering Qt 5 is live now: “Finally, apply a patch on the qtjsbackend repository” Is this step still necessary?

Building Qt5.0: Can't find GL includes

$
0
0
I’m trying to build Qt 5.0 on the Pi, and get a ton GL-related errors when compiling qquickpixmapcache.cpp: ‘GLenum’ has not been declared ‘GL_UNSIGNED_SHORT’ was not declared in this scope 'GL_UNSIGNED_BYTE' was not declared in this scope and so on. I’ve found that I had to install the packages mesa-common-dev and libglu1-mesa-dev, which I did. I can now see include files in usr/include/GL, e.g. the define for GL_UNSIGNED_SHORT in gl.h Seems that Qt can’t find them, even though they are installed in the default location. My ‘configure’ options are: -prefix -opensource -nomake examples -nomake tests -no-pch

Qt Creator on Raspberry Pi

$
0
0
Hey all, I recently acquired by Pi for Christmas, and have installed Qt Creator on it. I’ve used Qt Creator in the past, but didn’t have any problems that I couldn’t solve. Here, however, I’m stumped. When I try and compile a project, by clicking the build icon in the lower left-hand corner, I can build the project just fine. All the processes that this entails are completed correctly, and the compile output shows that. However, even after the project has been built, the Run and Debug buttons (which both require the program to be run) are grayed out. When I hover over them, a tooltip appears that says “Qt Creator doesn’t know what to run”. When I go to the Run/Build dialog box, above the run button, I only get options to select for the build. Above that, in the same box, for a project called untitled, it says “Run: Untitled (on Remote Linux Device)”. What does this mean, does it have anything to do with my problem? I’ve tried using Google to find a solution, but all the ones I’ve found are for older versions of Qt Creator. Any idea what is going wrong, and how to fix it?

g++ crash when compiling Qt5

$
0
0
I have spent the last week trying to build a full Qt5 on the Pi. After 48 hours of straight compiling, I get a g++ internal error on the source file SVGAllInOne.cpp {standard input}: Assembler messages: {standard input}:177523: Warning: end of file not at end of a line; newline inserted g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. make[3]: *** [.obj/release-shared/svg/SVGAllInOne.o] Error 4 make[3]: Leaving directory `/qt5/qtwebkit/Source/WebCore' make[2]: *** [sub-Target-pri-make_first-ordered] Error 2 make[2]: Leaving directory `/qt5/qtwebkit/Source/WebCore' make[1]: *** [sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2 make[1]: Leaving directory `/qt5/qtwebkit' make: *** [module-qtwebkit-make_first] Error 2 My configure options are: -prefix -nomake tests -nomake examples -no-pch Edit: Can’t attach the full g++ command line (>6000 characters). I’ll provide it on demand.

Qt5 Raspberry pi Can’t find declarative

$
0
0
Hello, I crossed compiled Qt5 for the raspberry pi as shown in this link [qt-project.org]. After some initial problems I managed, with the help of this forum, to get it working. I created a project where I can send data to the Rasberry Pi using a QTcpSocket. So far so good. But now I want to use QML on the raspberry. I created a QML file and in my Main.cpp file I create a new instance of QDeclarativeView, load the QML file and show it. When I compile and run it on my own pc it all goes the way it should. But if i try to crosscompile it i get a file not found error on: QT += declarative When i look inside the /mnt/rasp-pi-rootfs/usr/local/qt5pi/include map, I can see the core, gui, network module etc but not the declarative module. Like the tutorial says I did compile and ran sudo make install for the qtdeclative map when I created the crosscompile environment. Are there more steps required to get QML working on the Raspberry Pi?

Qt5 Color Banding

$
0
0
I’m running this demo http://www.youtube.com/watch?v=wulbR2R1GpM on my raspberry pi. Everything works great at a constant 63 fps. However, the gradients are showing some pretty serious banding, it looks like it’s displaying 16 bit color. Has anyone else noticed this. (I’m under the impression that if Qt is rendering using OpenGL then changing the framebuffer settings in config.txt won’t affect it. I changed them anyway—nothing changed).

Server repository is down ?!!

$
0
0
Hello I am trying to deploy to the RaspberryPi. I have added either “deb http://archive.qmh-project.org/rpi/debian/ unstable main” or “deb http://archive.qmh-project.org/rpi-wheezy/debian unstable main” but when I run apt-get update the process hangs at trying to retrive the information from the archive.qmh-project.org server (and nothing gets downloaded). Any clue ?? Also if anyone has some good (and up to date) resources on how to cross compile with Qt for raspberry Pi (wheezy) using OSX will be much appreciated. Thanks,

RPi and QSvgRenderer

$
0
0
I’m writing a clock app for the RPi that used QSvgRenderer to display the clock components. When I launch the app from Qt Creator or from the terminal, all works as expected. When I double-click the executable from the File Manager the SVG images do not display. The same app built on my Fedora 18 desktop box works just fine. On the Pi – Raspbian Wheezy & Creator 4.8.2 On the desktop box – Fedora 18 & Creator 4.8.2 Anybody else encountered this sort of issue? TG

QtonPi: Can I use the GPIO on Pi ?

$
0
0
Dear all, I am all new to Qt, I would like to know if there are any way that I can use the GPIO on Pi while I am using QtonPi. My project is to build a video/image decoder to transform video/image to pixel-bypixel RGB data, and then pass to another unit to display it, and I would really like to using GPIO to do it. Is there a way that I can do it? Thank you. Gordon
Viewing all 92 articles
Browse latest View live