Compiling qtcreator by sources failed: recipe for target '.obj/release-shared/contextpanewidgetimage.o' failed
-
Hi and welcome to devnet forum
Basically you need to change creator code to resolve this compile error. Personally I would not change the creator code.
Each creator code is compiled a specific version of Qt libs. When something is changing you may get such compile errors.
On the other side from where did you get the creator code?
We are already at creator version 4.11. It looks you are actually trying to compile the fairly old version of 4.3.1. For whatever reason you are trying to recompile the code, you shall check which Qt libs version has been used at that time.To compile against shall be easier.
Otherwise I would recommend to download the most recent stable creator version from https://github.com/qt-creator/qt-creator and compile against recent version of Qt libs or whatever is used there.
-
@koahnig
Thank you for your attention and reply!
I download my creator code from http://download.qt.io/archive/qtcreator/4.3/.
Thank you for the remind and I also have a question that how can I check the Qt libs version used in compiling qtcreator.
I have this question because I compiled my Qt5.12.6 from source code and installed it in /opt/Qt5.12.6/, but I'm not sure whether I have install some part of Qt libs in /lib /usr/lib or /usr/local/lib etc. when I install other software' dependencies. And I don't know which Qt libs would be used when compiled qtcreator. Shall I see the print in terminal when compiling?
Thank you for the reply! -
@qtuser12 said in Compiling qtcreator by sources failed: recipe for target '.obj/release-shared/contextpanewidgetimage.o' failed:
how can I check the Qt libs version used in compiling qtcreator
Well, that is certainly an issue. Typically you can see this in creator with the creator version number. However, you got a hen and egg issue here.
@koahnig said in Compiling qtcreator by sources failed: recipe for target '.obj/release-shared/contextpanewidgetimage.o' failed:
Otherwise I would recommend to download the most recent stable creator version from https://github.com/qt-creator/qt-creator and compile against recent version of Qt libs or whatever is used there.
This statement is IMHO the best way to go, because of the version correlation issue. Personally I am refraining from being with the first to try the complete stuff. Too many failures in the past taught me so.
Grabbing the last stable released code with a recent Qt lib version seems to me the most promising way to get a start.