Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Error compiling default template qt widget application on macOS high sierra
I recently installed qt 5.11 on my MacBook Air with MacOS high Sierra 10.13 and Xcode 10.
I’m used to write c/c++ codes on visual studio for windows and several Swift-written iOS apps on Xcode,however I’ve never used qt for creating visual apps on my Mac.
I created a default widget application (for Mac) with no more code than it’s generated by the qt creator. When I try to compile it, I receive two errors: -framework not found Qtwidgets -linker command failed with exit 1
I think that qtcreator doesn’t find the path of the qtwidgets but I have no idea how include this path.
Did anyone have this same problem and how I could be solved it?
@BorjaFrade Did you install Qt?
Did you check your Kit in QtCreator (are there any warnings/errors?)?
In addition what @jsulm requested, can you show the configuration in QtCreator->Preferences->Build & Run. Look for tabs Kits & Qt Versions. Do you see any errors there like red mark ?
@jsulm thanks for the answer.
Yes, I installed the 5.11.2 Qt version last weekend.
I attach a screenshot with the warnings after trying compiling the default widget project.
this is my config. Do you see anything wrong and weird? I didn't change anything, it's default config.
weird & confused as well :). From where did you get the Qt Creator ? I'm not seeing the Qt Versions, Kits, Compilers tabs at all. Do you have old Qt version also on your box ?
I completely erased my ssd last weekend and installed Qt creator. Should I delete and reinstall Qt?
What you have tried is online installer. It should not make any difference. You can try downloading off-line installer and try ?
I reinstalled Qt and it compiles now. Maybe I didn't install any libraries:)
Hi and welcome to devnet,
Based on what you wrote, it looks like, indeed, you installed only Qt Creator which has also its own separate installer.
In any case, happy coding !
hmmm Common mistake. Qt Creator is not Qt. Now you can move the case to SOLVED.