Results 1 to 3 of 3

Thread: Target extension

  1. #1
    Join Date
    Feb 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Target extension

    Hi everyone

    I compile plugins using Qt
    my pro file for qmake is basic:

    TARGET = mytarget
    TEMPLATE = lib

    it creates dylib files on a mac, dll on win, etc... everything works fine
    but I want to have a custom extension file for all platforms !!
    and also don't want all the created files/symlinks on mac for example:

    mytarget.1.0.0.dylib
    mytarget.1.0.dylib
    mytarget.1.dylib
    mytarget.dylib

    I just want: mytarget.myext
    I found that there is a variable in Qmake called TARGET_EXT, so I added in my pro file:
    TARGET_EXT = .myext

    but nothing changes, same without the dot...
    what should I do ?

    thanks, greg

  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: Target extension

    Did you remember about CONFIG+=plugin? Changing the extension is probably a bad idea, by the way. You can override it with QMAKE_EXTENSION_SHLIB if you really want to.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Feb 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Target extension

    Thank you, it works with QMAKE_EXTENSION_SHLIB

Similar Threads

  1. using qmotif extension
    By pascasio in forum Newbie
    Replies: 7
    Last Post: 30th November 2010, 13:53
  2. QFileDialog and file extension
    By calhal in forum Qt Programming
    Replies: 3
    Last Post: 9th March 2010, 12:54
  3. QDate class extension
    By Carlton in forum Newbie
    Replies: 1
    Last Post: 22nd February 2009, 07:33
  4. QImage extension class
    By rbp in forum Qt Programming
    Replies: 2
    Last Post: 18th November 2008, 06:55
  5. Using Qt with kernel extension dll
    By ramazangirgin in forum Qt Programming
    Replies: 1
    Last Post: 21st January 2008, 13:23

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.