Results 1 to 3 of 3

Thread: build of qwt with qwtsvgitem (msvc2005 on win xp)

  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default build of qwt with qwtsvgitem (msvc2005 on win xp)

    Hi all,

    my goal is to export a diagram as a svg, but
    when building qwt 5.2.0 with qwtsvgitem activated, I get errors (see below).

    cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GL -W3 -w34100 -w34189 -GR -E
    Hsc -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQWT_DLL -DQWT_MAKEDLL -D
    QT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB
    -DQT_CORE_LIB -I"..\..\4.5\include\QtCore" -I"..\..\4.5\include\QtGui" -I"..\..\
    4.5\include\QtXml" -I"..\..\4.5\include\QtSvg" -I"..\..\4.5\include" -I"..\..\4.
    5\include\ActiveQt" -I"moc" -I"." -I"..\..\4.5\mkspecs\win32-msvc2005" -Foobj\ @
    C:\DOKUME~1\schwarmi\LOKALE~1\Temp\nm9E7.tmp
    qwt_plot_svgitem.cpp
    c:\programme\qt\4.5\include\qtsvg\../../src/svg/qgraphicssvgitem.h(53) : error C
    2146: Syntaxfehler: Fehlendes ';' vor Bezeichner 'QtSvgModule'
    c:\programme\qt\4.5\include\qtsvg\../../src/svg/qgraphicssvgitem.h(53) : error C
    4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" w
    ird von C++ nicht unterstützt.
    c:\programme\qt\4.5\include\qtsvg\../../src/svg/qgraphicssvgitem.h(53) : error C
    4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" w
    ird von C++ nicht unterstützt.
    c:\programme\qt\4.5\include\qtsvg\../../src/svg/qsvggenerator.h(57) : error C237
    8: 'QtSvgModule': Neudefinition; Symbol kann nicht mit typedef überladen werden
    c:\programme\qt\4.5\include\qtsvg\../../src/svg/qgraphicssvgitem.h(53):
    Siehe Deklaration von 'QtSvgModule'
    c:\programme\qt\4.5\include\qtsvg\../../src/svg/qsvgrenderer.h(58) : error C2378
    : 'QtSvgModule': Neudefinition; Symbol kann nicht mit typedef überladen werden
    c:\programme\qt\4.5\include\qtsvg\../../src/svg/qgraphicssvgitem.h(53):
    Siehe Deklaration von 'QtSvgModule'
    c:\programme\qt\4.5\include\qtsvg\../../src/svg/qsvgwidget.h(53) : error C2378:
    'QtSvgModule': Neudefinition; Symbol kann nicht mit typedef überladen werden
    c:\programme\qt\4.5\include\qtsvg\../../src/svg/qgraphicssvgitem.h(53):
    Siehe Deklaration von 'QtSvgModule'
    NMAKE : fatal error U1077: ""C:\Programme\Microsoft Visual Studio 8\VC\BIN\cl.EX
    E"": Rückgabe-Code "0x2"
    Stop.
    NMAKE : fatal error U1077: ""C:\Programme\Microsoft Visual Studio 8\VC\BIN\nmake
    .exe"": Rückgabe-Code "0x2"
    Stop.
    NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
    Stop.

    Qt version is 4.5 commercial. Build for Microsoft Visual Studio Compiler 2005 on Win XP.
    Projects using the svg-module of Qt (notqwt) didn’t fail at building (I tried with one of those qt examples that use the svg module).

    I tried to add CONFIG += xml according to the hint in qwtconfig.pri, but the error remains.
    So do you have any suggestions for me?

    Kind regards
    Michael

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: build of qwt with qwtsvgitem (msvc2005 on win xp)

    a) The compiler error is against a Qt header (Qwt has nothing to do with QGraphicsView and friends ). Open it in your editor and check the offending line.
    b) You don't need QwtPlotSvgItem to export your plot to SVG. This is done by QwtPlot:rint with a QSvgRenderer (see bode example ) as paint device.

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    mike123 (14th July 2009)

  4. #3
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: build of qwt with qwtsvgitem (msvc2005 on win xp)

    Thanks Uwe.
    I skipped building Qwt with QwtSvgItem and it works fine! I didn't thought it was so easy...

Similar Threads

  1. QWT fails in debug build
    By steg90 in forum Qwt
    Replies: 1
    Last Post: 11th November 2011, 07:53
  2. qwt 5.2 install on qt 4.5
    By HyperB in forum Qwt
    Replies: 4
    Last Post: 13th May 2009, 21:03
  3. [QtWebKit] - MSVC2005 WebCore build failed
    By aikidorb in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd June 2008, 12:19
  4. qwt designer build errors
    By jhearon in forum Qwt
    Replies: 4
    Last Post: 17th July 2007, 07:47
  5. Build error on mac Platform::WaitMouseMoved
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 12th July 2007, 14:18

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.