Results 1 to 5 of 5

Thread: static lib with qwt-6.1-rc3 has an issue

  1. #1
    Join Date
    Jun 2012
    Posts
    173
    Thanks
    48
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default static lib with qwt-6.1-rc3 has an issue

    im trying to bulid a static library for qwt-6.1-rc3,
    when i disable the #QWT_CONFIG += QwtDll

    the library qwt.a is built, but when i use it, the compiler complain and i get errors :

    qwt_symbol.cpp:-1: error: undefined reference to `QSvgRenderer::viewBoxF() const'


    but when i use the shared library it works fine.
    so how can i fix that ?? or what else i need to do to build a static library in qwt ??

    thanks
    Last edited by jesse_mark; 8th April 2013 at 21:50.

  2. #2
    Join Date
    Jun 2012
    Posts
    173
    Thanks
    48
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: static lib with qwt-6.1-rc3 has an issue

    Guy any help, how can i build a static library of qwtqwt-6.1-rc3 ???

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

    Default Re: static lib with qwt-6.1-rc3 has an issue

    The missing symbol is from the Qt SVG library.

    But without having any information about your OS the Qt installation or how you build your application your posting is only a good example for "how to ask if you want to have no answer".

    Uwe

  4. #4
    Join Date
    Jun 2012
    Posts
    173
    Thanks
    48
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: static lib with qwt-6.1-rc3 has an issue

    I'm building it on Linux RedHat, using qt 4.8.1.

    1- I just load the .pro file using qt creator2.4.1 and qt 4.8.1
    2- disable #QWT_CONFIG += QwtDll in qwtconfig.pri file.

    then build it.
    it builds OK and i get the qwt.a file, but when i use it. it does not work.

    I use it in my .pro file, I link to library using

    LIBS +=
    INCLUDEPATH +=
    DEPENDPATH +=

    I don't install it as i try different versions of qwt and its just more convenient to me this way.
    with the shared library every thing works fine but with the static i get the error i point to in my question.

    thanks.

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

    Default Re: static lib with qwt-6.1-rc3 has an issue

    Quote Originally Posted by jesse_mark View Post
    II don't install it as i try different versions of qwt and its just more convenient to me this way.
    Obviously not ...

    Uwe

Similar Threads

  1. Need Help to build QwtPolar Library
    By santhoshpatil in forum Qwt
    Replies: 0
    Last Post: 21st November 2012, 14:40
  2. Replies: 0
    Last Post: 9th August 2012, 21:42
  3. How to build a library from application
    By kamlmish in forum Newbie
    Replies: 7
    Last Post: 8th February 2011, 10:32
  4. i want build My project use VLC library on QT
    By nhs_0702 in forum Qt Programming
    Replies: 1
    Last Post: 13th March 2010, 06:41
  5. Replies: 3
    Last Post: 28th December 2007, 11:02

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.