Solved Connecting to remote server failed:
-
Hello,
after a recommended update to :
Qt Creator 4.5.0
Based on Qt 5.10.0 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
Built on Dec 4 2017 04:11:21
From revision fcea6ceba6
I can not use QT creator for developing C++ programms for Raspberry pi3.When I try to upload my application for debugging I get the following error:
Connecting to remote server failed:
tcp:raspberrypi:10000: No route to host.
I have no idea whats happens. I can connect ro the raspberry pi 3 using
ssh -l pi raspberrypi
also
ssh -l pi raspberrypi works
Thanks for your help. -
Hi,
If you start Qt Creator from the command line, do you have any information printed on it when you try to connect to your Pi ?
-
Hi SGaist,
thanks for your answer.
I get this output:
No tool chain set up in kit "Raspberrypi" for "C".
No tool chain set up in kit "Raspberrypi" for "C++".
No tool chain set up in kit "Raspberrypi" for "C".
No tool chain set up in kit "Raspberrypi" for "C++".
SOFT ASSERT: "isValid()" in file /work/build/qt-creator/src/libs/utils/port.h, line 53
Empty filename passed to function
Please what does this mean?
I think the last two lines show the problem. -
That you have Kit name Raspberrypi that seems to not have a toolchain configured for it.
-
Hi SGaist,
it's crazy! It worked before. But some has been lost.
Ok now I executed with an older toolchain. but it doesn't work neiteher.
/home/kurt/Qt/Tools/QtCreator/bin/qtcreator
SOFT ASSERT: "isValid()" in file /work/build/qt-creator/src/libs/utils/port.h, line 53
Empty filename passed to function
Where is this file located? -
Did you update your system recently ?
What version of OpenSSL do you have installed ?
-
Hello SGaist,
I use on UBUNTU
OpenSSL 1.0.2g 1 Mar 2016
on the raspberry
OpenSSL 1.0.1t 3 May 2016 -
What version of Ubuntu ?
OpenSSL looks fine.
-
the ubuntu version is
4.13.0-32-generic
the release is
LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial -
Hello,
I found on the raspberry runs posibly GDB-multiarch?
pi@raspberrypi:~ $ ps -ef |grep gdb
pi 1265 1247 0 15:22 ? 00:00:00 gdbserver --multi :10000
What about the QT-Creator? I haven't found a similar one on my ubuntu PC. -
It's not multi arch. It means that
gdbserver
is started without an application to start or a process connect to. You can then connect to it and decide whether it should attach to a running process or run something. -
I think qt is quite corrupted.
Maybe I have to install it again because it's a very good tool.
Does somebody know a good tutorial to install qt (open source) for c++ and remote debugging for raspberry? Maybe on a windows PC or ubuntu.
I'm very frustrated!!!
Thanks in advanc. -
The no route to suggest that it can resolve the
raspberrypi
name to a suitable address. Did you try to use the IP directly ? -
No, I didn't, but I will try it.
Thanks.
Kurt -
Hello SGaist,
thank you very much!
it works!!!
I have to check my router why it finds no remote device.
Kurt -
Maybe also your /etc/hosts file.