:-1: error: cannot find -lPythonQt-Qt5-Python3.8_d
-
I am trying to use
PythonQtin myQt c++application to embed python script in my application, I have build thePythonQtsuccessfully in my system and also tested all it's examples and they all are working perfectly but when I tried to use it with my application it gives me following error.:-1: error: cannot find -lPythonQt-Qt5-Python3.8_d -
I am trying to use
PythonQtin myQt c++application to embed python script in my application, I have build thePythonQtsuccessfully in my system and also tested all it's examples and they all are working perfectly but when I tried to use it with my application it gives me following error.:-1: error: cannot find -lPythonQt-Qt5-Python3.8_d@devillIsHeree said in :-1: error: cannot find -lPythonQt-Qt5-Python3.8_d:
-lPythonQt-Qt5-Python3.8_dPurely at a guess, is that
_dsuffix for a debug library and you don't have that? Have a search on your disk, do you have any similarly-named library at all? -
What do you mean by similar named library? @JonB
-
What do you mean by similar named library? @JonB
@devillIsHeree
Any file at all withPythonQt-Qt5-Python3.8(without the_d) in it, just to see what you have, e.g.- Linux:
locate 'PythonQt-Qt5-Python3.8' - Windows:
dir/s/b C:\ | findstr "PythonQt-Qt5-Python3.8"
- Linux:
-
@JonB I have ubuntu, I have run your provided command, It is showing me those results
/usr/lib/libPythonQt-Qt5-Python3.8.so /usr/lib/libPythonQt-Qt5-Python3.8.so.3 /usr/lib/libPythonQt-Qt5-Python3.8.so.3.2 /usr/lib/libPythonQt-Qt5-Python3.8.so.3.2.0 -
@JonB I have ubuntu, I have run your provided command, It is showing me those results
/usr/lib/libPythonQt-Qt5-Python3.8.so /usr/lib/libPythonQt-Qt5-Python3.8.so.3 /usr/lib/libPythonQt-Qt5-Python3.8.so.3.2 /usr/lib/libPythonQt-Qt5-Python3.8.so.3.2.0@devillIsHeree
Which is what I kind of wondered might show up. But as I said your error message, assuming you copy/pasted it, reads:-lPythonQt-Qt5-Python3.8_dIf it read
-lPythonQt-Qt5-Python3.8it would link against those libraries you do have. But it has that trailing_d, so will not. Which I suspect is something to do with wanting a debug version of the library. Which you don't have.So have a look at wherever that line comes from. Is it supposed to be debug? Are you supposed to download/install a debug version of this
PythonQtlibrary? -
@JonB Actually I had install
PythonQtto use thepythonembedding inQt c++, This line is coming from the file
PythonQt.prf. This is the link to that filehttps://github.com/MeVisLab/pythonqt/blob/master/build/PythonQt.prf@JonB and I just watnt o use that
PythonQtin my code, It isPythonQtonly which wanted to have that debug file I suppose but I don't know how to resolve this Please help -
@JonB Actually I had install
PythonQtto use thepythonembedding inQt c++, This line is coming from the file
PythonQt.prf. This is the link to that filehttps://github.com/MeVisLab/pythonqt/blob/master/build/PythonQt.prf@JonB and I just watnt o use that
PythonQtin my code, It isPythonQtonly which wanted to have that debug file I suppose but I don't know how to resolve this Please help@devillIsHeree said in :-1: error: cannot find -lPythonQt-Qt5-Python3.8_d:
https://github.com/MeVisLab/pythonqt/blob/master/build/PythonQt.prf
Yes, and I see that has:
# check if debug or release CONFIG(debug, debug|release) { DEBUG_EXT = _d } else { DEBUG_EXT = } ... unix: LIBS += -L$$DESTDIR/../lib -lPythonQt-Qt5-Python$${PYTHON_VERSION}$${DEBUG_EXT}So either don't build for debug/get rid of using the
DEBUG_EXT = _dunder Linux at least, or somewhere (presumably) you can fetch (or build) the Linux debug libraries with_don them. -
Thanks @JonB sir, I just remove all the
DEBUG_extline
so now my all ```.prf.. files look like thatCONFIG(debug, debug|release) { DEBUG_EXT = } else { DEBUG_EXT = }and they're compiling well. Thanks for the help