Results 1 to 7 of 7

Thread: Problem with 4.8 and ActiveQT

  1. #1
    Join Date
    Jul 2009
    Posts
    74
    Thanks
    2
    Thanked 6 Times in 6 Posts

    Default 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:

    Qt Code:
    1. 19:28:17: Running build steps for project jCQ…
    2. 19:28:17: Configuration unchanged, skipping qmake step.
    3. 19:28:17: Starting: “D:\Qt\qtcreator-2.4.0\mingw\bin\mingw32-make.exe”
    4. D:/Qt/qtcreator-2.4.0/mingw/bin/mingw32-make.exe -f Makefile.Release
    5. mingw32-make.exe[1]: Entering directory `D:/My DropBox/My Dropbox/jCQ/jCQ-build-desktop-Qt_4_8_0__4_8_0__Release’
    6. 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
    7. mingw32-make.exe[1]: Leaving directory `D:/My DropBox/My Dropbox/jCQ/jCQ-build-desktop-Qt_4_8_0__4_8_0__Release’
    8. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0×503): undefined reference to `SysAllocStringLen@8′
    9. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0×535): undefined reference to `SysFreeString@4′
    10. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0x5b5): undefined reference to `SysFreeString@4′
    11. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0x5c1): undefined reference to `SysFreeString@4′
    12. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0x8a2): undefined reference to `IID_IDispatch’
    13. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0x8ad): undefined reference to `IID_IDispatch’
    14. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0x8ba): undefined reference to `IID_IDispatch’
    15. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxdump.o):qaxdump.cpp:(.text+0x8d2): undefined reference to `IID_IDispatch’
    16. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxbase.o):qaxbase.cpp:(.text+0×252): undefined reference to `IID_IClassFactory2′
    17. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxbase.o):qaxbase.cpp:(.text+0×278): undefined reference to `SysAllocStringLen@8′
    18. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxbase.o):qaxbase.cpp:(.text+0×292): undefined reference to `IID_IUnknown’
    19. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxbase.o):qaxbase.cpp:(.text+0x2b3): undefined reference to `SysFreeString@4′
    20. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxbase.o):qaxbase.cpp:(.text+0x2de): undefined reference to `IID_IUnknown’
    21. d:\Qt\4.8.0\lib/libQAxContainer.a(qaxbase.o):qaxbase.cpp:(.text+0×766): undefined reference to `IID_IPersistPropertyBag’
    22. ….
    23. ….
    24. ….
    To copy to clipboard, switch view to plain text mode 


    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
    Last edited by javimoya; 15th December 2011 at 19:43.

  2. #2
    Join Date
    Dec 2011
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default 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!

  3. #3
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default 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?
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  4. #4
    Join Date
    Dec 2011
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default 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 ....

    Build Problems.jpg

    Please help!
    Thank you, hgstoehr
    Last edited by hgstoehr; 14th January 2012 at 11:52.

  5. #5
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default 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'.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  6. #6
    Join Date
    Dec 2011
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default 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

  7. #7
    Join Date
    Jan 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default 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:
    Qt Code:
    1. CONFIG += create_prl
    2. CONFIG += link_prl
    To copy to clipboard, switch view to plain text mode 
    - when qmake, make all, make install.

Similar Threads

  1. ActiveQt
    By rayner in forum Qt Programming
    Replies: 1
    Last Post: 9th December 2010, 00:37
  2. ActiveQt and GDI
    By gegebelzebuth in forum Qt Programming
    Replies: 0
    Last Post: 29th October 2008, 14:21
  3. Qt {ActiveQt}
    By QTInfinity in forum Newbie
    Replies: 2
    Last Post: 26th July 2008, 08:56
  4. ActiveQt
    By sabna in forum Qt Programming
    Replies: 3
    Last Post: 7th March 2008, 08:49
  5. QT, ASP.NET and ActiveQt
    By croland in forum Qt Programming
    Replies: 1
    Last Post: 18th June 2007, 18:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.