I have installed Qt for windows CE using this link http://qt.nokia.com/products/platform/qt-for-windows-ce for visual studio8, I can see Qt tab in VS IDE.
I tried to create new application for QT am getting error that
"There are no Qt/CE platforms defined. Please add your Qt/CE build in the Tools/Options/Qt/Builds dialog."
How can i define platform??
As it explains in the error. Go to tools menu, then options submenu. Select Qt from the tree and then select Builds item. There you will see an Add button. Click it. Write the version and path of your installed Qt. Then you are good to go.
Okay, I click Tools, select the "Options…" menu item (it is not a submenu), up comes the "Options" dialogue box, I see no "Qt" entry in the tree. Fresh never-used-before install of Visual Studio 2008 on Windows XP Pro SP3, with Qt add-in installed and I've tried running it as an Administrator too.
Did I miss something?
In the meantime, I have discovered some notes here:
http://www.sereno-labs.com/qt-4-6-2-installation-procedure-friendlyarm-mini-2440-windows-ce-5-0
The device I'm targeting is not a FriendlyARM, rather a Psion hand-held, but nevertheless, suggests that the bare Qt package lacks any VisualStudio binaries.
Further update…
My aging P4 laptop is busily compiling Qt now, has been for some hours. I found that for the Psion, I had to edit the setcepaths.bat script to make the call to checksdk.exe consistent with the SDKs actually provided. Upon doing this, things seem to be working. If you get an error message regarding a missing header, run:
checksdk.exe -list
That'll tell you what your SDK is actually called. You might find then that running:
checksdk.exe -sdk "Your SDK with spaces (and ARCH in brackets)" -script tmp.bat
tmp.bat should produce the needed environment.
Lastly, I hit a compiler error due to some left-over autogenerated files in the Qt build directories. I'll post up the (Cygwin) command I used to clean up the sources mid-build when I find it.
Related
I'm using Visual studio 2019 and I've added the Qt Visual Studio Tools plugin from the "Manage Extensions" window. I've installed the latest version 2.7.2.2.
When I try to add a Qt version, in Options->Qt->Versions, I'm able to add the Qt that I've installed (that I use with CMake etc, so I know that's working), and I save it.
When I save, close and reopen the same window, the version disappears, like the plugin is not able to save the configuration.
I'm not able to find any logs that tell me what did wrong, so:
Where can I find logs for checking the error when trying to add the Qt version?
Where the configuration should be stored?
If I know where the data are stored, I can try to add the configuration manually instead of using the GUI, hoping that it will fix the problem.
i came across the same error. Then if you look at the 'output' of VS when you click ok after setting the QT version, you may see the same error message saying that qt license is not found. Try download the license file from QT, rename it as .qt-license, and put it under c:/Users//
I have been pulling out what's left of my hair trying to install software that requires a C++ redistributable (2017 x86) using InstallShield lite.
To start with, I define a prerequisite To include the C++ redistributable. When a user attempts an install, the user interface always appears. Now this is not a real problem however, if the redistributable was already installed`or there is a newer version then it will fail with a message that it has failed and it wioll ask the user if he wants to continue or abort the installation. If he selects continue, the software installs fine. This is not very user friendly.
This happens despite the correct command line switches being used i.e. /q /norestart. If you do this at a command prompt manually, it operates as it should. In other words it installs it, or fails because it is already installed but tells the user nothing. This is the way it is supposed to work.
Now I tried doing this as a custom action at the end of the installshield script but then the install appears to hang on some machines and on others other errors.
Now the only clue that I can give, is that if I create an MSI installation, then it never prompts. However with a setup.exe install it acts as above. I have only been successful with the msi install if I am installing a 64 bit app. Never with a 32 bit app.
Can someone guide me as to what I am doing incorrectly?
Thanks
VCRedist: This C / C++ runtime (in various versions and flavors) is a pain indeed. I decided to write something up a while back to try to summarize a few things:
Wix per user installer to detect the Visual C++ 2015 Redistributable (please skim at least - not great, better than nothing I hope - deals mostly with detecting the presence of the runtime).
Merge Modules: Does Installshield Lite support merge modules? If so, you can install the VCRedist using merge modules instead of the VCRedist_x64.exe file. This is insufficient for UWP applications (the universal CRT) as explained in these links:
Redistributables for deploying C++ exe developed with Visual Studio 2015 on Windows 7
WIX merge c++ runtime
Do read the links directly above - they are quick reads.
Batch File: Another option would be to keep the VCRedist_x64.exe file separate from your main setup and to zip up your MSI and the VCRedist_x64.exe in a ZIP archive and put an Install.cmd batch file in there which will install the VCRedist first and then your MSI file? Not too neat - one would have to admit. I think you can make a self-extracting archive that would automagically invoke it, but I haven't done that in ages.
Just a mock-up batch file from link below (untested):
REM 1. Install VCRuntime
vc_redist.x64.exe /install /quiet /log "%temp%\Install_vc_redist_2017_x64.log"
REM 2. Install MSI
msiexec.exe /i MySetup.msi /L*v C:\MySetup.log /QN
Not sure about security fixes and that kind of stuff. Run Windows Update afterwards?
Security Fixes & Link to Download: There have been so many security fixes for this runtime, and it is usually installed on most machines, that I would frankly just link to the download of the latest version and have people install it themselves as a pre-requisite rather than bundling an obsolete version in my setup, but that isn't really sufficient unless your package is for corporate use only (in which case they prefer to install their own runtimes with full control).
Some Links (to find easily):
Command lines to install and uninstall silently the VC++ 2017 Redistribuables (installation command lines, untested by me)
The latest supported Visual C++ downloads (please check)
Microsoft Visual C++ 2017 Resitributable Package (x86) (please do read this)
How to prevent vc_redist.x##.exe (VS2017) from ambiguously failing due to pending reboot?
Visual Studio 2017 Installer Project - include VC++ 2015 Redistributable
There is always the WiX toolkit
Distributable Code for Microsoft Visual Studio 2017 (Includes Utilities, Extensibility, and BuildServer Files)
Mailbag: How to perform a silent install of the Visual C++ 2010 redistributable packages
Thanks for a comprehensive answer. I am sure it will help a lot of people. What I have found is that running vc_redist.x86 from the command line in quiet mode will indeed always work as it should. In other words, if it is not installed, it will be installed. If it is already installed or a later release is installed, it will just return with no complaints. That is not the case using InstallShield Lite 2018 (same for all previous releases).
However, there is a simple solution to get it to work as I found out. All one needs to do is to include the entry Hidden="1" in the behavior part of the PRQ file. So there will now be an entry that looks like this:
<behavior Hidden="1" Failure="4" Reboot="2"/>
This solves the issue. It no longer runs separately from the installshield installer with it's own GUI but rather the messages now appear in the menus in installshield and it operates exactly as if you ran it at the command line. No more errors.
I received a "VS2012 + CUDA 5.0" solution, and would like use it in my "VS2010 + CUDA 5.5" environment.
I was able to get VS2010 open the solution but the compiles are failing:
"C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targets(514,5): error MSB8008: Specified platform toolset (v110) is not installed or invalid"
To resolve this particular problem I would try to navigate to:
open project properties,
navigate to configuration properties -> general -> platform toolset,
open the dropdown and choose v100 (VS2010 toolset) instead of v110 (VS2012).
Having said that, you may encounter various other problems once you are past this issue, e.g. some c++11 feature used in the solution which is not supported in VS2010 or similar. See MSDN for more details.
I am at my wit's end trying to configre Qt. I have finally got it built with MSVC++2010, but I'm having trouble with the add-in. I'm getting the "no default version found" error despite the fact that I have set a path to what I believe to be the right place in C:\Users\Aaron\Downloads\qt-everywhere-opensource-src-5.0.2\qt-everywhere-opensource-src-5.0.2\qtbase
Is this the correct place? If not, what file am I trying to link VSC++ to? Is it the qmake?
Thanks
Search your qt build for qmake.exe. The path to that file is what the Qt Add-on is looking for.
You might also need to end it with a backslash.
http://qt-project.org/wiki/QtVSAddin
Hope that helps.
Alright, my problem was that I had the wrong version of Qt installed. I was using everywhere-Qtopensource. I downloaded Qt for VS2010 and linked the add-in to that version's makefile and it worked fine.
For me the problem was I was adding the wrong directory, I tried to add the bin directory, then i tried to add the QT directory. The directory to be added is the C:\QT\QT5\5.7\msvc2013_64 directory, or whatever they are calling it today.
Note I had to update visual stupidity, then install the latest "QT visual studio tools".
Then I found that these studio tools don't have the core QT build utilities - such as qmake, for instances, so I had to install the QT Unified installer for windows, then be sure that the MSVC 20xx 64 bit version is selected. I didn't need the rest of it, and i certainly don't need 58GB of garbage.
Could you please help me how to make QT work in VS2010? step by step please :)
i installed a fresh copy of windows and i have this files:
Windows 7 Ultimate
Visual Studio 2010 Ultimate
qt-win-opensource-4.7.3-vs2008
qt-vs-addin-1.1.9
Also i'm really confused, i found many ways to do this but all didn't work. Also i don't know why some download "qt-win-opensource-4.7.3-vs2008" and then recompile it. Dose "qt-vs-addin-1.1.9" replace the recompiling step or what?
So please i need a help on how to install QT with VS 2010
The vs-addin does not replace recompiling but there's no need to recompile if you have pre-built Qt binaries (unless you want to change the configuration).
First install your pre-built binary package of Qt. If you've chosen to rebuild it, do that (you won't use the VS UI for this, it's all command-line based). Be sure you install this to a path that doesn't include any spaces in it... something like C:\qt\qt-4.7.3 perhaps.
Then install vs-addin, and start VS.
Now open the Qt menu, go to Qt options, and click Add to add a version. (You can install multiple Qt versions on your system this way if you wish.) Give the version a name of your own choosing, and specify the path to where you've installed it. Close out the options dialog.
Finally, create a new project and notice that the creation wizard has a section for Qt4 Project templates. Choose Qt application and you're well along your way.