Results 1 to 8 of 8

Thread: Segmentation fault running any QT4 executables

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

    Question Segmentation fault running any QT4 executables

    Suse Linux 8.2
    QT3 also installed (including developer modules) /usr/lib/qt3

    Environment Variables
    LD_LIBRARY_PATH="/usr/local/Trolltech/Qt-4.2.3/lib:"

    PATH=
    "/usr/localTrolltech/Qt-4.2.3/bin:
    /sbin:
    /usr/sbin:
    /usr/local/sbin:
    /root/bin:
    /usr/local/bin:
    /usr/bin:
    /usr/X11R6/bin:
    /bin:
    /usr/games:
    /opt/gnome2/bin:
    /opt/gnome/bin:
    /opt/kde3/bin:
    /usr/lib/java/bin:
    /opt/gnome/bin:
    /usr/local/mysql/bin" (line breaks added to make more readable)

    QTDir= "/usr/local/Torlltech/Qt-4.2.3" (no longer required?)

    QTMAKESPEC is not defined

    Installation steps
    ./configure
    gmake
    gmake install
    (I did not see any errors. It took quite a while as it crunched through everything)

    Results when I run any QT executable
    qtdemo Segmentation fault
    designer Segmentation fault
    assistant Segmentation fault
    qtdonfig Segmentation fault
    Sodoku Segmentation fault (game I was trying to play that requires QT4)

    I tried mutiple times (after running gmake distclean)

    Thank-You in advance for any advise you can give

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Segmentation fault running any QT4 executables

    I believe you may have another installation of Qt installed.
    Make sure you don't have any other accessible Qt library( or tool ) in the path when you build your current release.

  3. #3
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Segmentation fault running any QT4 executables

    An obscure error, but check to see that Qt isn't registered with pkg-config. A lot of distros will do this, then qmake will snarf that up and use it.

    Run "pkg-config --libs QtCore" and see if there is any output. If there is, it means there is a distro-supplied Qt4 that will interfer with other Qt 4 installations. This is true under K/Ubuntu, but I'm not sure about SuSE. If this is your case, uninstall the distro supplied Qt.

    This has been logged as a bug with Trolltech.

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

    Default Re: Segmentation fault running any QT4 executables

    Thank-You
    I will try the suggestions and let you know.

    A little additional info.
    I tried uninstalling everything QT3 related using YaST (SuSE's package installer)
    System locked up and I lost the ability to access any GUI environments unitl I reinstalled QT3. (YaST did warn me that there would be broken dependencies but I wasn't scared)

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Segmentation fault running any QT4 executables

    Quote Originally Posted by jellis View Post
    I tried uninstalling everything QT3 related using YaST (SuSE's package installer)
    Qt3 and Qt4 can live together peacefully. The problem might occur if you have two Qt4 versions or when you have upgraded one of the libraries that Qt4 depends on.

  6. The following user says thank you to jacek for this useful post:

    jellis (24th May 2007)

  7. #6
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Segmentation fault running any QT4 executables

    Quote Originally Posted by Brandybuck View Post
    An obscure error, but check to see that Qt isn't registered with pkg-config. A lot of distros will do this, then qmake will snarf that up and use it.
    Correction. This bug only appears with 4.3.0beta (not sure about rc1). It's not an issue with 4.2.3.

  8. The following user says thank you to Brandybuck for this useful post:

    jellis (24th May 2007)

  9. #7
    Join Date
    May 2007
    Posts
    3
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Segmentation fault running any QT4 executables

    Follow-up to suggestions, wrap up thread
    firstly, Thank-You

    QT not in pkg-config
    No other QT4 installs
    Understand QT3 can live side-by-side with QT4 but since something seems to be conflicting and no other QT4 install exists that was the most obvious desperation guess.
    Did my best to look for other QT libs in my PATH, none that I could see.

    Resolution
    I replaced the hard drive and loaded SuSE 10
    Followed the same steps as under SuSE 8.2
    Worked fine

    Went back to SuSE 8.2 drive.
    Cleaned out prior install.
    Followed same steps that worked for SuSE 10.
    Same Segmentation Fault error on all QT executables.

    No further suggestions required (unless you think it will help someone else)
    Seems to be a conflict in SuSe 8.2
    Most likely something in bin PATH or lib PATH but I could not see it.

    ouch, I just wanted to try a Sudoku game from Sourceforge.
    Turned into a week long project.
    The game wasn't fun anyway.
    On the bright side I probably gained some knowledge.

  10. #8
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Segmentation fault running any QT4 executables

    SuSE 8.2 is significantly older than 10.x.
    Maybe there are Qt dependencies are too old to work. I know there is hard to track down these dependencies, but maybe you can find a list of Qt requirements and do a cross check with what SuSE 8.2 has installed.

    Regards

  11. The following user says thank you to marcel for this useful post:

    jellis (24th May 2007)

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.