Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. I got "Segmentation Fault" when I run my application on another PC without Qt.

I got "Segmentation Fault" when I run my application on another PC without Qt.

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 4.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pico
    wrote on last edited by
    #1

    Hi, Sir:
    I follow the way described in "Deploying Qt Applications" to collect all shared libraries into a folder.
    And, write a shell script to export LD_LIBRARY_PATH.

    @appname=basename $0 | sed s,\.sh$,,
    dirname=$PWD/$appname
    LD_LIBRARY_PATH=$dirname
    echo LD_PATH=
    echo $LD_LIBRARY_PATH
    export LD_LIBRARY_PATH
    $dirname/$appname $*@

    And, put my application into the folder as well. However, when I run this application on another PC.
    I get "Segmentation Fault"!!

    Could you help me to know the reason?? The only library I don't put in is linux-gate.so.1.

    Thanks a lot.

    BR,
    Pico

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tony
      wrote on last edited by
      #2

      Well, I don't think that a missing library is a source for segfault. Anyway, you can check if there're some missing libraries using ldd.

      I think that your friend can be "strace" or "gdb". So you can give us more informations useful to help you.

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yshurik
        wrote on last edited by
        #3

        I recommend to check the list of linked shared libraries by "ldd -v myapp" on linux and "otool -L MyApp.app/Contents/MacOS/MyApp" on Mac. Then compare these lists on host and distribution system. It maybe some other library which have different version.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved