alexis bory | 26 Jan 23:16 2007

problem compiling genapts

Hi,

genapts doesn't compile here, I've got newmat10 installed.

version gcc 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
Linux 2.6.15-27-amd64-generic #1 SMP PREEMPT Fri Dec 8 17:50:54 UTC 2006 
x86_64 GNU/Linux

any idea about that ?

Thanks,
Alexis

--
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/Include -I../../.. 
-I../../../src -I../../../src/Lib -I../../../src/BuildTiles    -g -O2 
-MT apt_surface.o -MD -MP -MF ".deps/apt_surface.Tpo" -c -o 
apt_surface.o apt_surface.cxx; \
        then mv -f ".deps/apt_surface.Tpo" ".deps/apt_surface.Po"; else 
rm -f ".deps/apt_surface.Tpo"; exit 1; fi
apt_surface.cxx: In function «ColumnVector qr_method(Real*, Real*, 
Real*, Real*, Real*, Real*, Real*, Real*, Real*, Real*, Real*, Real*, 
Real*, Real*, Real*, Real*, int, int)»:
apt_surface.cxx:319: erreur: «class Matrix» has no member named «column»
apt_surface.cxx:320: erreur: «class Matrix» has no member named «column»
apt_surface.cxx:321: erreur: «class Matrix» has no member named «column»
apt_surface.cxx:322: erreur: «class Matrix» has no member named «column»
apt_surface.cxx:323: erreur: «class Matrix» has no member named «column»
apt_surface.cxx:324: erreur: «class Matrix» has no member named «column»
apt_surface.cxx:325: erreur: «class Matrix» has no member named «column»
(Continue reading)

alexis bory | 26 Jan 23:19 2007

raw2ascii looped while reading the dem30 header file

Dear TerraGear guru,

On my plateforme (Linux 2.6.15-27-amd64-generic with Ubuntu Dapper) 
raw2ascii enter a loop while reading the dem30 header file.

Whithout understanding any C++ character handling, I just modified an 
easy while condition in 
TerraGear-0.0/source/src/Prep/DemRaw2ascii/rawdem.c and it worked fine.

Here, rawReadDemHdr returned i = 1 after the last consistant line.

Following is a patch for it.

Cheers,

Alexis

Index: rawdem.c
===================================================================
RCS file: /var/cvs/TerraGear-0.0/source/src/Prep/DemRaw2ascii/rawdem.c,v
retrieving revision 1.11
diff -u -p -r1.11 rawdem.c
--- rawdem.c    19 Nov 2004 22:25:51 -0000      1.11
+++ rawdem.c    26 Jan 2007 20:28:32 -0000
 <at>  <at>  -98,7 +98,7  <at>  <at>  void rawReadDemHdr( fgRAWDEM *raw, char
     raw->big_endian = 1;

     /* process each line */
-    while ( (reads(fileno(hdr), line, 256) != 0) ) {
+    while ( (reads(fileno(hdr), line, 256) > 1) ) {
(Continue reading)

Torsten Dreyer | 27 Jan 09:51 2007
Picon

Re: problem compiling genapts

Hi,
I think newmat11 should serve you better...
Greetings, Torsten

> Hi,
>
> genapts doesn't compile here, I've got newmat10 installed.
>
> version gcc 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
> Linux 2.6.15-27-amd64-generic #1 SMP PREEMPT Fri Dec 8 17:50:54 UTC 2006
> x86_64 GNU/Linux
>
> any idea about that ?
>
> Thanks,
> Alexis

_______________________________________________
Terragear-devel mailing list
Terragear-devel <at> flightgear.org
http://mail.flightgear.org/mailman/listinfo/terragear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Torsten Dreyer | 27 Jan 10:21 2007
Picon

making --min-lat et al. work in genapts

Hi

genapts has switches --min-lat, --max-lat, --min-lon and --max-lon that are 
accepted but ignored. The attached main.cxx (that belongs to the GenAirports 
subdirectory) now adds the functionality.
It calculates the average latitude and longitude of all taxiways and runways 
for the airport in progress and checks if these fall within the min/max args. 
Code is mostly stolen from buidl_airport() in build.cxx...

Seems to be working here. And makes life a little easier when working on a 
small area or single tile.

Sorry for not posting a cvs diff - my cvs access is somehow broken :-(

Enjoy - Torsten

Attachment (main.cxx): text/x-csrc, 17 KiB
_______________________________________________
Terragear-devel mailing list
Terragear-devel <at> flightgear.org
http://mail.flightgear.org/mailman/listinfo/terragear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Gmane