LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-24-2008, 12:40 AM   #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, 07:43 AM   #2
storkus
Member
 
Registered: Jun 2008
Location: Phoenix, Arizona, USA
Distribution: Slackware
Posts: 326

Rep: Reputation: 49
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


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


All times are GMT -5. The time now is 05:26 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration