[Moved] Qt Creator saying no valid qt versions found please add a qt version when creating a new project
-
i have got something like this
!http://img41.imageshack.us/img41/7029/unledwo.png!
So yiou want something else ? if so where can I find it ?
-
Looks like you are not alone here.... searched for guard32.dll and I found few people facing same problem with Qt Creator while debugging...
http://www.qtforum.org/article/27044/problems-with-qt-creator.html
http://www.mail-archive.com/qt-creator@trolltech.com/msg01700.html
http://lists.qt.nokia.com/pipermail/qt-creator/2008-November/000335.html
Are you using Comodo Firewall??? Seems related to that..
@The only problem so far is, that I can't debug with it at all as long
as the COMODO Firewall's 'Defense+' is active. This installs a system
hook via C:\WINDOWS\system32\guard32.dll which is invoked everytime
any application is launched. This seems to confuse either gdb or Qt
Creator so that when I want to start debugging it halts in that file.
I can't contine, step over/out or do anything that seems to have an
effect.
Disabling the entire Defense+ mechanism was the only way I could find
to overcome this (which requires a restart to remove the hook).@ -
The Qt version configuration page now warns when not all required tool chains are available. That should make debugging the original issue way easier. The code will be in 2.3 (which will get a beta release in a couple of weeks, now that it is feature frozen).
-
I am indeed using Comodo internet security but I have turned off defense+, restarted and then the same seg fault over again. I think I will have to resign from debugging and just try to be lucky with normal compiling for now (which is kind of silly).
-
[quote author="lordmonkey" date="1309522355"] I have turned off defense+, restarted ...[/quote]
Yes I did.
-
Ok, sorry I missed that. There should be an option to disable auto-running of guard32.dll (mentioned "here":https://forums.comodo.com/bug-reports/guard32dll-and-gdb-problems-cfp-3025378-t25287.0.html )
-
I have disabled guard32.dll from auto-running and then turned comodo into training mode, after that I restarted and now... I do not have qt version as earlier and Even though I have qt..bin in PATH I do not have it marked like that in qt versions dialog. WTF !?
-
[quote author="lordmonkey" date="1309523486"]I have disabled guard32.dll from auto-running and then turned comodo into training mode, after that I restarted and now... I do not have qt version as earlier and Even though I have qt..bin in PATH I do not have it marked like that in qt versions dialog. WTF !?[/quote]
So, did you try to manually add it if its not detecting it from PATH...
-
"QTCREATORBUG-5248":http://bugreports.qt.nokia.com/browse/QTCREATORBUG-5248 is fixed in the 2.3 branch: We now warn about missing tool chains in the Qt version options page, so this issue should be much easier to discover.
-
ok so i have removed everything concerning qt from environment variables, reinstalled both qt and mingw libraries. Now I have folder structure like this :
!http://img838.imageshack.us/img838/5480/unledvyi.png!
which path i should add manually to path and i should add it to user path or system path ?
EDIT:
ok so I have added C:\qt\4.7.3\bin to both system and user path variables. Now I attach my projects build settings :
!http://img534.imageshack.us/img534/5882/unledyf.png!and I have restarted and all the other things.
-
If you observe your Tool chain field, its empty . You need to add path to your g++.exe under ToolChains Options.
- In Qt Creator -> Tools -> Options.. -> Tool Chains ( In the left hand side)
- Click on "Add" button -> minGW -> it should add a row to "Manual" tool chains.
- Select that new row, and in Compiler path browser the path to g++.exe
You should be able to find g++.exe in MinGW\bin\g++.exe. Select this path.
Now in your Projects view select this newly created Tool Chain under "Tool chain".
If Qt version is not detected automatically from PATH variable, add it manually.
-
Do you get anything in the drop down list of "Qt Versions" in the above page. If you get, you should select that.
Can you go to 1) In Qt Creator -> Tools -> Options.. -> Qt to see if there are Qt added from the path (Atuo-detected). -
Note that only tool chains that are actually compatible with your Qt version are offered. So if you do not get a tool chain for your Qt version, please make sure you installed the right mingw (e.g. a 32bit mingw for a 32bit Qt).
Of course you could also just use the Qt SDK: That contains a Mingw Qt plus a Mingw compiler that actually works with it.
-
Ok so I have done what Vijay Bhaska Reddy said and now instead of 2 errors while buildin my already created project i have one (it's on the bottom of the screen I attach). but still "no qt version" even though it's added to path and to Qt Creator -> Tools -> Options.. -> Qt
-
Can you show us your Projects and Tool chains screenshots...
-
Could you please hover the Qt version you want to use and check the ABI field there?
Please go to the tool chains then and make sure a tool chain for that ABI is defined.
-
ok so in the meantime I have ininstalled qt and installed it from the qt SDK package and first of all I was getting these strange errors about (somtehing like)
error during installation process.... maybe c:\qtsdk is blocked by another processnow I get the same error about not having a qt version and my Qt maintenance manager (updater) looks like this
!http://img405.imageshack.us/img405/4497/unled1jy.png!
EDIT :
ok so I have reinstalled sdk again with DEFAULT ssettings and everything is ok besides this segfault again :/
I wonder what was I unchecking to make qt state: no qt version installed.should I install something else ?
-
OK .... SO ... my ultimate solution to this problem is
- install QT SDK with default settings (even though you don't want most of the stuff that's in there)
- uninstall COMODO Firewall ( internet security or whatever other program you have from COMODO) because even trying to disable guard32.dll with Autoruns or any other program it failed and I was getting the same seg fault over and over again.
Thanks guys for help but ultimately I will just install other firewall so that I can code in Qt ;)