Hi all, I have the ActiveState distribution of Tcl/Tk, installed in directory /opt/ActiveTcl.
Ever since I started trying out simulavr a couple of weeks ago, the compilation of src/simulavr_wrap.cxx fails to find the Tcl header files, and I have had to hack the src/Makefile by hand every time after running 'configure' to make it compile. Finally I have worked out a patch for src/Makefile.am that I can apply once and for all. All the patch does is to take the default make rule for '.cxx.lo' and expand the LTCXXCOMPILE macro by hand, adding the TCL_INCLUDE macro at the right place. The patch is made against the latest version in CVS, and is attached to this message. I have one more problem: the linking stage of examples/stdiodemo fails with a couple of undefined references to '__mulhi3', which I imagine is part of gcc's implementation of multiplication on the AVR target. Does anyone know a fix for this one? I am running an up-to-date Fedora Core 9 Linux system, which has the following AVR-related software installed: avrdude-5.5-3.fc9.i386 avr-gdb-6.6-8.fc9.i386 avr-binutils-2.18-2.fc9.i386 avr-gcc-4.3.3-1.fc9.i386 avr-libc-docs-1.6.4-1.fc9.noarch avr-libc-1.6.4-1.fc9.noarch avr-gcc-c++-4.3.3-1.fc9.i386
--- src/Makefile.am 2009-04-11 10:31:04.000000000 +0100 +++ ../simulavrxx-orig/src/Makefile.am 2009-04-11 03:47:24.000000000 +0100 @@ -70,11 +70,8 @@ simulavr_wrap.cxx: simulavr.i $(TCLHEADER) @SWIG@ -o $@ $(srcdir)/simulavr.i -#simulavr_wrap.o: simulavr_wrap.cxx -# $(CXX) -I$(SRCDIR) -I$(TCL_INCLUDE) -c $< - -simulavr_wrap.lo: simulavr_wrap.cxx - $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(TCL_INCLUDE) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT $@ -MD -MP -MF .deps/simulavr_wrap.Tpo -c -o $@ $< +simulavr_wrap.o: simulavr_wrap.cxx + $(CXX) -I$(SRCDIR) -I$(TCL_INCLUDE) -c $< $(srcdir)/keyboard.cpp : $(srcdir)/keytrans.h
_______________________________________________ Simulavr-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/simulavr-devel
