Results 1 to 2 of 2

Thread: QWTPolar & Windows issues

  1. #1
    Join Date
    Apr 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default QWTPolar & Windows issues

    Hi all,

    I successfully built-up Linux version of QT application, but I simply can not run application when build on
    Windows platform.

    I always get error:

    The application was unable to start correctly (0xc0000005). Click OK
    to close the application.

    Application includes QWT and QWTPolar and I also built-up examples, which comes together. The QWT examples
    are running OK, but QWTPolar examples are reporting the same error like my application.

    I am using QT 4.8.1, mingw (gcc 4.4.0), QWT 6.0.1 and QWTPolar 1.0.0.

    When building QWTPolar I always get an error during build if I downloaded sources in zip file. If I get it from SVN
    the QWTPolar built-up OK, except of some warnings like:

    compiling plot.cpp
    In file included from ..\..\..\Qwt-6.0.1\include/qwt_raster_data.h:14,
    from plot.cpp:5:
    ..\..\..\Qwt-6.0.1\include/qwt_interval.h:270: warning: 'bool QwtInterval::isVal
    id() const' redeclared without dllimport attribute after being referenced with dll linkage

    and

    c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: warning: auto-importing
    has been activated without --enable-auto-import specified on the command line.
    This should work unless it involves constant data structures referencing symbols
    from auto-imported DLLs.

    Thanks and best regards

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QWTPolar & Windows issues

    You should be posting Qwt related questions in the Qwt sub-forum here.

    0xc0000005
    This error occurs because you are trying to use a null, uninitialized, or otherwise bad pointer. It is due to an error in your code somewhere.

    compiling plot.cpp
    In file included from ..\..\..\Qwt-6.0.1\include/qwt_raster_data.h:14,
    from plot.cpp:5:
    ..\..\..\Qwt-6.0.1\include/qwt_interval.h:270: warning: 'bool QwtInterval::isValid() const' redeclared without dllimport attribute after being referenced with dll linkage
    This is a known warning, and the solution was recently found and posted to the Qwt mailing list. It has to do with isValid() being used in a method before it has been defined inline, because the compiler has already created a non-inline reference to the method. It will be fixed in a future release of Qwt but can be safely ignored for now. The fix is basically to rearrange the order that the methods are declared so that isValid() is defined before it is used.

Similar Threads

  1. Replies: 1
    Last Post: 23rd January 2012, 20:17
  2. QPixmap/QImage serious issues between Windows/Unix
    By Largo in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2011, 13:22
  3. Build issues on Windows 7 with VS 2008
    By drewpt in forum Installation and Deployment
    Replies: 1
    Last Post: 15th July 2011, 18:35
  4. Issues creating MySql Plugin on Windows
    By NicholasSmith in forum Installation and Deployment
    Replies: 2
    Last Post: 29th April 2009, 09:04
  5. linux to windows porting issues
    By qtprogrammer12345 in forum Qt Programming
    Replies: 1
    Last Post: 23rd May 2008, 06:45

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.