PDA

View Full Version : Mandrake 8.2 Make Error



mijohnst
05-17-2002, 02:32 AM
I'm having 2 problems that I just can't figure out.

First, I'm trying to make QT, but I keep getting this error.

make[1] : Entering directory '/usr/lib/qt-2.3.2'
cd src/moc; make
make [2] : Entering directory '/usr/lib/qt-2.3.2/src/moc'
Makefile:21 *** missing separator. Stop.
make[2] Leaving directory '/usr/lib/qt-2.3.2/src/moc'
make[1] *** [src-moc] Error 2
make [1] Leaving directory '/usr/lib/qt-2.3.2/
make: *** [init] Error 2


Second, I'm a bit confused about what I need to add into this file:

/usr/lib/qt-2.3.2/configs/linux-g++-shared

I can't find any RPM installed on my machine that is just called g++. Is it talking about c++? This is what I'm reading:

Edit the file "qt-src/configs/linux-g++-shared and change all references from "gcc" to "gcc-3.0.1" as well as "g++" to "g++-3.0.1" (lines 3, 4, 35, and 59). Save your changes.


Any help would be great... and thanks again!

Mr. Suspicious
05-17-2002, 04:41 AM
Second, I'm a bit confused about what I need to add into this file:

/usr/lib/qt-2.3.2/configs/linux-g++-shared


1.4 Editting linux-g++-shared
edit the file "qt-src/configs/linux-g++-shared" and change all references to "gcc" to "gcc3" as well as "g++" to "g++3" (lines 3, 4, 35, and 59). save your changes (ctrl-o, ctrl-x)

Code:

[]# pico -w /usr/lib/qt-2.3.2/configs/linux-g++-shared

Don't think it can be more specific then is stated. It even tells you what lines to look at to change. If this is to hard to understand, I suggest you do some research about the Linux Operating system or buy a good book.

mijohnst
05-17-2002, 06:30 PM
I'm still getting this error though... any ideas? I'm following the instructions as best as I know how... :(


make[1] : Entering directory '/usr/lib/qt-2.3.2'
cd src/moc; make
make [2] : Entering directory '/usr/lib/qt-2.3.2/src/moc'
Makefile:21 *** missing separator. Stop.
make[2] Leaving directory '/usr/lib/qt-2.3.2/src/moc'
make[1] *** [src-moc] Error 2
make [1] Leaving directory '/usr/lib/qt-2.3.2/
make: *** [init] Error 2

Mr. Suspicious
05-17-2002, 07:02 PM
Check if your Makefile is not all garbled up (as suggested in http://seq.sourceforge.net/showthread.php?s=&threadid=513&highlight=missing+separator)

[]# cd /usr/lib/qt-2.3.2
[]# pico Makefile

(Makefile being case sensitive)

Line 21 should be:



src-moc: .buildopts symlinks FORCE
cd src/moc; $(MAKE)
-rm -f bin/moc
cp src/moc/moc bin/moc


For further reference you could browse around at http://www.trolltech.com or more specifically the QT Installation FAQ (http://www.trolltech.com/developer/faqs/installation.html)

mijohnst
05-18-2002, 12:36 AM
Okay I did the changes that you posted for me and this is the new error that I got... I think we are making progress... ;) At least I hope...


Make[2]: Entering directory '/usr/lib/qt-2.3.2'
cd src/moc; make
make[2]: Entering directory '/usr/lib/qt-2.3.2/src/moc'
g++3 -c -I/usr/lib/qt-2.3.2/include -Who-unused -Who-parentheses -pipe -02 -Wall -W -DQT_NO_CODECS -DQT_LITE_UNICODE -I../../include -I../tools -I. -o mocgen.o mocgen.cpp
make[2]: g++3: Command not found
make[2]: *** [mocgen.o] Error 127
make[2]: Leaving directory '/usr/lib/qt-2.3.2/src/moc'
make[1]: *** [src-moc] Error 2
make[1]: Leaving directory '/usr/lib/qt-2.3.2'
make: *** [init] Error 2

mijohnst
05-18-2002, 12:54 AM
I went back into the linux-g++-shared file and changed the g++3 and gcc3 back to g++ and gcc and it seems to be compiling now...

Is that normal? did I compile with it wrong versions and it just let me?

Mr. Suspicious
05-18-2002, 05:59 AM
You sure you installed all of the packages specified in the HOWTO? Specifically:

gcc3
gcc3-c++

mijohnst
05-18-2002, 10:03 AM
I am positive that they are installed... I installed the whole list lf RPM's from this post:

http://www.hackersquest.org/boards/viewtopic.php?t=275

I had no errors after I insalled them. It seems that this morning it has finished compiling and I have the "Enjoy! the Trolltech team" message. Does that mean it's installed correctly? Thank you again for your help... :)

mijohnst
05-19-2002, 12:20 AM
Well, I let it compile by running this:

make -f Makefile.dist && ./configure && make -j3 && make install

and I have a ton of those now:

/usr/lib/qt-2.3.2/include/qstring.h:650: undefined reference to 'Qstring::shared_null'

What are I dong wrong? Am I missing something?