automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective C on Mac OS X


From: Martin Wagner
Subject: Re: Objective C on Mac OS X
Date: Mon, 14 Apr 2003 12:22:12 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

alexandre,

thanks a lot for your quick advice. automake now stopped complaining, but the dependency file .deps/main.Po (i have only a single input file, it's called main.m) contains only the following line:

# dummy

and when i try to compile my file, i get an error:

address@hidden:~/cvs/dwarf/build/src/services/Speaker $ make
if g++ -DHAVE_CONFIG_H -I. - -I/Users/wagnerm/cvs/dwarf/src/services/Speaker -I../../.. -g -O2 - -MT main.o -MD -MP -MF ".deps/main.Tpo" \ -c -o main.o `test -f '/Users/wagnerm/cvs/dwarf/src/services/Speaker/main.m' || echo '/Users/wagnerm/cvs/dwarf/src/services/Speaker/'`/Users/wagnerm/cvs/ dwarf/src/services/Speaker/main.m; \
then mv ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
cpp-precomp: could not open 'main.o'
make: *** [main.o] Error 1

i guess the compiler doesn't like the double occurence of main.o, but it's intended to be like that in the Makefile:

.m.o:
        if $(OBJCCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
          -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
        then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
        else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
        fi
#       source='$<' object='$@' libtool=no \
#       depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
#       $(OBJCDEPMODE) $(depcomp) \
#       $(OBJCCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<

any hint?

thanks,
martin.


Am Montag, 14.04.03 um 10:50 Uhr schrieb Alexandre Duret-Lutz:

On Mon, Apr 14, 2003 at 09:49:56AM +0200, Martin Wagner wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

all,

i am currently porting some autotoolized c++ code to mac os x, it all works fine. however, when i try to integrate some objective c code, i get a bunch
of errors i don't understand.

i did set OBJC=gcc, OBJCFLAGS='-O2 -g' and OBJCLDFLAGS='-lobjc' in my
configure.ac.

when i now try to call automake, it complains:

/sw//share/automake-1.7/am/depend2.am: am__fastdepOBJC does not appear in
AM_CONDITIONAL

Try the following in your configure.ac.

_AM_DEPENDENCIES([OBJC])

As the name says this is an internal function you should not use, but
(i) as long as neither Autoconf nor Automake offer an A[CM]_PROG_OBJC
check you'll have to call it yourself (ii) Automake's support for
Objective C isn't documented either.

- -----------------------------------------------------------
Martin Wagner
Institut fuer Informatik (I1), TU Muenchen
Boltzmannstr. 3, 85748 Garching b. Muenchen, Germany
Room:           01.07.057
Phone/Fax:      +49 (89) 289-18230 / -18207

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE+movYi1SNOfdVxJoRAtzVAJ90yw8Ax7BJDkbWUK88ULo2aqyTYQCghLum
lee6zmpZzWQy+5+tBoSybAw=
=OZB0
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]