simulavr-devel
[Top][All Lists]
Advanced

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

Re: [whitelist] Re: [Simulavr-devel] Further Make problems (SWIG again?)


From: nimrodx
Subject: Re: [whitelist] Re: [Simulavr-devel] Further Make problems (SWIG again?)
Date: Sun, 13 Aug 2006 22:44:20 +1000
User-agent: Thunderbird 1.5.0.5 (X11/20060719)

Hi Oleg and Others,
Thanks for all your help.

I think it compiled properly that time.

Any ideas on a quick way to test it?

Thanks,

Matt
OK, it is hard coded, so the fast solution is open src/Makefile.in and
fix python2.3 to python2.4, then *rerun* config.status (it seems you
don't have to rerun configure, just config.status)

Another solution is to try to set CPPFLAGS before running make or
configure, but Im not sure it helps.

The actual solution is to fix Makefile.am and update configure.ac to
discover python version, etc, but this is task to maintainer ;)

Oleg

On Sat, 2006-08-05 at 13:39 +1000, nimrodx wrote:
Hi All,

Oleg was right, it is a Python.h! The command below is looking for the includes in the wrong directory:

/usr/local/bin/swig -c++ -python -outdir python/ -o python/simulavr_wrap.cpp simulavr.i g++ -I. -I/usr/include/python2.3 python/simulavr_wrap.cpp application.o at4433.o at8515.o atmega128.o avrdevice.o avrerror.o avrmalloc.o decoder.o decoder_trace.o flash.o gdbserver.o hardware.o helper.o hwacomp.o hwad.o hweeprom.o hwextirq.o hwmegaextirq.o hwmegatimer.o hwmegatimer0123irq.o hwport.o hwspi.o hwsreg.o hwstack.o hwtimer.o hwtimer01irq.o hwuart.o hwwado.o ioregs.o irqsystem.o keyboard.o lcd.o memory.o mysocket.o net.o pin.o pinatport.o printable.o rwmem.o scope.o serialrx.o serialtx.o systemclock.o trace.o ui.o /usr/local/AVR/i686-pc-linux-gnu/avr/lib/libbfd.a /usr/local/AVR/lib/libiberty.a -lc -lm -lncurses -shared -o python/_simulavr.so

Note that the -I/usr/include/python2.3 is looking for a non-existent version. I have python2.4 installed.
How do I set "make" do it knows to go for python2.4 instead?


Thanks for your time,

Matt

nimrodx wrote:
Hi Oleg, Klaus, and Bill, and other Gurus

Well guys, since restarting, I am getting different error messages! Don't know why, but now I get this....


/bin/sh ../libtool --mode=link --tag=CXX g++ -O2 -g -O2 -o kbdgentables kbdgentables.o -lncurses
g++ -O2 -g -O2 -o kbdgentables kbdgentables.o  -lncurses
./kbdgentables
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I/usr/local/AVR/include -I/usr/local/AVR/i686-pc-linux-gnu/avr/include -I../src -I ../src -O2 -g -O2 -MT keyboard.lo -MD -MP -MF ".deps/keyboard.Tpo" -c -o keyboard.lo keyboard.cpp; \ then mv -f ".deps/keyboard.Tpo" ".deps/keyboard.Plo"; else rm -f ".deps/keyboard.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I/usr/local/AVR/include -I/usr/local/AVR/i686-pc-linux-gnu/avr/include -I../src -I ../src -O2 -g -O2 -MT keyboard.lo -MD -MP -MF .deps/keyboard.Tpo -c keyboard.cpp -fPIC -DPIC -o .libs/keyboard.o g++ -DHAVE_CONFIG_H -I/usr/local/AVR/include -I/usr/local/AVR/i686-pc-linux-gnu/avr/include -I../src -I ../src -O2 -g -O2 -MT keyboard.lo -MD -MP -MF .deps/keyboard.Tpo -c keyboard.cpp -o keyboard.o >/dev/null 2>&1
make[3]: *** [keyboard.lo] Error 1
make[3]: Leaving directory `/home/alphanax/Downloads/avr/simulavrxx-0.8.006/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/alphanax/Downloads/avr/simulavrxx-0.8.006/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/alphanax/Downloads/avr/simulavrxx-0.8.006/src'
make: *** [all-recursive] Error 1


I am embarrassed to be asking so many questions, and I really do appreciate your suggestions.

I had just restarted today, had made clean and made distclean, and then
./configure --prefix=/usr/local/AVR
then I ran make...and did not get the same errors as when I posted that message.

Beats me. Any ideas?

Thanks,

Matt



Oleg Batrashev wrote:
Hi,

I think you cut the wrong place from make output. I suppose you have
something like "Python.h not found" earlier in output, because
Py_InitModule is declared there.

On debian I have this file in python-dev package, and configure runs
cleanly without this package. So check (and/or install) development
files for python.

Oleg


On Wed, 2006-08-02 at 13:25 +1000, nimrodx wrote:
Hi Simulavr Gurus,

I have compiled and installed the latest development release of swig
1.3.29.
This has caused the previously mentioned problem with swig (-outdir option not available) to disappear.

Now I have the following error at make time:

python/simulavr_wrap.cpp: In function `void init_simulavr()':
python/simulavr_wrap.cpp:11934: `SwigMethods' undeclared (first use this
   function)
python/simulavr_wrap.cpp:11936: `Py_InitModule' undeclared (first use this
   function)
python/simulavr_wrap.cpp:11943: `SWIG_From_int' undeclared (first use this
   function)
make[3]: *** [python/_simulavr.so] Error 1
make[3]: Leaving directory `/home/alphanax/Downloads/avr/simulavrxx-0.8.006/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/alphanax/Downloads/avr/simulavrxx-0.8.006/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/alphanax/Downloads/avr/simulavrxx-0.8.006/src'
make: *** [all-recursive] Error 1

What next?  Do I need a slightly earlier release of swig?

I think I am making progress here, and I greatly appreciate your help.

Thanks,

Matt



_______________________________________________
Simulavr-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/simulavr-devel

_______________________________________________
Simulavr-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/simulavr-devel


_______________________________________________
Simulavr-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/simulavr-devel







reply via email to

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