Using other compilers....

Tomasz Kowalczyk tomasz at gen.co.jp
Tue Oct 19 02:41:46 BST 1999


And what about using something else than gcc ?

I have unsuccessfully been trying to compile with CC on IRIX 6.5. I do it like
this:

1. using kdevelop, I generate a Qt project. Then, I leave kdevelop
2. cd to the project directory, make distclean
3. CC=cc, CXX=CC
4. gmake -f Makefile.dist
5. ./configure

everything ok so far, not a single error. Then, I try

6. gmake

and it fails miserably with:

cd . && autoheader
gmake  all-recursive
gmake[1]: Entering directory `/hosts/bombay/usr3/tomasz/src/KDE/qtproject'
Making all in qtproject
gmake[2]: Entering directory
`/hosts/bombay/usr3/tomasz/src/KDE/qtproject/qtproject'
CC -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/qt-2.0.2/include      -O2 -g -c
qtprojectview.cpp

Command-line error(1574): invalid macro definition:

Error(1005): could not open source file ".deps/qtprojectview.pp"

2 catastrophic errors detected in the compilation of ".deps/qtprojectview.pp".
Compilation terminated.
gmake[2]: *** [qtprojectview.o] Error 2
gmake[2]: Leaving directory
`/hosts/bombay/usr3/tomasz/src/KDE/qtproject/qtproject'gmake[1]: ***
[all-recursive] Error 1
gmake[1]: Leaving directory `/hosts/bombay/usr3/tomasz/src/KDE/qtproject'
gmake: *** [all-recursive-am] Error 2

After digging into the makefile, I found out that it tries to generate that
unfortunate ".deps/qtprojectview.pp" in a way which definitely is not going to work
with my CC. Who is to be blamed: me or not me ? And what can I do ?

Tomek

holle at almaden.ibm.com wrote:

> Easy, as long as you use gcc as a cross-compiler:
>
> The gcc frontend selects its mid- and back-ends with the -V <version> and -b
> <architechture> switches.
> Set up the cross gcc and make sure that you do not overwrite /usr/bin/gcc
> /usr/bin/g++ (make backups first).
> I.e. gcc should still compile for your machine without switches but if you do
> e.g. gcc -V 2.8.1 -b m68k-unknown-coff
> you would have the "normal" front-end select the backend for a m68k coff system
> and use the compiler version 2.8.1 . Now go to kdevelop's men ubar, select
> project->options(F7)->compiler options and add the -V and -b switches with the
> according parameters in the field at the bottom, called "additional parameters".
> If you are not sure what version / architechture identifiers you should use, go
> to /usr/lib/gcc-lib and check out the subdirectories there as well as their
> subdirs:
> /usr/lib/gcc-lib/<architecture identifier>/<version identifier>
> You may have installed a version in /usr/local/lib/gcc-lib -- the structure is
> the same.
>
> - holger
>
> ian reinhart geiser <geiseri at msoe.edu> on 17/10/99 09:43:36
>
> Please respond to kdevelop at barney.cs.uni-potsdam.de
>
> To:   kdevelop at barney.cs.uni-potsdam.de
> cc:
> Subject:  Using other compilers....
>
> I do alot of cross development.
> how could I set KDevelop to use a different compiler?
>
> -ian reinhart geiser
>
> .-----------------------------------------------------------.
> |[]                   NeXT Generation                    [X]|
> |--------------------------,--------------------------------.
> |  UNIX GEEK,              | Office:    I have none...      |
> |  Macintosh Specialist @  | Phone:     414.277.7288        |
> |  Milwaukee School of     |                                |
> |        Engineering       |--------------------------------|
> |                          |                                |
> |   ian reinhart geiser    | phone:   414.220.9683          |
> |   Apt #5                 | email:   geiseri at msoe.edu      |
> |   828 N Milwaukee St     | web:     www.msoe.edu/~geiseri |
> |   Milwaukee, WI 53202    |  NeXT/Be/Cyberdog Mail okay!   |
> |                          |   MIME or BinHex preferred     |
> |--------------------------'--------------------------------|
> '-----------------------------------------------------------'






More information about the KDevelop mailing list