Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-15-2005, 02:05 AM   #1
Registered: Dec 2004
Location: California
Distribution: Red Hat 9
Posts: 51

Rep: Reputation: 15
General question while running make "make[2]: *** [main.o] Error 1"

make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/matthew/helloworld4/helloworld4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/matthew/helloworld4'
make: *** [all] Error 2

I get this error message (or something like it) a lot whenever a program i'm installing fails to run make.

I would like to know what this error means and what to do about it when I get it.

Any help would be appreciated.

On a more specific note I am just starting to learn C++ and tried to run the HelloWorld program with Qt using Kdevelop. The source was cut&pasted from the manual:

#include <qapplication.h>
#include <qpushbutton.h>

int main( int argc, char **argv )
QApplication a( argc, argv );

QPushButton hello( "Hello world!" );
hello.resize( 100, 30 );

a.setMainWidget( &hello );;
return a.exec();

I went:
Build>Auto Config & auto Make

Then the above error.

Any help is appreciated.


P.S. To all of you who take you time out to answer newbie questions
Thank you.
It's gestures like that that make me still believe in the human race.
Old 08-15-2005, 03:28 AM   #2
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
You need to post up farther, the needed output is before where you started posting ( go up about 15 or 20 lines and post from there down).
Old 08-15-2005, 11:49 AM   #3
Registered: Dec 2004
Location: California
Distribution: Red Hat 9
Posts: 51

Original Poster
Rep: Reputation: 15
[matthew@localhost helloworld4]$ make
cd . \
/bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
make all-recursive
make[1]: Entering directory `/home/matthew/helloworld4'
Making all in helloworld4
make[2]: Entering directory `/home/matthew/helloworld4/helloworld4'
source='helloworld4view.cpp' object='helloworld4view.o' libtool=no \
depfile='.deps/helloworld4view.Po' tmpdepfile='.deps/helloworld4view.TPo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.1/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -c -o helloworld4view.o `test -f helloworld4view.cpp || echo './'`helloworld4view.cpp
source='helloworld4doc.cpp' object='helloworld4doc.o' libtool=no \
depfile='.deps/helloworld4doc.Po' tmpdepfile='.deps/helloworld4doc.TPo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.1/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -c -o helloworld4doc.o `test -f helloworld4doc.cpp || echo './'`helloworld4doc.cpp
helloworld4doc.cpp: In member function `bool Helloworld4Doc:penDocument(const
KURL&, const char*)':
helloworld4doc.cpp:145: warning: unused parameter `const char*format'
helloworld4doc.cpp: In member function `bool Helloworld4Doc::saveDocument(const
KURL&, const char*)':
helloworld4doc.cpp:159: warning: unused parameter `const KURL&url'
helloworld4doc.cpp:159: warning: unused parameter `const char*format'
source='helloworld4.cpp' object='helloworld4.o' libtool=no \
depfile='.deps/helloworld4.Po' tmpdepfile='.deps/helloworld4.TPo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.1/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -c -o helloworld4.o `test -f helloworld4.cpp || echo './'`helloworld4.cpp
source='main.cpp' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/lib/qt-3.1/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -c -o main.o `test -f main.cpp || echo './'`main.cpp
main.cpp: In function `int main(int, char**)':
main.cpp:8: no matching function for call to `QPushButton::QPushButton(const
/usr/lib/qt-3.1/include/qpushbutton.h:134: candidates are:
QPushButton::QPushButton(const QPushButton&)
QPushButton::QPushButton(const QIconSet&, const QString&, QWidget*, const
char* = 0)
QPushButton::QPushButton(const QString&, QWidget*, const char* = 0)
QPushButton::QPushButton(QWidget*, const char* = 0)
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/matthew/helloworld4/helloworld4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/matthew/helloworld4'
make: *** [all] Error 2

I still would like to know what the last part of the error means by itself.
If not for now then for future reference.

Old 08-15-2005, 12:39 PM   #4
Registered: Dec 2003
Location: Fresno
Distribution: Gentoo Ricer
Posts: 85

Rep: Reputation: 15
You might need to install the libraries and/or development packages for QT from the Red Hat disc, or get the RPMs from That QPushButton stuff is a function that is being called by the Hello World program that comes with KDevelop.

You can do a search for 'qt-devel', with radio button "Search for rpms by name. " selected.


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
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
Error "make: *** No rule to make target `install'. Stop." help Ohmn Mandriva 8 07-02-2004 07:02 PM
error running "make" and "arkollonrc"... Toro Linux - Software 1 04-19-2004 12:24 AM
help with "make" error "Missing seperator" hrishikesh Linux - Software 1 07-18-2003 01:40 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM > Forums > Linux Forums > Linux - Software

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