Results 1 to 3 of 3

Thread: Why is there a special problem with QtSVG during installation?

  1. #1
    Join Date
    Aug 2009
    Posts
    140
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    22

    Default Why is there a special problem with QtSVG during installation?

    This is for Windows, Qt 4.7.2, Qwt 6.0.0, MinGW. I'm installing from the command line, run qmake (get a warning about deprecated unescaped backslashes, which I'm ignoring), and then when I make, everything compiles but the linker fails because it can't find -lQtSvgd. I've checked the Qt lib directory and the SVG libraries are there along with the rest. I've also added QT += svg to the qwt.pro file, it doesn't make a difference. This happened attempting to build both debug and debug_and_release versions; I haven't touched anything else in the .pri files. The Qt install is default--debug and shared. Anybody know what I need to do here?

    Matt

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

    Default Re: Why is there a special problem with QtSVG during installation?

    Disable "CONFIG += silent" in qwtbuild.pri and do another make. Then check the command that is used for linking.

    Uwe

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

    MattPhillips (6th March 2011)

  4. #3
    Join Date
    Aug 2009
    Posts
    140
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    22

    Default Re: Why is there a special problem with QtSVG during installation?

    Hi Uwe,

    Here's the output with Config += silent commented out:

    cd src\ && mingw32-make -f Makefile
    mingw32-make[1]: Entering directory `C:/Users/matt/Projects/EBResearch/EBClient/qwt-6.0.0-rc5/src'
    mingw32-make -f Makefile.Debug
    mingw32-make[2]: Entering directory `C:/Users/matt/Projects/EBResearch/EBClient/qwt-6.0.0-rc5/src'
    g++ -static -static-libgcc -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -shared -mthreads -Wl -Wl,--out-implib,..\lib\libqwtd.a -o ..\lib\qwtd.dll object_script.qwtd.Debug -L"c:\Qt\2010.05\qt\lib" -lQtSvgd -lQtGuid -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCored -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32
    The error message follows this. So it's supplying g++ with the 'static' option? That looks like a big clue. But why? QWT_CONFIG += QwtDll is uncommented in the qwtconfig.pri.

    Matt


    Added after 1 54 minutes:


    So I seem to have 'resolved' this by recompiling/rebuilding qwt in another directory. I don't really get what the problem was but it's working now.
    Last edited by MattPhillips; 6th March 2011 at 17:18.

Similar Threads

  1. QtSVG build incorrectly
    By Helios in forum Installation and Deployment
    Replies: 0
    Last Post: 11th July 2010, 06:58
  2. Building with autotools and QtSvg
    By ldg20 in forum Newbie
    Replies: 1
    Last Post: 7th July 2010, 23:39
  3. Can't include QtSvg
    By been_1990 in forum Qt Programming
    Replies: 1
    Last Post: 13th February 2010, 16:42
  4. Problem extracting special characters from DB
    By mourad in forum Qt Programming
    Replies: 2
    Last Post: 28th April 2008, 08:59
  5. SVGs with CSS support in QtSvg
    By lfranchi in forum Qt Programming
    Replies: 1
    Last Post: 27th December 2007, 06:20

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
  •  
Qt is a trademark of The Qt Company.