LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-23-2008, 11:40 PM   #1
geetha_sg
Member
 
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[])
{
qDebug()<<"WithinMain";
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
linux-gate.so.1 => (0xbfffe000)
libQtGui.so.4 => /usr/local/Trolltech/Qt-4.4.0/lib/libQtGui.so.4 (0xb765b000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb75e8000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb75da000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb74f3000)
libQtCore.so.4 => /usr/local/Trolltech/Qt-4.4.0/lib/libQtCore.so.4 (0xb72b9000)
librt.so.1 => /lib/librt.so.1 (0xb72af000)
libdl.so.2 => /lib/libdl.so.2 (0xb72ab000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7294000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb71b0000)
libm.so.6 => /lib/libm.so.6 (0xb718a000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb717f000)
libc.so.6 => /lib/libc.so.6 (0xb7032000)
libz.so.1 => /usr/lib/libz.so.1 (0xb701e000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb701b000)
libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7019000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7002000)
/lib/ld-linux.so.2 (0xb7f30000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6ffc000)

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

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.

Mike
 
  


Reply



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 05:36 PM
Help: Linux Environmental Variable jkkunil Programming 2 08-01-2007 04:14 PM
linux environmental variable surender Linux - General 2 05-07-2007 07:54 AM
Setting an environmental variable maevious Linux - Newbie 6 11-24-2005 04:15 PM
setting environmental variable cc to a working compiler blathen Linux - Newbie 2 10-27-2003 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:47 PM.

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