My employer is in the process of buying a code base which uses Qt, so I need to set up any sort of development environment that I can, in which to work examples, learn the basics of Qt, and not incidentally, refresh my C++ programming skills after most of 10 years as mostly a Java programmer.
I have two options for doing this.
1) Win 7 / Cygwin
I have a Win7 PC on which I’ve just installed
Cygwin 1.71 – correctly enough, that I can build a basic “Hello World” program with g++ through the Cygwin terminal (though not through a Windows terminal), and other commands like ‘grep’ and ‘whois’ work
Qt 4.8.4 libraries for Windows, using the qt-win-opensource-4.8.4-vs2010 download (may or may not be correct)
Qt Creator 2.6.1 for Windows, using the qt-creator-windows-opensource-2.6.1 download.
2) SLES VirtualBox
On the same Win7 PC, I have Oracle VM VirtualBox running a SUSE 11 (SLES) virtual machine. I’ve just upgraded the Qt libraries on this machine (previously 4.7.4) to 4.8.4, using the qt-everywhere-opensource-src-4.8.4.tar (paths have also been updated in the bash.bashrc.local), and am currently trying to install Qt Creator (not previously installed) using the qt-creator-linux-x86-opensource-2.6.1.bin
Both these efforts have foundered, and I am looking for any advice anyone may be able to offer, on how to get either environment up and running.
In the Win 7/Cygwin/Qt Creator case, when I launch Qt Creator and attempt to create an empty Qt project, no surprise, it complains “no valid kits found” so I go into Options to try to set up a “kit”. Under Compilers, as nothing was auto-detected (if any attempt at auto-detection was made—can’t tell) I clicked Add, and when offered a drop list of MinGw, GCC, and CLang, selected GCC, and set that up with the path to c:\cygwin\bin\g++.exe. I then stepped to the CMake tab, and set that up with the path to c:\cygwin\bin\cmake.exe. I then stepped back to the Qt Versions tab, and as again there was no evidence of anything being auto-detected, clicked Add and stepped through identifying my Qt version as Qt 4.8.4(4.8.4) with the path to qmake browsed as c:\Qt\4.8.4\bin\qmake.exe …under which I have the cheerful message, “No compiler can produce code for this Qt version. Please define one or more compilers.” and a little red stop sign appears next to the “Manual” entry shown.
I have no idea what’s going on here. If the Cygwin compilers I’ve specified aren’t good enough, or there’s any issue with the 4.8.4 qmake itself (?!) I have no idea how to resolve this.
In the SLES VirtualBox case, where I’ve reached the stage of trying to run the command:
./qt-creator-linux-x86-opensource-2.6.1.bin
…the output I get is:
./qt-creator-linux-x86-opensource-2.6.1.bin: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11` not found (required by ./qt-creator-linux-x86-opensource-2.6.1.bin)
Here, I’m a bit further ahead in terms of realizing I need to find a more current libstdc++ providing this GLIBCXX_3.4.11 version—just have no idea where, or how to get it in place without breaking anything else.
BTW, I have to use Qt 4.8.4, because Qt 5 is rated as “potentially undesirable” at the company firewall and can’t be downloaded. So, if installing the Qt 5 SDK would magically solve any of my problems, it’s not an option.
↧