[Flightgear-devel] build break with some .cpp to .cxx renames

2005-11-02 Thread Ima Sudonim
I have co'ed all plib/simgear/flightgear files from CVS a few minutes  
ago.  I am running autogen.sh and configure before flightgear.  
However I am still getting a build break on the renamed files


make[3]: *** No rule to make target `multiplaymgr.cpp', needed by  
`multiplaymgr.o'.  Stop.
make: *** No rule to make target `tiny_xdr.cpp', needed by  
`tiny_xdr.o'.  Stop.


They both build if I create symbolic links with the old names as  
follows:


ln -s tiny_xdr.cxx tiny_xdr.cpp
ln -s multiplaymgr.cxx multiplaymgr.cpp

source='multiplaymgr.cxx' object='multiplaymgr.o' libtool=no \
depfile='.deps/multiplaymgr.Po' tmpdepfile='.deps/multiplaymgr.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src  - 
I/Users/ima/Desktop/FlightGear/fgdev9.9/include  -g -O2 -D_REENTRANT - 
c -o multiplaymgr.o `test -f 'multiplaymgr.cxx' || echo  
'./'`multiplaymgr.cxx


source='tiny_xdr.cxx' object='tiny_xdr.o' libtool=no \
depfile='.deps/tiny_xdr.Po' tmpdepfile='.deps/tiny_xdr.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src  - 
I/Users/ima/Desktop/FlightGear/fgdev9.9/include  -g -O2 -D_REENTRANT - 
c -o tiny_xdr.o `test -f 'tiny_xdr.cxx' || echo './'`tiny_xdr.cxx


the MultiPlayer Makefile has the following:

libMultiPlayer_a_SOURCES = multiplaymgr.cxx multiplaymgr.hxx   
mpplayer.cxx mpplayer.hxx m

pmessages.hxx tiny_xdr.cxx tiny_xdr.hxx

Any ideas what's going wrong? I am using Mac os x 10.4 and gcc 4.0.0

Thanks!

Ima
In this repspect the following files have been renamed in src/ 
Multiplayer:


tiny_xdr.[ch]pp has become tiny_xdr.[ch]xx
multiplaymgr.[ch]pp has become multiplaymgr.[ch]xx




___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] build break with some .cpp to .cxx renames

2005-11-02 Thread Erik Hofman

Ima Sudonim wrote:
I have co'ed all plib/simgear/flightgear files from CVS a few minutes  
ago.  I am running autogen.sh and configure before flightgear.  However 
I am still getting a build break on the renamed files


make[3]: *** No rule to make target `multiplaymgr.cpp', needed by  
`multiplaymgr.o'.  Stop.
make: *** No rule to make target `tiny_xdr.cpp', needed by  
`tiny_xdr.o'.  Stop.


Yes, I noticed that too.
It's a gcc dependency problem. In the Multiplayer directory s a hidden 
directory called .deps which contains a file called tiny_xdr.tpO (or 
something like that). You could edit that file and replace every 
instance of hpp by hxx and every instance of cpp by cxx and run make again.


You could also remove the .deps directory (or run make clean) and run 
autogen.sh and configure again.


Erik

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] build break with some .cpp to .cxx renames

2005-11-02 Thread Ima Sudonim

Erik,

Thanks!  Based on your advice, I did:

ls *.cpp
multiplaymgr.cpptiny_xdr.cpp
 rm *.cpp

to remove the links I'd created

then I removed the files you mentioned with:

rm -f ./deps/tiny_xdr.Po
rm -f ./deps/multiplaymgr.Po

rerunning make in src/FlightGear/src/MultiPlayer

then worked with no problems. A general make of all of flightgear  
also worked with no problems.


Thanks, again!

Ima


 make[3]: *** No rule to make target `multiplaymgr.cpp', needed by
 `multiplaymgr.o'.  Stop.
 make: *** No rule to make target `tiny_xdr.cpp', needed by
 `tiny_xdr.o'.  Stop.

Yes, I noticed that too.
It's a gcc dependency problem. In the Multiplayer directory s a hidden
directory called .deps which contains a file called tiny_xdr.tpO (or
something like that). You could edit that file and replace every
instance of hpp by hxx and every instance of cpp by cxx and run  
make again.


You could also remove the .deps directory (or run make clean) and run
autogen.sh and configure again.

Erik


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d