I already posted this message, but perhaps in the wrong sub forum…
I made a small test app in C++ (no QML). The main widget is a QWidget. It has 1 QLineEdit, 1 QSpinBox and 2 QPushButton. One to quit, the other to show the “About Qt” dialog.
I can type text and numbers in QLineEdit and QSpinBox as long as I change the focus with the tab key. If I use the mouse to change the focus or if I show the “About Qt” dialog, the characters I type go to the console instead of my Qt app : I can see them when I quit.
I run the app with the CLI option : -platform eglfs, kernel v3.6, Raspbian Wheezy, RPi model B.
Any idea ?
↧
Qt5 doesn’t grab keyboard strokes
↧
CMake Generators
Qt Creator doesn’t appear to be able to to find any generators for CMake on my Pi. I know CMake is present and I have used it in a terminal to generate Unix Makefiles. I can even then import the existing project and build code, clean code, etc. though I cannot get it to build the makefiles via cmake with the little dropdown that appears with a ‘Build now’ button Anyone know why it might not be working? I’m using the latest version of qtcreator and cmake via apt.
↧
↧
QtonPi Events
Hi All,
I would like to start a thread dedicated to events related to Raspberry Pi and Qt around the World :)
The following events will take place in the USA in 6 days. I’m in Europe and I won’t be able to attend but it would be cool if someone share photos and details after the event. Have fun! :)
Qt on Raspberry PI, hands-on step-by-step [meetup.com]
Wednesday, February 27, 2013 6:30 PM
Address: 2350 Mission College Blvd #1020, Santa Clara, CA
↧
Qt on Pi -"Qt version not installed properly" again!
I read this [qt-project.org] and tried to install Qt5 on RaspberryPi use script [gitorious.org]. He executed, but when trying to configure Qt Creator 2.6.2, add Qt Versions, I get “Qt version not installed properly”. The same situation is described in this [qt-project.org] but the solution given there does not help me and did not give any effect.
I tried to repeat the steps given in the article but can not even compile Qt. I noticed the extra slash at the end of
“sudo. / FixQualifiedLibraryPaths / mnt / rasp-pi-rootfs / …”
perhaps there are other inaccuracies. What do I do?
↧
Where to get full Qt 5.0.1 IDE on raspberry
Hi there, welcome new noob :D
recently i bought raspberry i found a Qt IDE for it. It’s one great thing to use it!
i must tell in the beginning that i am a windows guy, so i installed Qt 5.0.1 on windows, full IDE with creator and so on. i also isntalled same IDE on raspberry pi, but old version only is available.
i got on pi qt 4.8 with qt creator 2.5. with simple command “sudo apt-get install qtcreator”.
i develop my app using windows machine, and when some amount of code is added
i simply move with usb stick this code do raspberry, open it with QtCreator there and compile & run.
everything is just fine, but i would like to have same versions of Qt & Qt creator on raspberry
amd i simply cannot find any install or hint how to compile it.
i tried official guide for beginners on ocmpiling Qt5, spend hours on catching errors in script
and finally it compiled… but to my dissapointment it gave only libs for raspberry,
and no executable qtcreator or anything. maybe someone there knows where my i find latest binaries of qt5 and qtcreator 2.6.2 for raspberry to install, or maybe some instructions or script to compile it from sources? im noob to linux, but getting used to it quite quickly ;)
↧
↧
Noob question..... qtwebkit for web acceleration on RPi?
I would like to use the Pi to display a webpage that has Javascript and sliding images. Can I use something like qtwebkit/webview to “accelerate” the performance?
↧
keyboard switch
Hi,
i have a problem with keyboard layout(raspbian).English only.Ubuntu12.10+Raspbian+qt5.0.1+qml.
I need to add an option in the config?May be necessary to study ckbcomp,kmap2qmap?
Collected according to the instructions:http://qt-project.org/wiki/RaspberryPi_Beginners_guide .
No errors compile.Help,please.
↧
bakeqtpi.bash build error in qtquick1
Hi
I’ve used bakeqtpi.bash (from gitorious repo), but it fails with during qtquick1 build:
qdeclarativeview_plugin.h:45:53: fatal error: QtDesigner/QDesignerCustomWidgetInterface: No such file or directory
I’m not quite sure how to fix this.
Is bakeqtpi.bash still the right method to generate an image supporting Qt5 for the RaspberryPi, or is there already a pre-built image available somewhere?
Thank you.
↧
Problems getting QAuidioOutput working on Pi
Hi, first I apologize for the massive post…, I’m dividing it in 2 parts, I hope I don’t break rules with that… I just think it’s best to be as detailed as possible.
I intend to start developing on Qt 5 on a RPi, I was interested in producing audio at a low level programatically, so for my first experiments I was trying out QAudioOutput, as documented on QAudioOutput reference [qt-project.org] but I was not able to get any audio out. So I went out to google and tried to understand my options or possible mistakes. I compiled QT for the Pi on a Ubuntu 12.04 virtualbox machine.
After following a number of blog posts/tutorials like (this [jeffskinnerbox.wordpress.com] and this [thebugfreeblog.blogspot.com] ) I’m still stuck.
Some note worthy things I’ve tried:
I first noticed I had not included the multimedia module so I compiled it with the following configuration:
./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-relocations -reduce-exports -release -make libs -prefix /usr/local/qt5pi -make tools -no-pch -nomake tests -nomake examples
But when running configure I was always getting
Alsa support ........... no
(I must hereby confide that I’m quite a noob in regards to qmake, make and all the compilation process, so I might just be doing something fundamentally wrong without knowing)
Anyways to fix the alsa support I:
- Tried changeing QT_SOURCE_HOME/qtbase/mkspecs/qconfig.pri adding alsa to the QT_CONFIG but it would just result in the same.
Alsa support ........... yes
- Then changed QT_SOURCE_HOME/qtbase/configure at line 869 from:
CFG_ALSA=auto
to
CFG_ALSA=yes
And this worked, producing something like:
Building on: linux-g++
Building for: devices/linux-rasp-pi-g++
Architecture: arm, features:
Host architecture: unknown, features:
Platform notes:
- Also available for Linux: linux-kcc linux-icc linux-cxx
Build .................. libs
Configuration .......... cross_compile qpa largefile neon pcre minimal-config small-config medium-config large-config full-config evdev linuxfb c++11 accessibility egl eglfs opengl opengles2 shared qpa reduce_exports reduce_relocations clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify png freetype system-zlib nis iconv rpath alsa concurrent audio-backend v8 release
Debug .................. no
C++11 support .......... yes
pkg-config ............. yes
Qt D-Bus module ........ no
Qt Concurrent code ..... yes
Qt GUI module .......... yes
Qt Widgets module ...... yes
JavaScriptCore JIT ..... To be decided by JavaScriptCore
QML debugging .......... yes
PCH support ............ no
iWMMXt support ......... no
NEON support ........... yes
IPv6 ifname support .... yes
getaddrinfo support .... yes
getifaddrs support ..... yes
Accessibility .......... yes
NIS support ............ yes
CUPS support ........... no
Iconv support .......... yes
Glib support ........... no
GStreamer support ...... no
PulseAudio support ..... no
Large File support ..... yes
GIF support ............ plugin
JPEG support ........... plugin (qt)
PNG support ............ yes (qt)
zlib support ........... system
Session management ..... auto
libudev support ........ no
Use system proxies ..... no
OpenGL support ......... yes (OpenGL ES 2.x)
OpenVG support ......... no
XShape support ......... auto
XVideo support ......... auto
XSync support .......... auto
Xinerama support ....... runtime
Xcursor support ........ runtime
Xfixes support ......... runtime
Xrandr support ......... runtime
Xi support ............. runtime
Xi2 support ............ auto
MIT-SHM support ........ auto
FontConfig support ..... no
XKB Support ............ auto
GTK theme support ...... no
SQLite support ......... plugin (qt)
OpenSSL support ........ no
Alsa support ........... yes
libICU support ......... no
PCRE support ........... qt
Xcb support ............ no
Xrender support ........ no
EGLFS support .......... yes
DirectFB support ....... no
LinuxFB support ........ yes
KMS support ............ no
…continued in the subsequent reply…
↧
↧
Problem with cross compiled code on raspberry pi
Hello, I am having problems with a Qt GUI application I created. Basically I created the application in my ubuntu to check if it compiles and works properly, however, if I set up the cross compiler (followed one of your tutorials and tried a hello world which works properly) and execute my code in the pi the UI does not display properly and basically I cant do anything:
· Text disappears from buttons
· Mouse disappears from screen (therefore cant click buttons)
· Cant navigate buttons using tab key
Any clues? maybe I cant use .ui files in the pi and have to use qml? Thank you in advance.
2 Screenshots of what I get with the pi and what the program should actually look like:
↧
Qt5 for Raspberry && VNC
Hi all,
I finally built Qt 5.0.2 for my Raspberry.
I also compiled my first Qt app for the raspberry and it run in the board without problem.
With Qt4 I executed the application this way:
./app -qws -display VNC:0
and I got a VNC server showing the app window.
Is there a way to get the same with Qt5…?
↧
[SOLVED]Raspberry: QT5 simple MainWindow example : Segmentation Fault.
Hi,
I have compiled qt5 for raspberry by using bakeqtpi.bash and add Raspberry Kit in QtCreator (cross compilation).
Everything looks ok.
“Hello world!” example compiled and works fine on Raspberry.
Simple QT5 MainWindow project compiled fine, but running on the board causes immediate Segmentation Fault.
gdb tells nothing
pi@raspberrypi ~/ $ gdb ./rpi-untitled
......
(gdb) run
Starting program: /home/pi/rpi-untitled
Program received signal SIGSEGV, Segmentation fault.
0xb6fe2b50 in ?? () from /lib/ld-linux-armhf.so.3
(gdb) bt
#0 0xb6fe2b50 in ?? () from /lib/ld-linux-armhf.so.3
#1 0xb6fe31d8 in ?? () from /lib/ld-linux-armhf.so.3
#2 0xb6fe34cc in ?? () from /lib/ld-linux-armhf.so.3
#3 0xb6fe52a4 in ?? () from /lib/ld-linux-armhf.so.3
#4 0x00000000 in ?? ()
(gdb)
ldd looks ok
pi@raspberrypi ~/ $ ldd rpi-untitled
/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so (0xb6f62000)
libQt5Widgets.so.5 => /usr/local/qt5pi/lib/libQt5Widgets.so.5 (0xb6ae6000)
libQt5Gui.so.5 => /usr/local/qt5pi/lib/libQt5Gui.so.5 (0xb67cf000)
libQt5Core.so.5 => /usr/local/qt5pi/lib/libQt5Core.so.5 (0xb63c8000)
libGLESv2.so => /opt/vc/lib/libGLESv2.so (0xb63a0000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6381000)
libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb62b4000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6243000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb621b000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb60ec000)
libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb60cd000)
libEGL.so => /opt/vc/lib/libEGL.so (0xb609b000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6090000)
librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6081000)
/lib/ld-linux-armhf.so.3 (0xb6f6f000)
libvcos.so => /opt/vc/lib/libvcos.so (0xb606f000)
libbcm_host.so => /opt/vc/lib/libbcm_host.so (0xb6054000)
libvchiq_arm.so => /opt/vc/lib/libvchiq_arm.so (0xb6046000)
Can anyone help?
↧
Problem with Qt5 on pi while applying the qtjsbackend patch
Hi,
I followed steps to build qt5 for raspberry pi as per http://qt-project.org/wiki/RaspberryPi_Beginners_guide
But while applying qtjsbackend patch (git cherry-pick FETCH_HEAD), i am getting bellow errors
...~/qt5/qtjsbackend$ git cherry-pick FETCH_HEAD
error: 'cherry-pick' is not possible because you have unmerged files.
hint: Fix them up in the work tree,
hint: and then use 'git add/rm <file>' as
hint: appropriate to mark resolution and make a commit,
hint: or use 'git commit -a'.
fatal: cherry-pick failed
Also when i run git status
git status
# On branch stable
# Changes to be committed:
#
# new file: config.tests/vfp2/vfp2.cpp
# new file: config.tests/vfp2/vfp2.pro
# new file: config.tests/vfp3/vfp3.cpp
# new file: config.tests/vfp3/vfp3.pro
# modified: qtjsbackend.pro
# modified: src/3rdparty/v8/src/arm/code-stubs-arm.cc
# modified: src/v8/v8.pri
# modified: sync.profile
#
# Unmerged paths:
# (use "git add/rm <file>..." as appropriate to mark resolution)
#
# both modified: src/3rdparty/v8/src/arm/assembler-arm.cc
# both modified: src/3rdparty/v8/src/arm/macro-assembler-arm.cc
# both modified: src/3rdparty/v8/src/v8globals.h
#
Did any one face this problem?
Is this means, this patch is already included in the git?
Any help on this is much appreciated.
↧
↧
Qt5 / XRDP / Remote Desktop / DISPLAY not taken into account or other problem? / Ideas?
Hi
I set up the Qt for Pi toolchain using bakeqtpi.
I mostly got things working.
I am using xrdp (X Remote Desktop Protocol) and I connect from Windows where I have a virtual Ubuntu machine on which I run Qt.
to work with the Pi display and I was surprised to not see anything appear from the Hello world Qt example even though the debugger showed things were as expected.
I had set the DISPLAY environment variable to “:10.0”, which is the id for the RDP display. Nothing showed on the remote display. Launching directly from a Pi-prompt where “DISPLAY” is already “:10.0” did not change anything either.
Only when connecting a monitor to the HDMI port brought me “Hello world” on the display.
I guess this has something to do with OpenGL, but I’ld still expect Qt to take the display setting into account and complain if that display does not have the required support.
Any suggestion on how to get Qt working on a remote desktop display?
↧
QtCreator && RaspBerry PI && deploy to device
Hi all,
I’m configuring QtCreator to deploy aplpication to my Raspi.
I added the correct Kit and the Generic Linux Device.
The deployment works fine if I set the Generic Linux Device with root account because by default it put the application on /opt/applcation/bin/application on the Raspi.
Is there a way to change the deployment directory?
↧
Compile GDB with pythron script support using crosstool-ng
Hi,
I am developing an app running on the RPi. So far I was not able to debug properly because cannot read the built in QtObjects to make sense (like QtSring etc). If I’ve understood correctly, this is because of the lack of python script support in the GDB.
My Qt is created by using bakeqtpi script with Package installation mode. The used compiler is gcc-4.7-linaro-rpi-gnueabihf (downloaded by the script).
My plan was to recompile the GDB using Crosstool-NG and the “arm-linux-gnueabihf-ct-ng.config”. But I realised that the configuration extracted from the …ct-ng.config file gives a bare-metal compiler not a linux one, and furthermore the compiler cannot be created with these setting, only if change the configuration of using static stdlibc++.
So my questions are:
Enabling python script support on GDB will help me in debugging?
Why cannot create the same compiler by using the …ct-ng,config file?
Any help will be appreciated.
↧
Qt5.1 on Rasberry Pi (full install not cross-compile)
Hi.
I would like to install Qt5.1 on my RPi.
My RPi has Raspbian.
I don’t want to cross-compile. I really want a full installation on the RPi.
Can anyone help me with this?
The only info i found is about cross-compile and for me (little experience with linux) it’s very confusing.
Thanks
↧
↧
Qt 5 cross compiled application not working on Raspberry Pi
I used the ./bakeqtpi.bash script to install toolchain for Raspberry Pi by reading this page http://qt-project.org/wiki/RaspberryPi_Beginners_guide
I also configured the Qt Creator as mentioned in the page, added new kit and was able to successfully to cross compile.
Then using these steps :
sync; sudo umount /mnt/rasp-pi-rootfs
sudo dd bs=1M if=2012-07-15-wheezy-raspbian.img of=/dev/sdb; sync
I prepared the SD card and also copied my application binary in /home/pi/ folder in SD card.
Then I inserted the SD card in Rasp Pi and booted it after connecting to HDMI monitor.
The linux started successfully also 1st time config screen also came. I expanded the root fs and rebooted.
Then on the console I ran:
cd /home/pi/
./App1
This plugin does not support setParent
This plugin does not support setParent
This plugin does not support setParent
This plugin does not support setParent
I also tried :
./App1 -qws
This plugin does not support setParent
This plugin does not support setParent
This plugin does not support setParent
This plugin does not support setParent
But the same result.
My application is a simple app which has a textbox and button.
↧
Simple QtWebKit Application Crashes w/ Segmentation Fault
DISCLAIMER: I’m an absolute newb, and I am happy to RTFM if this is an obvious question, just point me where. :)
I’ve got Qt5 cross compiled for the Raspberry Pi. Simple QML apps (display “Hello World!” in the middle of the screen) work just fine (I’m using the eglfs platform plugin). WebKit crashes immediately, though.
Code:
#include <QApplication>
#include <QWebView>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QWebView v;
v.setUrl(QUrl("http://www.bryanporter.com"));
v.show();
return app.exec();
}
Works just long enough to start rendering the background of my web page, then crashes with a segmentation fault. Wiring up a remote debugger shows that the signal being received is SIGILL (illegal instruction).
I’m not sure next steps to debug… any pointers are much appreciated!
Bryan
==
↧
Integrating Raspberry Pi Camera with Qt application
I am making a hobby project of digital still camera based on Raspberry Pi using Qt.
I have cross compiled Qt on Pi and able to successfully run a normal test Qt application on Pi.
Also the raspistill and raspivid utilities are running successfully.
The issue is with integrating the Rasp Pi camera. Before buying it I din’t knew that it does not support v4l2.
I want to show a live view of camera in the Qt application and capture the image when a Button is clicked.
What are the options except v4l2, for getting the live feed from camera in Qt.
↧