Results 1 to 3 of 3

Thread: Application won't static compile under KDE4

  1. #1
    Join Date
    Jun 2006
    Posts
    64
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Application won't static compile under KDE4

    G'Day,

    I have installed Qt 4.6.2 on Slackware Linux 13.1 and compiled the toolkit statically. I can confirm this worked by checking the demos & examples are all 10Mb or larger (in the shared compile they were in the Kbs).

    Using QDevelop I wrote a test application and tried to compile it statically but it ends up shared. I have set the QTDIR to the static libraries and all the paths/option/tools/etc in QDevelop are set to the static libraries. I even tried the command line using the tools from the static compiled toolkits bin directory but it still creates a shared executable. I have checked that the project file contains "config += static". I have only had this problem since using KDE4 (which uses Qt4 of course).

    Clearly I am missing something very obvious but I can't see the wood for the trees!! Any thoughts would be appreciated.

    Thanks, B1.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Application won't static compile under KDE4

    If it is true that you link to the right libraries and you have add static to your pro file, then I only can guess that you maybe forgot to rerun qmake?

  3. #3
    Join Date
    Jun 2006
    Posts
    64
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Application won't static compile under KDE4

    Quote Originally Posted by Lykurg View Post
    If it is true that you link to the right libraries and you have add static to your pro file, then I only can guess that you maybe forgot to rerun qmake?
    Lykurg, I thought that too, so I reran qmake both through QDevelop and at the command line but to no avail. The "make" output shows the correct library paths being used but I suspect there is some other path statement buried some I haven't found that has the wrong path in it.
    Thank you for the thought, though...

    Cheers, B1.

Similar Threads

  1. Problems with static compile for QextSerialPort
    By blm in forum Qt Programming
    Replies: 4
    Last Post: 6th October 2009, 12:55
  2. Replies: 7
    Last Post: 16th February 2009, 21:59
  3. Static compile with jpg support
    By ksqt in forum Newbie
    Replies: 18
    Last Post: 11th May 2007, 04:43
  4. Static Compile [Qt4]
    By PieaholicX in forum Newbie
    Replies: 11
    Last Post: 1st September 2006, 17:18
  5. static compile in qt4 with VisualStudio2003
    By iGoo in forum Installation and Deployment
    Replies: 1
    Last Post: 21st July 2006, 08:46

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.