Re: Building Terragear, a problem
Alex Romosan <[email protected]> Wed, 03 Nov 2004 16:52:37 -0800
| Newsgroups | gmane.games.flightgear.terragear.devel |
|---|---|
| Message-ID | <[email protected]> |
[email protected] writes: > Hello, > > I have a problem building Terragear, when I run make this error appears : > > Making all in vpf > make[3]: Entering directory `/usr/local/src/TerraGear-0.9.5/src/Lib/vpf' > if g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/Include > -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include > -I/usr/local/include -I/opt/gnome/include/glib-1.2 > -I/opt/gnome/lib/glib/include -I/usr/X11R6/include -g -O2 -MT vpf-summary.o > -MD -MP -MF ".deps/vpf-summary.Tpo" -c -o vpf-summary.o vpf-summary.cxx; \ > then mv -f ".deps/vpf-summary.Tpo" ".deps/vpf-summary.Po"; else rm -f > ".deps/vpf-summary.Tpo"; exit 1; fi > database.hxx: In function `int main(int, char**)': > database.hxx:150: error: `VpfDataBase::VpfDataBase(const VpfDataBase&)' es > privado > vpf-summary.cxx:225: error: desde este contexto > make[3]: *** [vpf-summary.o] Error 1 > make[3]: Leaving directory `/usr/local/src/TerraGear-0.9.5/src/Lib/vpf' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/usr/local/src/TerraGear-0.9.5/src/Lib' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/local/src/TerraGear-0.9.5/src' > make: *** [all-recursive] Error 1 apply this patch: Index: vpf-summary.cxx =================================================================== RCS file: /var/cvs/TerraGear-0.0/TerraGear/src/Lib/vpf/vpf-summary.cxx,v retrieving revision 1.1 diff -u -r1.1 vpf-summary.cxx --- vpf-summary.cxx 18 Sep 2001 21:17:49 -0000 1.1 +++ vpf-summary.cxx 4 Nov 2004 00:50:04 -0000 @@ -34,10 +34,11 @@ #include "vpf.hxx" +namespace { /** * Get a printable name for a value type. */ -static const char * +const char * get_value_type_name (VpfValue::Type type) { switch (type) { @@ -64,7 +65,7 @@ /** * Get a printable name for a topology type. */ -static const char * +const char * get_topology_name (VpfFeature::TopologyType type) { switch (type) { @@ -87,7 +88,7 @@ /** * Print an indentation. */ -static string +string indent (int level) { string result; @@ -100,7 +101,7 @@ /** * Print a summary of a property declaration. */ -static void +void dump_property_decl (const VpfPropertyDecl &decl, int level) { cout << indent(level) << "Name: " << decl.getName() << endl; @@ -125,7 +126,7 @@ /** * Print a summary of a feature. */ -static void +void dump_feature (const VpfFeature &feature, int level) { cout << indent(level) << "Name: " << feature.getName() << endl; @@ -155,7 +156,7 @@ /** * Print a summary of a coverage. */ -static void +void dump_coverage (const VpfCoverage &cov, int level) { cout << indent(level) << "Coverage name: " << cov.getName() << endl; @@ -175,7 +176,7 @@ /** * Print a summary of a library. */ -static void +void dump_library (const VpfLibrary &lib, int level) { cout << indent(level) << "Library name: " << lib.getName() << endl; @@ -200,7 +201,7 @@ /** * Print a summary of a database. */ -static void +void dump_database (const VpfDataBase &db, int level) { cout << indent(level) << "Database name: " << db.getName() << endl; @@ -214,33 +215,34 @@ dump_library(db.getLibrary(i), level+2); } } +} int main (int ac, char ** av) { + VpfDataBase db(av[1]); try { switch (ac) { case 2: cout << "*** Database: " << av[1] << " ***" << endl << endl; - dump_database(VpfDataBase(av[1]), 0); + dump_database(db, 0); return 0; case 3: cout << "*** Library: " << av[2] << " ***" << endl << endl; - dump_library(VpfDataBase(av[1]).getLibrary(av[2]), 0); + dump_library(db.getLibrary(av[2]), 0); return 0; case 4: cout << "*** Coverage: " << av[3] << " ***" << endl << endl; - dump_coverage(VpfDataBase(av[1]) - .getLibrary(av[2]).getCoverage(av[3]), 0); + dump_coverage(db.getLibrary(av[2]).getCoverage(av[3]), 0); return 0; case 5: cout << "*** Feature: " << av[4] << " ***" << endl << endl;; - dump_feature(VpfDataBase(av[1]).getLibrary(av[2]).getCoverage(av[3]) + dump_feature(db.getLibrary(av[2]).getCoverage(av[3]) .getFeature(av[4]), 0); return 0; case 6: cout << "*** Feature Property: " << av[5] << " ***" << endl << endl; - dump_property_decl(VpfDataBase(av[1]).getLibrary(av[2]) + dump_property_decl(db.getLibrary(av[2]) .getCoverage(av[3]).getFeature(av[4]) .getPropertyDecl(av[5]), 0); return 0; the relevant part is at the end of the patch. --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. | _______________________________________________ Terragear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/terragear-devel 2f585eeea02e2c79d7b1d8c4963bae2d