LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-15-2005, 02:05 AM   #1
matazar42
Member
 
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 );
hello.show();
return a.exec();
}



I went:
Build>Auto Config & auto Make
./configure
make

Then the above error.

Any help is appreciated.

-Matthew




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
__J
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
matazar42
Member
 
Registered: Dec 2004
Location: California
Distribution: Red Hat 9
Posts: 51

Original Poster
Rep: Reputation: 15
[matthew@localhost helloworld4]$ make
cd . \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
/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
char[13])'
/usr/lib/qt-3.1/include/qpushbutton.h:134: candidates are:
QPushButton::QPushButton(const QPushButton&)
/usr/lib/qt-3.1/include/qpushbutton.h:66:
QPushButton::QPushButton(const QIconSet&, const QString&, QWidget*, const
char* = 0)
/usr/lib/qt-3.1/include/qpushbutton.h:65:
QPushButton::QPushButton(const QString&, QWidget*, const char* = 0)
/usr/lib/qt-3.1/include/qpushbutton.h:64:
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
number9
Member
 
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 rpm.pbone.net. 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' rpm.pbone.net, with radio button "Search for rpms by name. " selected.
 
  


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
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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration