[Tinyos-help] Compile Error / No Targets / TinyOs 2.x
Jan Gäbler
jgaebler at informatik.tu-cottbus.de
Sun Oct 7 02:34:07 PDT 2007
Hello together,
i use the default Makefiles shiped within the tinyos-2.x distribution. You
can find these two files below (one from the ../apps/Blink directory and
from the main ../apps/ directory).
Makefile in ../apps/Blink:
COMPONENT=BlinkAppC
include $(MAKERULES)
Makefile in ../apps:
#-*-makefile-*-2.x distribution. You can find these two files below (one
from the ../apps/Blink directory and from the main ../apps/ directory).
Makefile in ../apps/Blink:
######################################################################
#
# Makes the entire suite of TinyOS applications for a given platform.
#
# Author: Martin Turon
# Date: August 18, 2005
#
######################################################################
# $Id: Makefile,v 1.4 2006/12/12 18:22:48 vlahan Exp $
# MAKECMDGOALS is the way to get the arguments passed into a Makefile ...
TARGET=$(MAKECMDGOALS)
NESDOC_TARGET=$(filter-out nesdoc,$(TARGET))
# Here is a way to get the list of subdirectories in a Makefile ...
ROOT=.
SUBDIRS := $(shell find * -type d)
# Okay, match any target, and recurse the subdirectories
%:
@for i in $(SUBDIRS); do \
HERE=$$PWD; \
if [ -f $$i/Makefile ]; then \
echo Building ... $(PWD)/$$i; \
echo make $(TARGET); \
cd $$i; \
$(MAKE) $(TARGET); \
cd $$HERE; \
fi; \
done
BASEDIR = $(shell pwd | sed 's@\(.*\)/apps.*$$@\1@' )
# The output directory for generated documentation
DOCDIR = $(BASEDIR)/doc/nesdoc
nesdoc:
@echo This target rebuilds documentation for all known platforms.
@echo It DOES NOT overwrite any existing documentation, thus, it
@echo is best run after deleting all old documentation.
@echo
@echo To delete all old documentation, delete the contents of the
@echo $(DOCDIR) directory.
@echo
@echo Press Enter to continue, or ^C to abort.
@read
for platform in `ncc -print-platforms`; do \
$(MAKE) $$platform docs.nohtml.preserve; \
nesdoc -o $(DOCDIR) -html -target=$$platform; \
done
On Fri, 05 Oct 2007 17:19:17 +0200, <raysaikat at gmail.com> wrote:
> What's your MAKEFILES?
>
> Sent via BlackBerry from T-Mobile
>
> -----Original Message-----
> From: Jan Gäbler <jgaebler at informatik.tu-cottbus.de>
>
> Date: Fri, 05 Oct 2007 15:16:49
> To:tinyos-help at Millennium.Berkeley.EDU
> Subject: [Tinyos-help] Compile Error / No Targets / TinyOs 2.x
>
>
> Hallo together,
>
> I have recently installed tinyos-2.x on my fedora7 system, according the
> manual from the tinyos homepage. this works overall fine, but i'm unable
> to compile the simple Blink application. During compiling, i will receive
> the followning output:
>
> -----------------------------------------------
>
> cd /opt/tinyos-2.x/apps/Blink/
> [jgaebler at bruno Blink]$ make mica2
> mkdir -p build/mica2
> compiling BlinkAppC to a mica2 binary
> ncc -o build/mica2/main.exe -Os -finline-limit=100000 -Wall -Wshadow
> -Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb
> -DIDENT_PROGRAM_NAME=\"BlinkAppC\" -DIDENT_USER_ID=\"jgaebler\"
> -DIDENT_HOSTNAME=\"bruno.brunoswel\" -DIDENT_USER_HASH=0x83826e18L
> -DIDENT_UNIX_TIME=0x47062fd4L -DIDENT_UID_HASH=0xb9008941L
> -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
> -fnesc-dump='referenced(interfacedefs, components)'
> -fnesc-dumpfile=build/mica2/wiring-check.xml BlinkAppC.nc -lm
> Unknown target mica2
> Known targets for TinyOS directory /opt/tinyos-2.x/tos
> and the specified include directories are:
> none.
> make: *** [exe0] Fehler 2
>
> -----------------------------------------------
>
> I have installed the complete tool chain for avr and msp430 processors,
> because we want use both types in our project. To solve the problems, i
> run the tos-check-env script and receive the messages below:
>
> [jgaebler at bruno Blink]$ tos-check-env
> Path:
> /opt/msp430/bin
> .
> /usr/local/java/bin/
> /usr/kerberos/bin
> /usr/local/java/bin/
> /usr/lib/ccache
> /usr/local/bin
> /usr/bin
> /bin
> /opt/msp430/bin
> /home/jgaebler/bin
> /opt/msp430/bin
>
> Classpath:
> /opt/tinyos-2.x/support/sdk/java/tinyos.jar
> .
> rpms:
> /bin/rpm
> msp430tools-jtag-lib-20031101cvs-20050610
> avr-binutils-2.15tinyos-3
> automake16-1.6.3-12
> imake-1.0.2-4.fc7
> automake14-1.4p6-15.fc7
> msp430tools-gcc-3.2.3-20050607
> nesc-1.2.8a-1
> tinyos-tools-1.2.4-3
> avarice-2.4-1
> make-3.81-6.fc7
> automake17-1.7.9-8
> automake15-1.5-22
> msp430tools-libc-20050308cvs-20050608
> msp430tools-binutils-2.16-20050607
> avr-libc-1.2.3-1
> automake-1.10-5
> msp430tools-python-tools-1.0-1
> msp430tools-base-0.1-20050607
> avr-gcc-3.4.3-1
> msp430tools-gdb-6.0-20050609
> avr-insight-6.3-1
>
> nesc:
> /usr/bin/nescc
> Version: nescc: 1.2.8a
> perl:
> /usr/bin/perl
> Version: v5.8.8 built for i386-linux-thread-multi
> flex:
> /usr/bin/flex
> bison:
> /usr/bin/bison
> java:
> /usr/local/java/bin/java
>
> --> WARNING: The JAVA version found first by tos-check-env may not be
> version 1.4 or version 1.5one of which is required by TOS. Please ensure
> that the located Java version is 1.4 or 1.5
>
> graphviz:
>
> --> WARNING: No dot in current path.
>
> --> WARNING: tos-check-env could not find the 'dot' executable which is
> part of the AT&T Graphviz package. Please install version 1.1.0 of
> Graphviz if you'd like to use the nescdoc documentation generator. If
> Graphviz is already installed, then dot may not be in your PATH.
>
>
> tos-check-env completed with errors:
>
> --> WARNING: The JAVA version found first by tos-check-env may not be
> version 1.4 or version 1.5one of which is required by TOS. Please ensure
> that the located Java version is 1.4 or 1.5
> --> WARNING: No dot in current path.
> --> WARNING: tos-check-env could not find the 'dot' executable which is
> part of the AT&T Graphviz package. Please install version 1.1.0 of
> Graphviz if you'd like to use the nescdoc documentation generator. If
> Graphviz is already installed, then dot may not be in your PATH.
>
>
> I use an Java 1.6.03 and graphviz is not necessarry for our project. have
> anyone a tip for me? thanks beforhand.
>
> with best regards.
>
> jan gäbler
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
More information about the Tinyos-help
mailing list