Re: Problem with 4.8 and ActiveQT
Hi !!
I have a big problem with 4.8 (not with 4.7):
I build succesfully ActiveQT (4.8, mingw32, windows-xp) (I copy the libs generated to LIB dir)
Then I try to compile my app ….
but I got a lot of errors:
Code:
19:28:17: Running build steps for project jCQ…
19:28:17: Configuration unchanged, skipping qmake step.
19:28:17: Starting: “D:\Qt\qtcreator-2.4.0\mingw\bin\mingw32-make.exeâ€
D:/Qt/qtcreator-2.4.0/mingw/bin/mingw32-make.exe -f Makefile.Release
mingw32-make.exe[1]: Entering directory `D:/My DropBox/My Dropbox/jCQ/jCQ-build-desktop-Qt_4_8_0__4_8_0__Release’
g++ -Wl,-s -mthreads -Wl,-subsystem,windows -o release\jCQ.exe object_script.jCQ.Release -Lâ€d:\Qt\4.8.0\lib†-lmingw32 -lqtmain release\myapp_res.o -lQAxContainer -lQtSql4 -lQtGui4 -lQtCore4
mingw32-make.exe[1]: Leaving directory `D:/My DropBox/My Dropbox/jCQ/jCQ-build-desktop-Qt_4_8_0__4_8_0__Release’
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0×503): undefined reference to `SysAllocStringLen@8′
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0×535): undefined reference to `SysFreeString@4′
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0x5b5): undefined reference to `SysFreeString@4′
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0x5c1): undefined reference to `SysFreeString@4′
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0x8a2): undefined reference to `IID_IDispatch’
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0x8ad): undefined reference to `IID_IDispatch’
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0x8ba): undefined reference to `IID_IDispatch’
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0x8d2): undefined reference to `IID_IDispatch’
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxbase.o):qaxbase.cpp:(.text+0×252): undefined reference to `IID_IClassFactory2′
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxbase.o):qaxbase.cpp:(.text+0×278): undefined reference to `SysAllocStringLen@8′
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxbase.o):qaxbase.cpp:(.text+0×292): undefined reference to `IID_IUnknown’
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxbase.o):qaxbase.cpp:(.text+0x2b3): undefined reference to `SysFreeString@4′
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxbase.o):qaxbase.cpp:(.text+0x2de): undefined reference to `IID_IUnknown’
d:\Qt\4.8.0\lib/libQAxContainer.a(qaxbase.o):qaxbase.cpp:(.text+0×766): undefined reference to `IID_IPersistPropertyBag’
….
….
….
I can build it with Qt 4.7.x
any idea?
thank you!
Added after 34 minutes:
I discovered the problem:
these files are missing under the LIB DIR
QAxContainer.prl
QAxContainerd.prl
QAxServer.prl
QAxServerd.prl
Re: Problem with 4.8 and ActiveQT
Hi !,
Please can anybody tell me where I get these files:
QAxContainer.prl
QAxContainerd.prl
QAxServer.prl
QAxServerd.prl
????
Thank you!
Re: Problem with 4.8 and ActiveQT
I would have thought they would be made when compiling. Are you sure there were no errors when compiling active qt module?
1 Attachment(s)
Re: Problem with 4.8 and ActiveQT
Perhaps I did a fundamental mistake, so I tell what I did from the very beginning:
I used "qt-win-opensource-4.8.0-mingw.exe". It was compiled using "MinGW-gcc440_1.zip". --> Everthing works fine!
To build the "QAxContainer Module" I entered C:/Qt/4.8.0/src/activeqt/container.
I ran "qmake container.pro" and than "mingw32-make"
I got "libQAxContainerd.a" in the "container/debug"-directory and it was copied to c:/Qt/4.8.0/lib
I copied the whole directory of the example "webbroser" from C:/Qt/4.8.0/examples/activeqt/webbrowser into a working directory (without any changes)
I opended the project in Qt Creator and tried to compile (debug mode)
I got a a couple of error messages ....
Attachment 7268
Please help!
Thank you, hgstoehr
Re: Problem with 4.8 and ActiveQT
I think something went wrong with your install. I didnt have to compile qaxcontainer separately, although I built 4.7 not 4.8.
Has the naming convention changed? my libs dont start with 'lib'.
Re: Problem with 4.8 and ActiveQT
to amleto:
You were right!
I installed (compiled) everything for a 2nd time - and now it works!
But nevertheless I had to compile the "QAxContainer" and the "QAxServer" in "activeqt" separately.
Thank you
hgstoehr
Re: Problem with 4.8 and ActiveQT
Hi.
To create *.prl files and fix problem:
- add to container.pro file in ../activeqt/container dir 2 lines:
Code:
CONFIG += create_prl
CONFIG += link_prl
- when qmake, make all, make install.