I can't find any information on building Atlas from CVS to use with flightgear. I've modified configure.ac to get past autogen.sh and configure. I have the following build problems.

LoadPng.o: Where/what is png.h
MapMaker.o: What is dirent.h? The problem is the uint parts of this struct
struct dirent {
u_int32_t d_fileno; /* file number of entry */
u_int16_t d_reclen; /* length of this record */
u_int8_t d_type; /* file type, see below */
u_int8_t d_namlen; /* length of string in d_name */
#ifdef _POSIX_SOURCE
char d_name[255 + 1]; /* name must be no longer than this */
#else
#define MAXNAMLEN 255
char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */
#endif
};
OutputGL.o: where's all this stuff defined?

I am using MacOS 10.3 with 12/2002 dev tools, gcc 2.95, latest plib, fg from cvs, simgear is recent

thank you, Ima

make all-recursive
Making all in data
make[2]: Nothing to be done for `all'.
source='LoadPng.cxx' object='LoadPng.o' libtool=no \
depfile='.deps/LoadPng.Po' tmpdepfile='.deps/LoadPng.TPo' \
depmode=gcc /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I/Desktop/FlightGear/fgdev9.1/include -DFGBASE_DIR=\"/Desktop/FlightGear/fgfsbase\" -g -O2 -c -o LoadPng.o `test -f 'LoadPng.cxx' || echo './'`LoadPng.cxx
LoadPng.cxx:24: png.h: No such file or directory
make[2]: *** [LoadPng.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

g++ -DHAVE_CONFIG_H -I. -I. -I/Desktop/FlightGear/fgdev9.1/include -DFGBASE_DIR=\"/Desktop/FlightGear/fgfsbase\" -g -O2 -c -o MapMaker.o `test -f 'MapMaker.cxx' || echo './'`MapMaker.cxx
In file included from /usr/include/dirent.h:64,
from MapMaker.cxx:24:
/usr/include/sys/dirent.h:73: syntax error before `;'
/usr/include/sys/dirent.h:74: syntax error before `;'
/usr/include/sys/dirent.h:75: syntax error before `;'
/usr/include/sys/dirent.h:76: syntax error before `;'
make: *** [MapMaker.o] Error 1
[:src/atlas/src] root# make ./MapPS.o

[:src/atlas/src] root# make ./OutputGL.o
source='OutputGL.cxx' object='OutputGL.o' libtool=no \
depfile='.deps/OutputGL.Po' tmpdepfile='.deps/OutputGL.TPo' \
depmode=gcc /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I/Desktop/FlightGear/fgdev9.1/include -DFGBASE_DIR=\"/Desktop/FlightGear/fgfsbase\" -g -O2 -c -o OutputGL.o `test -f 'OutputGL.cxx' || echo './'`OutputGL.cxx
OutputGL.cxx: In method `void OutputGL::closeOutput()':
OutputGL.cxx:76: `png_structp' undeclared (first use this function)
OutputGL.cxx:76: (Each undeclared identifier is reported only once
OutputGL.cxx:76: for each function it appears in.)
OutputGL.cxx:76: parse error before `='
OutputGL.cxx:78: `png_ptr' undeclared (first use this function)
OutputGL.cxx:81: `png_infop' undeclared (first use this function)
OutputGL.cxx:81: parse error before `='
OutputGL.cxx:82: `info_ptr' undeclared (first use this function)
OutputGL.cxx:84: `png_infopp' undeclared (first use this function)
OutputGL.cxx:84: parse error before `0'
OutputGL.cxx:88: implicit declaration of function `int setjmp(...)'
OutputGL.cxx:89: implicit declaration of function `int png_destroy_write_struct(...)'
OutputGL.cxx:94: implicit declaration of function `int png_init_io(...)'
OutputGL.cxx:95: `PNG_COLOR_TYPE_RGB' undeclared (first use this function)
OutputGL.cxx:96: `PNG_INTERLACE_NONE' undeclared (first use this function)
OutputGL.cxx:96: `PNG_COMPRESSION_TYPE_DEFAULT' undeclared (first use this function)
OutputGL.cxx:97: `PNG_FILTER_TYPE_DEFAULT' undeclared (first use this function)
OutputGL.cxx:97: implicit declaration of function `int png_set_IHDR(...)'
OutputGL.cxx:98: implicit declaration of function `int png_write_info(...)'
OutputGL.cxx:100: `png_byte' undeclared (first use this function)
OutputGL.cxx:100: `row_pointers' undeclared (first use this function)
OutputGL.cxx:100: parse error before `*'
OutputGL.cxx:102: parse error before `)'
OutputGL.cxx:106: implicit declaration of function `int png_write_image(...)'
OutputGL.cxx:110: implicit declaration of function `int png_write_end(...)'
make: *** [OutputGL.o] Error 1


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to