PDA

View Full Version : Segmentation fault running any QT4 executables



jellis
14th May 2007, 14:02
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

marcel
14th May 2007, 19:04
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.

Brandybuck
14th May 2007, 19:51
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.

jellis
14th May 2007, 20:29
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)

jacek
14th May 2007, 20:32
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.

Brandybuck
15th May 2007, 00:23
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.

jellis
19th May 2007, 15:57
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.

marcel
19th May 2007, 16:35
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