Results 1 to 9 of 9

Thread: How to include library using config+=mylibrary

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Feb 2007
    Posts
    24
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to include library using config+=mylibrary

    To early in the morning me to fully describe why everything mentioned in this thread is poor programming practice and should be discouraged not encouraged.

    Qt and Qmake (as well as certified developers) should know better!!

    Installing user generated libraries and other dependencies directly into the Qt install directories is fragile and will break when for instance the Qt library is upgraded or deleted and re-installed.

    Also, on Linux for instance, distribution based installs are installed with permission filters to the 'admin' of the system. Developers using the 3rd party library, may very well not want to be forced by the provider of a 3rd party, Qt based library, to have to install in this area, but instead in the less restricted 'user' space.

    Another peeve I'll mention is that Qmake relies on hard coded Qt environment variables that are not available to the build environment outside of using Qmake itself. I constantly come across projects using qmake build configurations that I have to completely rewrite to make for a more flexible environment.

    Qtcreator is a fine example of a crappy qmake build file. On Linux the install is in-flexible and has to be patched or deviated from. Qtcreator installs itself not in the 'admin' restricted area, but where only system related files belong.. /lib /include /bin ...etc!

    Please consider this when you distribute your 3rd party projects using the very poorly created (and documented) qmake build system.

    Please use system wide ENVIRONMENT variables and not hard coded Qt variables for others to rely on.

    Thank you!

    // rant over :-)
    Last edited by travlr; 9th September 2011 at 15:59.

Similar Threads

  1. MyLibrary - Install to /usr/lib
    By DaneAU in forum Qt Programming
    Replies: 4
    Last Post: 25th September 2011, 19:43
  2. Replies: 2
    Last Post: 19th February 2011, 11:26
  3. Replies: 2
    Last Post: 9th October 2010, 05:34
  4. pkg-config
    By becrux in forum Qt Programming
    Replies: 0
    Last Post: 28th July 2008, 18:20
  5. config question
    By nightwalker in forum Qt Tools
    Replies: 2
    Last Post: 31st March 2006, 18:47

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.