QT OpenSource, 5.12.1, default installation does not yield qtmainid.lib - c++

Firstly, I would not post here because I did not look up questions and answers already relating to this. I have tried the solutions, to little avail, as most questions revolved around previous versions, and were vague in some way. Below are the pages I visited:
Links
https://forum.qt.io/topic/78962/how-to-use-qt-with-visual-studio-2017/13, this ruined my case even worse. Something temporarily broke down because of the last 2 steps, but was back again to normal after restarting QT.
How to build Qt for Visual Studio 2010, I have VS 2017, and the command line prompt for that doesn't recognize 'configure.exe'. This is the line of code:
configure.exe -release -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-qt3support -no-multimedia -no-ltcg
Building Qt for Visual Studio 2010 - cannot open file 'qtmaind.lib', related again to VS 10, should I really work on the 2010 version? Is there a way to configure it for 2017, as it is the tool I am most familiar with?
qt cannot open input file 'c:\Qt\qt\lib\qtmaind.lib', I have no idea what QMAKESPACE is. I just started yesterday with the intent of making my semester project in it, so I do not have any professional experience with QT previously, or any kind of experience in general. The link attached to the ticked answer, https://doc.qt.io/archives/qt-4.8/supported-platforms.html, does not offer any kind of help. It just details what systems it supports. I am currently using Windows 10, version 1809.
https://www.qtcentre.org/threads/23917-fatal-error-LNK1181-cannot-open-input-file-qtmaind-lib, really lost me. Where are the qt sources that Nish is talking about? Are they from here: https://www.qt.io/offline-installers, from "Source Packages And Other Releases". Where are these files? Did they come with the installer from here: https://www.qt.io/download ? With what do I compile them with? Will these compiled files make some .exe files? Even more, these posts are from 2009.
What Is The Problem?
I watched the video by Derek Banas' series on QT ( https://www.youtube.com/watch?v=I96uPDifZ1w&t=297s ). Here are the steps I took to set up QT:
i): Went to https://www.qt.io/download.
ii): Selected "Go Open Source", and then clicked on download
iii): Started the QT setup after download. In the packages menu, I selected
the default. This gave me QT 4.6.3.
iv): Made a new project as shown by Derek Banas.
v): Upon selecting the green arrow on the bottom left, with debug option chosen, I pressed it. It gave me the error:
LNK 1104: Cannot open file 'qtmaind.lib'
vi): Changed to release, profile, gave me this error:
This application failed to start because it could not find or load the Qt platform plugin "windows"in "".Reinstalling the application may fix this problem.
I tried reinstalling it. No use. I went here: https://www.qt.io/offline-installers, and download 5.12.1, the latest, plus the zip file in "Source Packages And Other Releases". Again performing the same as above, with the same errors.
Confused because the video did not address such an issue. Looked online. did not find much here, thus, I am here. My hypothesis:
i): This is something related to my path variables. Since both versions exhibit this issue, it means that fault is from my side, not QT's.
ii): Some windows .dll files are missing. But I do not know what files they are.
Before You Answer
Please just give me the directions I should move in to solve this issue. I do not have any idea where to go from here, but I really, really, really want to learn QT as part of my C++ learning, and I'm willing to work; I just lack the guidance.
If this is downvoted, please just send me some links which specifically address my issue so I can head over there. I would be very glad for the directions. :)
And lastly, thank you to all of you for reading through this wall of text!
Here are a few pictures of what I am seeing:

It finally worked!
If this is of some help to anybody out there, please do not select the default button at the installation phase. Depending on your time, please go ahead and select MSVC 64 bit, MSVS < 2nd Latest Version >, and MinGW < Latest Version > 64 Bit, that shows up at the installation time. This will allow you to use a different kit that you can use to run your application with. To access this kit, go to the green button, hover over it, or click it, and there will be a kit called, desktop QT MSVC 64-bit, and then select this, and then run your program. This will run your program properly.

Related

cant see c/c+ on visual studio 2019

hi im currently fallowing a udemy course and it my first road bump after 2 hours still cant figure this out please can someone help i should be able to see a tab that says c/c++ but i cant. i have made sure my c++ package is installed. im using vsc 2019 and i just cant get it working any help would be very appreciated
i have tried to "modify" vs in visual studio installer and i didnt work.
i have ask the udemy instructor and no answer
any help would be so useful thanks
(if image didnt load here is the link to imgur) https://imgur.com/gallery/zkTdba6
You mentioned that you have installed the Desktop development with C++ workload. That should be enough to get you started. However, the C/C++ options appear in the project properties only after you have added a C or C++ source file.
Sometimes it additionally asks to download/install C/C++ packages via different dialog boxes popping up. If it has asked, please make sure you installed it properly without a power failure in between. Or else as a last resort, try repeating the installation process.

VS 2017: how to disable repeating auto-installation of "Hopex Module Publisher" Add-In?

Since a couple of days whenever I start VS 2017 and open a project, a message box pops up telling that "The 'HopexPackage'
did not load correctly..."
.
When I look at my extensions, I can see that some Hopex add-in is really installed there:
When I uninstall the add-in, I need to re-install a couple of other add-ins (that seem to be blocked by that hopex). But when I start VS again, it is there again. I did an exhaustive search in the file system and the registry, but could not find anything relevant.
It behaves like a virus. Do we have specific VS viruses nowadays?
Perchance does anybody know this behavior or/and a recipe against it, other to completely re-install the VS?
Thanks.

Debugging Qt in visual studio, msvcp140d_app.dll is missing

I'm new to Qt, but have been working with Visual studio for C/C++ development for a few years. Now I'm trying to build a GUI for my project. I installed Qt 5.11.0 and the Qt VS Tools on both my work computer and home PC. At work I can build and run my project with the VS debugger, however on my home system I can build but can't run either with VS debugger or simply launching the app. I tried in release and it runs fine.
The error I'm getting is :
The code execution cannot proceed because VCRUNTIME140D_APP.dll was not found.
I get 4 of these, the first two want VCRUNTIME, the second two want MSVCP140D_APP.dll.
Solutions I've tried so far :
Uninstalled Win SDK and reinstalled
Uninstalled VS2017 and SDK and reinstalled
Searched System32, SysWOW64 and VS install directories - found msvcp140d.dll and vcruntime140d.dll, but no _app.dlls
Does anyone know what these are included with and where to get them? I can't figure out why I have them on my work computer but not at home. I have the same VS updates, same Qt version, and SDK on both systems.
Using :
Visual Studio 2017 v15.7.1
Qt 5.11.0 - msvc2017_64
I suppose I can just copy the .dll's from my work pc and drop them in the appropriate locations on the other, but I'd like to know what they should have been installed with so I can have the same setup on both systems.
Edit:
I also tried changing the platform toolset to VS2015 with Qt versions msvc2015_64 and winrt_x64_msvc2015
I found this post concerning the same missing _app.dll files. There wasn't any answer there, which is why I tried reinstalling the SDK in the hope the missing files were included there.
Edit 2:
I just scanned my entire system at work and it turns out that I don't have the missing .dll there either. That tells me that there is a difference in the project properties or configuration between the two. I use git for source control, and I am currently the only contributor to this project. When I try to build and run just the example from the getting started guide I have the same problem at home with missing _app.dll files, however it works fine at work. I'm totally confused now, and any hints are greatly appreciated.
Solution:
After trying for a couple of hours making new solutions etc. I decided to delete the entire build folder and put fresh copies of all the dependencies into it. My project now runs fine in debugging mode.
I'm fairly certain that when I originally copied the Qt .dll files into it I must have grabbed them from one of the winrt folders rather than the msvc2017_64 folder. To test I replaced the working .dll files with those from the winrt_x64_msvc2017 folder and sure enough the same errors again. So, this was a dumb mistake on my part, but hopefully it'll save someone else a lot of hair-pulling in the future.

Qt crashes when I try to execute any program

I've looked for an answer during a few days and I haven't found anything similar anywhere;
I downloaded Qt from the official website, installed it and apparently compiling is fine. But whenever I try to execute (Ctrl+R) any app, even the basic one which only displays a window or widget, QtCreator itself crashes. No error message, nothing, just crashing.
I've tried to redownload and reinstall it a few times with different settings, but nothing will do.
I'm running QtCreator on Windows 7 64 bits. I'll try on my laptop which is also running windows and will update if I find anything.
Any help would be appreciated, I need to start a project as soon as possible. I'm relatively new to QT and if you need info on anything just ask me. Thanks :)
Use dependency walker, http://www.dependencywalker.com/
and post any missing dependencies. It is possible some install targets or options are missing from when you installed QtCreator, which can be resolved with the maintenance tool in the same directory you installed Qt.
Also, are you using the Visual Studio compiler(must have Visual Studio installed separately, and mark the option during install), or the Ming compiler(2 options checked during install or maintenance)?
Check if your antivirus is locking it, I had a similar issue time ago and it was due to antivirus (Avast specifically). Disable antivirus' realtime shields and try to execute a basic app.
It is necessary to use QtCreator? I use QtDesigner snd VS2013 and things go very well. :)
check this thread Qt Creator Plain C++ Project won't run/debug... and this C++ - QtCreator doesn't show any output

How to configure Qt debugger and what is needed for it to work

Ok so Im really confused here, I got the same erroe as Martin.kv who started this thread How to configure CDB in Qt Creator?
which said "The preferred debugger engine for debugging binaries of type 'x86-windows-msvc2010-pe-32bit' is not available....Details: There is no CDB binary available for binaries in format 'x86-windows-msvc2010-pe-32bit"
I assume I have to download some stuff to fix this, so I went here http://msdn.microsoft.com/en-us/windows/hardware/gg463009.aspx and I have Windows 7 on a 32-bit system so I went under this title "Install the Windows 7 Version of Debugging Tools for Windows" and went here http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=8279 to download the Debugging tools for windows.
From all the stuff I've read, on the thread I referenced and a few others, what I downloaded seemed to be the right thing.
I admit I screwed up a little because I forgot to check where it was putting the Debugger Tools because while it started downloading I was still searching for what to do after the download. But I'm pretty sure it is in "C:\Program Files\Microsoft Windows Performance Toolkit" but I dont have anything called Windows Kits, which everyone else is saying theirs is in, and I still dont seem to have a cdb.exe..
did I download the wrong thing? What do I need to do/download instead? and also where can I get the Symbol Server that the Qt site and many other people suggest??
Sorry I'm new to Qt and some what to programming in general and my program for my internship is due at the end of the day and last night it stopped working so I'm kind of freaking out a little but I figure the debugger could help because it doesnt really make sense why it stopped working.
There should be a place in the Qt Creator settings where you can point it to the cdb.exe that comes with the Debugging tools for Windows.
See here: http://doc.qt.nokia.com/qtcreator-2.5/creator-debugger-engines.html
I got cdb working with QtCreator only after the following steps:
1) Download & install Debugging Tools for Windows
2) QtCreator->Tools->Options->Build & Run->Tool Chains
3) Copy autodetected MS compiler to the "manual" section
4) Set the path to cdb.exe
5) Use the "manual" MS compiler.
Perhaps there's some way to avoid steps 3-5 (playing around with environment variables maybe) but the described scheme works fine so I don't mind.