|
Hi,
Sorry that I've been AWOL!
Attached is a set of patches you can apply to the 2.5 distribution to clean
up most of the make process. You will still have to correctly specify the
TOOLPREFIX in Makefile.common, or via the make command line.
You can apply the patch via the command
patch -p0 <patchfile
where patchfile is the file you stored the following diff in.
The patches clean up some makefile issues.
Once this is done, you should try:
make realclean depend all
which will clean up everything, rebuild all the dependencies, and then all the
code.
If you have any more problems, please send along the make output, and any
additional information which might be useful.
You can also obtain the patches at
http://kayak.physics.orst.edu/~tpw/legOS/patch.txt
I havel also checked in these changes, along with a backlog of other changes to
the c++ api, into the CVS repository at sourceforge.
Pat
diff -Naur legOS.ref/Makefile legOS/Makefile
--- legOS.ref/Makefile Thu Sep 21 11:44:58 2000
+++ legOS/Makefile Mon May 21 09:27:51 2001
@@ -5,6 +5,8 @@
##
SUBDIRS=util lib boot demo
+.PHONY: all depend clean realclean html tag c++
+
all:
for i in $(SUBDIRS) ; do $(MAKE) $(MFLAGS) -C $$i || exit 2 ; done
@@ -16,7 +18,7 @@
rm -rf *.o *.map *.coff *.srec *.dis* *~ *.bak *.tgz *.s tags
c++:
- $(MAKE) -C c++ all
+ $(MAKE) -C demo c++
realclean:
for i in $(SUBDIRS) ; do $(MAKE) $(MFLAGS) NODEPS=yes -C $$i realclean
; done
diff -Naur legOS.ref/demo/Makefile legOS/demo/Makefile
--- legOS.ref/demo/Makefile Thu Sep 21 11:51:09 2000
+++ legOS/demo/Makefile Mon May 21 09:38:59 2001
@@ -11,6 +11,8 @@
# extra dynamic sources
DOBJECTS=
+.PHONY: c++ html depend tag clean realclean
+
all: $(PROGRAMS) c++
include ../Makefile.common
@@ -35,9 +37,11 @@
clean:
rm -rf .depend* *.o *.dis *.dis2 *~ *.bak *.tgz *.s tags *.ds1 *.ds2
*.dmap *.dcoff *.srec *.map *.coff
+ $(MAKE) -C c++ $@
realclean: clean
rm -f *.lx
+ $(MAKE) -C c++ $@
# depencencies
#
diff -Naur legOS.ref/demo/c++/Makefile legOS/demo/c++/Makefile
--- legOS.ref/demo/c++/Makefile Wed Sep 6 20:04:03 2000
+++ legOS/demo/c++/Makefile Mon May 21 09:38:26 2001
@@ -13,7 +13,7 @@
rover.lx \
batt.lx sensor.lx lightSensor.lx rotationSensor.lx touchSensor.lx \
motor.lx sound.lx activeSensor.lx \
- raceTrack.lx lineTrack.lx
+ raceTrack.lx
# extra dynamic sources
DOBJECTS=
@@ -21,6 +21,8 @@
include $(ROOTDIR)Makefile.common
include $(ROOTDIR)Makefile.user
+.PHONY: all html depend tag clean realclean
+
all: $(PROGRAMS)
# doc/html subdirectory
@@ -43,5 +45,5 @@
# depencencies
#
ifndef NODEPS
-include .depend
+-include .depend
endif
|
|
Message has 1 Reply: | | R: c++
|
| Thank you Pat! I should be able to make it go. I'll tell you the results in a couple of weeks, cause I have to finish another project on lnp first. I still don't understand much the unix community: if version 2.5 is to be patched anyway, why not (...) (24 years ago, 22-May-01, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | c++
|
| Is c++ supported in legOs2.5 ? We've been unable to compile even the demos! (I already posted about that) Please give us a voice! thanks Ciao, Vittorio (24 years ago, 20-May-01, to lugnet.robotics.rcx.legos)
|
9 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|