Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt4.8.0 QAxObject error but 4.7.4 is OK.
realfan last edited by
When I build a project using QAxObject with QT4.8.0.
cannot find -IQAxContainerd
collect2:Id returned 1 exit status
but if I use QT4.7.4, it works well.
QT creator 2.4.0 + Qt libraries 4.8.0 for Windows (minGW 4.4, 354 MB)------error
QT creator 2.4.0 + Qt libraries 4.7.4 for Windows ---------------------------OK
OS: Windows7 enterprise
Any one knows what's wrong with it.
racostatorres last edited by
QAxContainer is not pre-built. Build the activeqt project located at
then take libQAxContainerd.a and copy it to 4.8.0\lib.
BTW, make sure you are using Qt for msvs; I couldn't get a
successful build using MinGW.
jsveiga last edited by
Hi, here's what I had to do to get QAxObject back to functional after upgrading the Qt SDK suite (Qt Creator 2.0.1, Qt 4.7.0 to Qt Creator 2.4.1, Qt 4.8.0), with MinGw, without msvs.
Starting from a standard Qt SDK installation (./ is the Qt SDK install directory)
1 - Changed the include paths in the following .h files, as there were "file not found" complaints when compiling:
CONFIG += create_prl
CONFIG += link_prl
so I could get the
3 - Opened and compiled (for release AND debug) the projects found at:
Make sure you clean them if you tried to compile before the above modifications
4 - Copy the following files (original path may change according to your config when opening the .pro projects for the first time):
Be careful not to copy these .prl files, which I'm not sure would work:
(they are in the "debug" directory under the "release" build and vice-versa)
5 - Reboot
Yeah, weird, but after doing all that, I kept getting "undefined reference" errors when compiling my projects (some windows library caching?). After a reboot, it worked fine.
Joao S Veiga