Results 1 to 4 of 4

Thread: using the lib template dll option on *nix

  1. #1
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default using the lib template dll option on *nix

    doc/html/qmake-common-projects.html#the-lib-template tells me that there is a DLL option that would build "a shared library (dll)".

    Does this mean that this option is valid only on Windows?

    If not, it is misleading to add the word "dll" since there are no DLLs on *nix and I presume on Mac too, and so I can file a bug asking for the wording to be changed.

    Same goes for the plugin option there.
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: using the lib template dll option on *nix

    "dll" will be ignored on platforms other than windows. "plugin" is a perfectly valid option on all platforms.

    Don't expect Trolltech to change option names in qmake (the only thing they can do is add an option but not remove it), becuase it would mean loosing backward compatibility with already written programms.

  3. #3
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: using the lib template dll option on *nix

    Quote Originally Posted by wysota View Post
    "dll" will be ignored on platforms other than windows. "plugin" is a perfectly valid option on all platforms.
    If so then:
    1. the documentation should say that
    2. there would be no way to create a shared library using qmake

    Don't expect Trolltech to change option names in qmake (the only thing they can do is add an option but not remove it), becuase it would mean loosing backward compatibility with already written programms.
    This is why they have words like "deprecated"
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: using the lib template dll option on *nix

    Quote Originally Posted by jamadagni View Post
    If so then:
    1. the documentation should say that
    2. there would be no way to create a shared library using qmake
    I don't think I understand... If you use a "lib" template without the "staticlib" config option, you'll get a shared library...

    And besides... "dll" means "dynamically loaded library" which is basically true on all platforms.

Similar Threads

  1. qt 4.2.2 install in tru64 cxx
    By try to remember in forum Installation and Deployment
    Replies: 0
    Last Post: 30th March 2007, 08:43
  2. RFC: A Complex(er) QMake Template
    By camel in forum Qt-based Software
    Replies: 1
    Last Post: 19th January 2007, 11:10
  3. how to write a template function in a form..
    By nass in forum General Programming
    Replies: 7
    Last Post: 18th December 2006, 20:36
  4. problem using template
    By mickey in forum General Programming
    Replies: 6
    Last Post: 18th November 2006, 16:57
  5. QGLWidget with multiple monitors
    By Rayven in forum Qt Programming
    Replies: 3
    Last Post: 4th August 2006, 11:28

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.