Unsolved Newbie question regarding multimediawidgets missing issue
-
@JonB said in Newbie question regarding multimediawidgets missing issue:
@MichRX7 said in Newbie question regarding multimediawidgets missing issue:
I get "The selected build of GDB does not support Python scripting. It cannot be used in QT Creator." Well, I wasn't doing any Python. So, now I have to try and resolve that.
I don't know about your other issues, or whether cross-compiling is a good or bad idea. But for this one: Qt Creator itself does use Python (scripts) for its
gdb
debugging, and that may require a newish version ofgdb
/gcc
package? Where did you get those from, what versions are they at?If I do a python --version from a terminal window it tells my it is Python 2.7.16
Do I have to tell QT Creator where to find it?
-
@MichRX7
That is old Python2. Linux ships withpython
command pointing to Python2, butpython3
command to point to Python3.I don't think you have to tell Qt Creator anything about Python. As I said, what you need to look at is what version of
gdb
you have/it is using. The implication of the error message is that it is thegdb
which is not good.See also e.g. http://sourceware.org/gdb/current/onlinedocs/gdb/Python.html. It says:
This feature is available only if GDB was configured using
--with-python
.Maybe your
gdb
is not built with that.I'm afraid this is all outside my experience.
-
So I should have installed a newer version of Python before installing QT? Why wouldn't QT tell me that before I installed it? Is there an "Installing QT Creator for Dummies" area that walks me through step-by-step what I should have done?
-
This is what is so frustrating. I have Python3, if I enter "python3 --version" it tells me I have Python 3.7.3
-
@JonB said in Newbie question regarding multimediawidgets missing issue:
@MichRX7
That is old Python2. Linux ships withpython
command pointing to Python2, butpython3
command to point to Python3.I don't think you have to tell Qt Creator anything about Python. As I said, what you need to look at is what version of
gdb
you have/it is using. The implication of the error message is that it is thegdb
which is not good.See also e.g. http://sourceware.org/gdb/current/onlinedocs/gdb/Python.html. It says:
This feature is available only if GDB was configured using
--with-python
.Maybe your
gdb
is not built with that.I'm afraid this is all outside my experience.
So, how do I get the gdb "which is good"?
-
Do I download this Linux file from here, edit the versions inside and run it somehow to make a working gdb?
I'd really like to actually build something inside QT Creator, lol...
-
One way to check it gdb was built with python is to call
ldd $(which gdb)
. It will list the libraries gdb is linked against and you should have the python library if gdb was built against it including the version of Python. -
@MichRX7 What Linux distribution and version do you actually use?
-
@SGaist said in Newbie question regarding multimediawidgets missing issue:
ldd $(which gdb)
ldd $(which gdb)
linux-gate.so.1 (0xb7f38000)
libreadline.so.7 => /lib/i386-linux-gnu/libreadline.so.7 (0xb77e7000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb77c8000)
libtinfo.so.6 => /lib/i386-linux-gnu/libtinfo.so.6 (0xb779f000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7799000)
libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xb775e000)
libipt.so.2 => /lib/i386-linux-gnu/libipt.so.2 (0xb773d000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7637000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7459000)
/lib/ld-linux.so.2 (0xb7f3a000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb7438000) -
@jsulm said in Newbie question regarding multimediawidgets missing issue:
@MichRX7 What Linux distribution and version do you actually use?
Debian GNU/Linux 10 (buster)
Running it on an old Dell Latitude D630 I found sitting in a box. :) -
Which version of gdb do you have ? I thought that the buster current version was built with python support.
-
@SGaist said in Newbie question regarding multimediawidgets missing issue:
Which version of gdb do you have ? I thought that the buster current version was built with python support.
gdb --version
GNU gdb (Debian 8.2.1-2+b3) 8.2.1 -
@MichRX7 This site tells me that GDB on that Debian version uses Python: https://packages.debian.org/buster/gdb
Are you sure you installed the default gdb package? -
@jsulm Unsure, on that box I installed QT and Creator direct from the download page. Unless I did something trying to follow the directions somewhere on how to cross-compile on a raspberry pi (unsuccessfully follow that is) I do not know.