qt 5.8 menus example activeqt direct compilation failed



  • my development environment:
    1.qt 5.8(the installation is qt-opensource-windows-x86-android-5.8.0.exe)
    2.open the example of 'Menus Example (ActiveQt)', nothing done, direct compilation failed
    info:
    :-1: error: [debug\menusax.exe] Error 2 (ignored)
    :-2: error:Couldn't open debug\menusax.tlb for read:-1: error: No such file or directory

    why?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Where did you install Qt ?

    What version of Windows are you running ?



  • Win 10 ,Qt Creator 4.2.1 (mingw53_32)


  • Qt Champions 2017

    @Tong
    Hi Are you trying anything ActiveX on android ?
    http://doc.qt.io/qt-5/activeqt-activeqt-menus-example.html

    Its Windows only.



  • @mrjj thanks! i know, i using Qt Creator 4.2.1 open the example of 'Menus Example (ActiveQt)', nothing done, direct compilation failed. ( i seleced Build&Run:esktop_Qt_5_8_0_MinGW_32 bit )


  • Qt Champions 2017

    @Tong
    ok
    its just that your first post says
    qt-opensource-windows-x86-android-5.8.0.exe
    which is not for desktop.

    Can you create default GUI project and run it ?
    ( File-> New Project -> Qt -> widgets app)

    Also, did you read the docs for sample. it says :
    "To build the example you must first build the QAxServer library."



  • @mrjj qt-opensource-windows-x86-android-5.8.0.exe can write two kinds of windows and android app, just windows app is compiled with the MinGW。Can you create default GUI project and run it ?
    ( File-> New Project -> Qt -> widgets app) this is no problem.


  • Qt Champions 2017

    @Tong
    Ok. super so toolchain works.
    Ok so its a Metro/modern apps. Not a "real" application for Desktop.
    Im not sure Metro apps supports COM. Never used any.
    Do you know for a fact that ActiveX/Com works in Metro/Modern ?

    Maybe its the
    "To build the example you must first build the QAxServer library."
    part you are missing.


  • Qt Champions 2017

    Update:
    I tried the sample and got same error.
    so im pretty sure the stuff doc says should be done first is the reason for this error :)



  • @mrjj
    i using windows 10 . if using Qt visual studio 2015 tool, create "Qt ActiveQT Server"
    and it's able run it. but Failed to build'Menus Example (ActiveQt)" using Qt Creator 4.2.1


  • Qt Champions 2017

    @Tong
    Creator is just an editor. It can use any compiler. mingw/visual studio.
    Are you using visual studio compiler also with Creator ?

    If it works with " Qt visual studio 2015 tool" it should work the same in Creator if you use
    same compiler.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.