Results 1 to 3 of 3

Thread: static linking issue

  1. #1
    Join Date
    May 2006
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default static linking issue

    Hi All,
    I am using Qt 4.1.2 on linux and have developed a executable using Qt designer.
    now i want to deploy this application to other Systems who do not have Qt installed.
    i tried out all the steps for static linking on the following page but it doesnt seem to help me out.
    http://doc.trolltech.com/4.1/deployment-x11.html
    I have built Qt statically and have libQtGui.a and libQtCore.a in my bin directory.
    Then i carried out following steps.
    make clean
    PATH=/path/to/Qt/bin:$PATH
    export PATH
    qmake -config release
    make

    and when i run the executable it gives me Sementation fault.
    Plz help me out...

    Thanks

  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: static linking issue

    Could you debug your app to see what causes the crash? Also, did you remember to force static linkage? Those .a files should be in the lib/ directory and not bin/, shouldn't they?

  3. The following user says thank you to wysota for this useful post:

    ashwini (29th May 2006)

  4. #3
    Join Date
    May 2006
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: static linking issue

    Hi,
    I had a query that i have my own serial library using which i send commands from the GUI to the serial port.I have compiled and linked the serial library while i created my executable,now while i port this application to different linux system (used static Qt linking) do i have to port my serial library or not???

    Thanks...

Similar Threads

  1. static & dynamic linking
    By mickey in forum General Programming
    Replies: 6
    Last Post: 11th June 2010, 09:57
  2. Problem with libmng on static link
    By jlbrd in forum Installation and Deployment
    Replies: 2
    Last Post: 10th May 2006, 23:38
  3. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 09:52
  4. Replies: 4
    Last Post: 20th February 2006, 10:11
  5. Replies: 4
    Last Post: 14th February 2006, 22:35

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.