LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-20-2004, 10:37 AM   #1
poboy975
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake 10.1
Posts: 9

Rep: Reputation: 0
Unhappy qt compile cannot find lstdc++


Hello, I'm trying to install kde3.3 from the konstruct command ' cd meta/kde;make install' it ran and downloaded a bunch of stuff, then tried to compile qt, and all I get is this error, here is everything it says about qt from start to finish



This is the Qt/X11 Free Edition.

You are licensed to use this software under the terms of either
the Q Public License (QPL) or the GNU General Public License (GPL).

Type 'Q' to view the Q Public License.
Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license?
Creating qmake. Please wait...
gmake[5]: Entering directory `/home/durlon/linux/kde/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.3/qmake'
g++ -o qmake project.o property.o main.o makefile.o unixmake2.o unixmake.o msvc_nmake.o borland_bmake.o mingw_make.o msvc_dsp.o msvc_vcproj.o option.o winmakefile.o projectgenerator.o metrowerks_xml.o pbuilder_pbx.o msvc_objectmodel.o meta.o qtmd5.o qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o qdatastream.o qgarray.o qbuffer.o qglist.o qptrcollection.o qfile.o qfile_unix.o qregexp.o qgvector.o qgcache.o qbitarray.o qdir.o quuid.o qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o qconfig.o qunicodetables.o qsettings.o qlocale.o
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
gmake[5]: *** [qmake] Error 1
gmake[5]: Leaving directory `/home/durlon/linux/kde/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.3/qmake'
qmake failed to build. Aborting.
make[4]: *** [configure-work/qt-x11-free-3.3.3/configure] Error 2
make[4]: Leaving directory `/home/durlon/linux/kde/konstruct/libs/qt-x11-free'
make[3]: *** [dep-../../libs/qt-x11-free] Error 2
make[3]: Leaving directory `/home/durlon/linux/kde/konstruct/libs/arts'
make[2]: *** [dep-../../libs/arts] Error 2
make[2]: Leaving directory `/home/durlon/linux/kde/konstruct/kde/kdelibs'
make[1]: *** [dep-../../kde/kdelibs] Error 2
make[1]: Leaving directory `/home/durlon/linux/kde/konstruct/kde/kdebase'
make: *** [dep-../../kde/kdebase] Error 2



I would appreciate any help, I'm a little new to linux, I've searched on google for solutions but havent seen anything that either fits exactly, or the poster assumes that the reade knows the commands to type. I dont know all the commands, and am not sure where to find them. please dont just tell me that this is beyond a newbie, this is the best way to learn, by having to jump in with both feet.
 
Old 12-20-2004, 10:41 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
The problem is that you don't have the libstdc++ library installed where ld can find it. libstdc++ is a part of the C++ compiler (hence a part of the GNU compiler collection), and includes the standard C++ libraries.

The easiest way to fix this is to find out which gcc package(s) you are missing and then install it(them).
 
Old 12-20-2004, 10:47 AM   #3
poboy975
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake 10.1
Posts: 9

Original Poster
Rep: Reputation: 0
ok, thanks, I got it fixed, now a new problem further down the install. there is the error

In file included from kernel/qtaddons_x11.cpp:25:
kernel/qt_x11_p.h:66:22: X11/Xlib.h: No such file or directory
kernel/qt_x11_p.h:71:23: X11/Xutil.h: No such file or directory
kernel/qt_x11_p.h:72:21: X11/Xos.h: No such file or directory
kernel/qt_x11_p.h:73:23: X11/Xatom.h: No such file or directory
make[6]: *** [.obj/release-shared-mt/qtaddons_x11.o] Error 1
make[6]: Leaving directory `/home/durlon/linux/kde/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.3/src'
make[5]: *** [sub-src] Error 2
make[5]: Leaving directory `/home/durlon/linux/kde/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.3'
make[4]: *** [build-work/qt-x11-free-3.3.3/Makefile] Error 2
make[4]: Leaving directory `/home/durlon/linux/kde/konstruct/libs/qt-x11-free'
make[3]: *** [dep-../../libs/qt-x11-free] Error 2
make[3]: Leaving directory `/home/durlon/linux/kde/konstruct/libs/arts'
make[2]: *** [dep-../../libs/arts] Error 2
make[2]: Leaving directory `/home/durlon/linux/kde/konstruct/kde/kdelibs'
make[1]: *** [dep-../../kde/kdelibs] Error 2
make[1]: Leaving directory `/home/durlon/linux/kde/konstruct/kde/kdebase'
make: *** [dep-../../kde/kdebase] Error 2

Last edited by poboy975; 12-20-2004 at 10:57 AM.
 
Old 01-08-2005, 01:03 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Quote:
Originally posted by poboy975
kernel/qt_x11_p.h:66:22: X11/Xlib.h: No such file or directory
You are missing the file $(INCLUDE)/X11/Xlib.h, which is usually found in the XFree86-devel or XOrg-devel packages.
 
  


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
compile can't find kdelibs, but I can??? timsch75 Linux - Software 12 05-26-2005 04:10 AM
Compile errors involving lstdc++ kmullin Programming 0 05-25-2004 01:21 PM
g++ error lstdc++ develinux Programming 3 04-22-2004 12:50 PM
Installing Iperf >>cannot find -lstdc++!!!! RKris Linux - Software 1 12-16-2002 12:26 PM
Qt and lstdc++ Half_Elf Linux - Software 2 04-04-2002 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:49 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
Open Source Consulting | Domain Registration