Results 1 to 3 of 3

Thread: qmake and dumpcpp

  1. #1
    Join Date
    Nov 2010
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qmake and dumpcpp

    I'm trying to use COM object in my application. According to help "dumpcpp can be integrated into the qmake build system".
    http://doc.qt.io/qt-4.8/http://doc.qt.io/qt-5/activeqt-dumpcpp.html
    So my code in .pro file for qmake is
    Qt Code:
    1. TYPELIBS = $$system(dumpcpp "C:\Component.exe")
    2. isEmpty(TYPELIBS){
    3. message("Component is not found!")
    4. REQUIRES += Component
    5. }
    To copy to clipboard, switch view to plain text mode 
    The result of the code is "Component is not found!"
    If I run dumpcpp in power shell with comand
    Qt Code:
    1. C:\Qt\5.5\mingw492_32\bin> ./dumpcpp.exe "C:\Component.exe"
    To copy to clipboard, switch view to plain text mode 
    ,
    I have component.cpp and component.h files.
    (I tried to use different quotes, slash, of back slash).
    Please help me.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: qmake and dumpcpp

    In line 1 you almost certainly need double backslash to ensure that a backslash is ultimately passed to the cmd shell. You may also need to escape the quotes.

  3. #3
    Join Date
    Nov 2010
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qmake and dumpcpp

    Thank you so much. It works.

Similar Threads

  1. dumpcpp creates non-functional code of procedure
    By stephan.storm in forum Qt Programming
    Replies: 1
    Last Post: 2nd July 2012, 18:28
  2. Using ActiveX controls and dumpcpp
    By eli in forum Qt Programming
    Replies: 11
    Last Post: 1st August 2011, 08:07
  3. ActiveX - Integrate dumpcpp interfaces
    By durbrak in forum Qt Programming
    Replies: 3
    Last Post: 10th February 2011, 07:54
  4. compilation error when including dumpcpp output
    By Jimmy2775 in forum Qt Programming
    Replies: 13
    Last Post: 14th May 2010, 05:12
  5. Integrating dumpcpp in VS build
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 15th October 2007, 18:48

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.