Results 1 to 8 of 8

Thread: cross compiling with static libraries

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: cross compiling with static libraries (continued)

    Will be nice if you share exactly what the mistake was and what the fix is, so other having similar problems can be helped by it.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  2. #2
    Join Date
    Mar 2008
    Posts
    51
    Platforms
    Unix/X11 Windows
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Default Re: cross compiling with static libraries (continued)

    When searching how to compile with static libs, I found one mailer who added
    QMAKE_LFLAGS= -static
    which I did, and which gave problems as described.
    Another page on the web gave a more precise detailing of what to do, which
    is essentially set
    CONFIG += static

    which does the trick perfectly (just look for Tutorial for cross compiling).

    So, I compiled my sdr package on Fedora 17, using mingw64 cross compiler tools and
    indeed the resulting software works on windows.
    Still have to configure one or two packages for the whole functionality, but my program works.

    Thankx for the interest
    jan

Similar Threads

  1. Replies: 4
    Last Post: 5th November 2011, 02:38
  2. How to cross-compiling in Qt
    By sanjeet in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 29th April 2011, 19:14
  3. Cross Compiling for MIPS
    By WayneFresh in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 22nd October 2010, 19:25
  4. problem compiling qt application using static external libraries
    By pavan1984 in forum Installation and Deployment
    Replies: 0
    Last Post: 5th October 2010, 12:41
  5. cross compiling
    By tommy in forum Installation and Deployment
    Replies: 1
    Last Post: 8th March 2009, 19:02

Tags for this Thread

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.