Compiling Qt5 in FreeBSD console - qt

Is there is a way to build q5 projects under FreeBSD console? I have found only qt4 in ports.

Some effort has been made for that. The compiler requirement is GCC 4.6. There's also some discussion about Qt5 and BSD on Qt Project website. They say the X11 version is compatible with BSD, but you must compile it from source.

Related

How do I create my .run file to install Qt 5.9.0 on 32-bit debian?

As per my information, Binaries (or offline/online installers) for installing Qt (>= 5.6) on 32-bit linux are not provided. For example, If I want to use Qt 5.9.0 on 32-bit linux (debian, specifically), the only option is to download Qt source and build it. I have successfully built Qt 5.9.0 on my 32-bit linux machine. But I have to do this on all my development PC's. Instead if I can build it once and create an installer somehow, that will save a lot of time. Is there a way to create offline installer (e.g. *.run files) for installing Qt 5.9.0 on 32-bit Linux (e.g. debian)?
As stated by #Velkan, Qt is available on 32 bit Debian from the official repos.
But, indeed, there is no 32-bit Linux installer from the Qt project.
Regarding copying a Qt install from a Debian PC to another, you do not need to create an installer. Just copy/tar/zip the directory in which Qt is installed. The only requirement is that you must keep the installation in the same absolute path as the Qt Core library has the path hardcoded in it and it is use for plugin detection.
NB1: It is possible to patch Qt Core library to change the hardcoded path and even make it relative. It is not officially documented but you can take a look in the sources of tools like windeployqt or the online installer
NB2: Do not use Qt 5.9.0, prefer 5.9.2. Both are forward and backward binary compatible, but the latter received bug fixes.

please help in configuring opencv 2.4.8 on qt(vs2012) on 64bit windows7

I have 64bit intel machine.
I am running windows 7 (64 bit) on this machine.
I have installed Visual Studio Ultimate 2012 on my machine.
I have installed Qt Creator 3.0.1 based on Qt 5.2.1 (MSVC 2010, 32bit)
I am not able to configure opencv 2.4.8 on this Qt on my machine.
I have tried many things but I am not able to get opencv 2.4.8 work on qt.
Please tell me the necessary steps.
Please note, I guess there is some twist because of my software versions e.g. 64 bit machine, opencv 2.4.8 and qt based on MSVC2010, but I am not sure.
Please..please..please help me.
Thank you in advance.
Are you failing to compile OpenCV, link it with your application or running your executable from Qt? Are you linking statically? The problems can be quite different.
If you are linking statically everything needs to be compiled with the same Microsoft Visual C++ compiler AFAIK [VC11 (2012) in your case]. OpenCV is Ok because they provide binaries for vc10 (VS2010), vc11 (VS2012) and vc12 (VS2013). For Qt itself download the version compiled against VS2012 available here.
If you are required to use Qt libraries compiled against vc10, then make sure you install the redistributables for Microsoft Visual C++ 2010 Redistributable Package (x86) and link your application dynamically. And of course, use Dependency Walker if you have problems with wrong DLLs.

QT 5.2 has no kit or qmake with MingW after installation

I downloaded the QT 5.2 build for MingW/OpenGL build and installed it. When I run QTCreator and try to create a project, I can't set it up because there is no kit available to choose from. I have MingW installed, so I tried to point QT to this installation, but there is qmake as well missing. I'm not sure if the manual configuration of the compiler would suffice to have a kit to choose from, but that would be my expectation.
So the question is, how do I setup QT properly that it recognizes my MingW installation and how do I get qmake to continue with QT? After downloading a 600MB package I would have expected that it works out of the box.
OS is Windows 7 and my MingW uses gcc 4.8 so it should be the same version that QT brings in it's package as well.

Qt Creator needs a compiler set up to build. Configure a compiler in kit options

I just installed Qt 5.2 package on ubuntu. I simply created a Qt widget application, and when I tried to build it, I got the following message:
Qt Creator needs a compiler set up to build. Configure a compiler in
kit options
I have tried several things, all of which were unsuccessful. I tried setting the compiler kit to
Desktop Qt 5.2.0 GCC 32bit (default)
However it didn't work
After that I set the compiler to
GCC (x86 32bit in use/bin)
However that didn't work either.
I also tried adding gcc manually and gave it the path
/usr/bin/g++-4.6
but it still didn't work.
This is what appears in there Qt Version tab
This is what I get when I remove the .pro.user file and restart the IDE, Whats the difference between configuring a project as Desktop and Desktop Qt 5.2.0 GCC 32bit?
Qt Creator needs a version of tools that are able to link against the Qt binaries that the downloaded package contains. In your case, the local toolchain and the binaries don't match. That means that you would actually have to build the Qt with your toolkit and make sure that QtCreator can find the built binaries.
The simpler way for Ubuntu is to use the packaged version of the tools; they play well with the already delivered binaries. Use sudo apt-get install qtcreator to install it with all the dependencies.

Qt 5.2 mingw package, Issue with QtCreator loading plugins

I’ve downloaded QT 5.2 mingw. Then i had trouble with QtCreator loading the plugings(compiled with mingw). After that i found that the QtCreator is built with MSVC 2010!!!!
So why in Qt 5.2 (which is built with Mingw), its QtCreator is built with MSVC?!
Probably because all Qt Creator releases are built once and repackaged in the various installers. It's not a good reason, and might even be a bad reason given your problem, but it's probably the reason. Note the Qt SDK is not meant to be used for actual Qt (Creator) development (you will use the git repositories for that), which is probably why nobody ever ran into this mismatch.
Note you can easily rebuild Qt Creator from source. It's as simple as
qmake ../qt-creator-3.0.0 -r
mingw32-make release
If you have a qt-creator-3.0.0-build directory next to the extracted source.

Resources