Cannot run the Simple MQTT Client Example on Raspberry Pi
-
I compiled QT 5.11 for Raspberry pi and built the qtmqtt module for it. But when I run simple MQTT client example I get this error on the raspberry: the process killed by the signal and the program closes, what is the reason?do I should other setting for mqtt in raspberry?
-
@isan said in Cannot run the Simple MQTT Client Example on Raspberry Pi:
what is the reason?
Please use debugger to get stack trace
-
@jsulm when I use debugger I get the error : The selected build of GDB does not support Python scripting.
I installed gdb-multiarch on my development host (Ubuntu):
sudo apt-get install gdb-multiarch
Then in the Debuggers tab of QtCreator I added a new manual entry:
Name: Multiarch GDB
Path: /usr/bin/gdb-multiarchAnd in the Raspberry Pi Kit tab of QtCreator I selected Multiarch GDB as your Debugger.
Then when I use debugger I get
Process /home/pi/simplemqttclient created; pid = 15405 Could not load shared library symbols for 5 libraries, e.g. /usr/local/qt5pi/lib/libQt5Widgets.so.5. Use the "info sharedlibrary" command to see the complete listing. Do you need "set solib-search-path" or "set sysroot"? Child terminated with signal = 0x4 (SIGILL)
I have libQt5Widgets.so.5.library in /usr/local/qt5pi/lib address
And I addedhandle SIGILL pass nostop noprint info sharedlibrary set solib-search-path ./Debug/
In additional startup commands GDB debugger tap window
But the problem is still exist! -
@isan said in Cannot run the Simple MQTT Client Example on Raspberry Pi:
set solib-search-path ./Debug/
Since your Qt libs are in /usr/local/qt5pi/lib it should be
set solib-search-path /usr/local/qt5pi/lib
I would say.
-
@jsulm said in Cannot run the Simple MQTT Client Example on Raspberry Pi:
@isan said in Cannot run the Simple MQTT Client Example on Raspberry Pi:
set solib-search-path ./Debug/
Since your Qt libs are in /usr/local/qt5pi/lib it should be
set solib-search-path /usr/local/qt5pi/lib
I would say.
I did it,
And I also did this on RPI:echo /usr/local/qt5pi/lib | sudo tee /etc/ld.so.conf.d/qt5pi.conf sudo ldconfig
But the problem still exists.