Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-24-2008, 12:40 AM   #1
Registered: Sep 2006
Posts: 32

Rep: Reputation: 15
setting environmental variable for Qt 4 on slackware

i have installed Qt 4 without GUI the installation has done successfully qmake -project, qmake, make everything working fine. while executing the output script getting segmentation fault it doesnt show any errors.
Just I have running sample program to test verify the proper installation.

Here is the code

#include <QCoreApplication>
#include <QtDebug>
int main(int argc,char*argv[])
QCoreApplication app(argc,argv);
qDebug ()<<"Running";
return app.exec();

The output shows "withinmain" with segmentation fault error

what could be the wrong? Please help me

root@myami:/home/pr# ldd pr => (0xbfffe000) => /usr/local/Trolltech/Qt-4.4.0/lib/ (0xb765b000) => /usr/lib/ (0xb75e8000) => /usr/lib/ (0xb75da000) => /usr/lib/ (0xb74f3000) => /usr/local/Trolltech/Qt-4.4.0/lib/ (0xb72b9000) => /lib/ (0xb72af000) => /lib/ (0xb72ab000) => /lib/ (0xb7294000) => /usr/lib/ (0xb71b0000) => /lib/ (0xb718a000) => /usr/lib/ (0xb717f000) => /lib/ (0xb7032000) => /usr/lib/ (0xb701e000) => /usr/lib/ (0xb701b000) => /usr/lib/ (0xb7019000) => /usr/lib/ (0xb7002000)
/lib/ (0xb7f30000) => /usr/lib/ (0xb6ffc000)

installation path: /usr/local/Trolltech/Qt-4.4.0/
Old 07-24-2008, 07:43 AM   #2
Registered: Jun 2008
Location: Phoenix, Arizona, USA
Distribution: Slackware
Posts: 328

Rep: Reputation: 51
There are several possibilities but you didn't include some necessary info so we can't help much:

1. What version of Slackware are you running?
2. Is the old Qt installation removed? You installed in /usr/local, default will be either /usr or /opt.

Other than that, this is definitely not a newbie problem and you should probably go ask in a Qt forum.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
environmental variable myfoot Fedora 1 01-31-2008 06:36 PM
Help: Linux Environmental Variable jkkunil Programming 2 08-01-2007 05:14 PM
linux environmental variable surender Linux - General 2 05-07-2007 08:54 AM
Setting an environmental variable maevious Linux - Newbie 6 11-24-2005 05:15 PM
setting environmental variable cc to a working compiler blathen Linux - Newbie 2 10-27-2003 01:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration