[Flightgear-devel] JSBsim fails to build in FGFS cvs
Hi, First of all sincere thanks to ehofman for makinf chnage in panel.cxx to resolve truncf problem. Now I am facing another compiler problem in FGEngine.cpp.I got the latest source code from CVS today. The error messages obtained during compilation are as follow ===BEGIN == if g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/Include -I../../.. -I../../../src -D_GNU_SOURCE -I/usr/X11R6/include -DFGFS -g -O2 -MT FGEngine.o -MD -MP -MF .deps/FGEngine.Tpo \ -c -o FGEngine.o `test -f 'FGEngine.cpp' || echo './'`FGEngine.cpp; \ then mv .deps/FGEngine.Tpo .deps/FGEngine.Po; \ else rm -f .deps/FGEngine.Tpo; exit 1; \ fi FGEngine.cpp: In method `JSBSim::FGEngine::FGEngine (JSBSim::FGFDMExec *)': FGEngine.cpp:71: no matching function for call to `basic_stringchar, string_char_traitschar, __default_alloc_templatetrue, 0 ::clear ()' make[4]: *** [FGEngine.o] Error 1 make[4]: Leaving directory `/home/gopal/FlightGear/source/source/src/FDM/JSBSim'make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/gopal/FlightGear/source/source/src/FDM/JSBSim'make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/gopal/FlightGear/source/source/src/FDM' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/gopal/FlightGear/source/source/src' make: *** [all-recursive] Error 1 == END = My g++ details are as under gcc version 2.96 2731 (Mandrake Linux 8.2 2.96-0.76mdk) Similar kind of problem that I am facing was discussed for a short period on this mailinf list. On 19 Jan, Adam replied that by upgrading the compiler (probably g++) the problem is resolved. So is it necessary to upgrade the compiler? Am I the only one who is facing this problem? With regards Gopal __ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] Compile problem with latest CVS code
Hi, I had updated FGFS after release of version 0.9.3 from CVS. At that time I was able to build it successfully. Recently, I updated everything (including SimGear and plib). I could successfully rebuild and installl plib and SimGear. But FGFS failed with following error. if g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src -I/usr/X11R6/include -g -O2 -MT panel.o -MD -MP -MF .deps/panel.Tpo \ -c -o panel.o `test -f 'panel.cxx' || echo './'`panel.cxx; \ then mv .deps/panel.Tpo .deps/panel.Po; \ else rm -f .deps/panel.Tpo; exit 1; \ fi panel.cxx: In method `const char *FGTextLayer::Chunk::getValue () const': panel.cxx:1128: `truncf' undeclared (first use this function) panel.cxx:1128: (Each undeclared identifier is reported only once for each function it appears in.) make[3]: *** [panel.o] Error 1 make[3]: Leaving directory `/home/gopal/FlightGear/source/source/src/Cockpit' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/gopal/FlightGear/source/source/src/Cockpit' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/gopal/FlightGear/source/source/src' make: *** [all-recursive] Error 1 The configure script was able to detect truncf functionand therefore it has following content /* Define to 1 if you have the `truncf' function. */ #define HAVE_TRUNCF 1 Need guidance from any volunteer to resolve this problem. My system configuration is as follow [EMAIL PROTECTED] source]$ uname -a Linux localhost.localdomain 2.4.18-6mdk #1 Fri Mar 15 02:59:08 CET 2002 i686 unknown GeForce graphics card Thanks in advance. Regards Gopal Mor __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] 64-Bit Question
Jonathan Polley wrote: Now that 64-bit processors are becoming more available, does anyone know of any problems that FlightGear may have running on a 64-bit processor (Opteron or PowerPC 970)? I am assuming that those areas that would be sensitive to data sizes (i.e., file formats) are safe? I've seen reports that 64-bit FlightGear was working without a problem. But I hove no hands-on experience. The one problem I see is that, the sizeof() function is not going to give the same result in 32 bit and 64 bit mode due to difference in packing levels used for structures. To be specific, for the structures with odd number of words (1 word = 4 bytes), sizeof() will return the size with one extra word. Solution : Use pragma pack(n) Problems with above solution: When the packing level for structure is denser than the default packing level ( by using pragma pack )we need to use -misalign option in compile and link, and the -misalign function hampers the performance( frame rate) drastically. For further details, see man page for CC ( or any other compiler) Cheers!!! Gopal Mor __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] Run time error - Program Crash
Hi All, After the latest update of FlightGear and SimGear from CVS, a runtime error occurs on my system. Problem : The program crashes just after startup (before the splash screen goes off). Platform: WIN 2000 and MSVC 6.0 How to reproduce: 1) in preferences.xml; use GameMode = true 2) Run the FlightGear Probable Cause: I tried to debug it and found that FGReshape() function tries to use current_panel (of FGGlobals) pointer even before it is assigned to valid panel object. And since there is no default initialization ( should be there in the constructor of FGGlobals - initialize it to NULL) it is pointing to memory in non-accessible area. This causes the program to abort abnormally. Probable Solution: All the pointers in FGGlobals should be initialized to NULL ( or to some valid appropriate memory) in the constructor of FGGlobals. The overheaed will not be much, as the FGGlobals object is created only once. PL guide if there is any other reason than what I have concluded. Thanks Gopal Mor __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] Multiple views using ssgContext
Hi all, i try to open multiple openGL (sub)windows which all show the same ssg(root)under different perspectives. i use the ssgContext class and give every class another FOV, NearFar and so on. But what i see is the following: the first view is ok, but all other views looks blurred (as if the update is not completed) and the perspective is the same in all views. a little code example about the use of ssgContext would be appreciated. This message was actually posted in plib user's list by Stephen. I face the same problem. Any idea, whats going on wrong ? Thanks Gopal Mor __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] MSVC6.0 Update
Hi All, Whether anyone has tried to build latest FlightGear using MSVC6.0 ? When I tried I received couple of errors as follow 1. most of them about obsolete files (which are no more in CVS repository). 2. GLUT_H symbol is not found in some of the files. What I felt is, .dsp and .dsw files for MSVC6.0 are not updated and are not in sync with latest code. Thanks Gopal Mor __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] CVS settings
HI All, I have downloaded Flightgear from CVS using the instructions on http://www.flightgear.org/cvsResources/anoncvs.htmlpage. I feel that when I do update, I am not getting the latest postings which are discussed in the mailing list. Whether the instructions for CVS, in the above mentioned web page, is still valid ?? Please guide on the "required settings" to get the latest developments through CVS. Cheers!!! Gopal Mor Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
[Flightgear-devel] ssgInit() failure
From: David Megginson <[EMAIL PROTECTED]>Date: Mon, 20 Jan 2003 12:15:54 -0500To: [EMAIL PROTECTED]Subject: re: [Flightgear-devel] plib/psl.hReply-To: [EMAIL PROTECTED]Gopal Mor writes: I have recently downloaded FlightGear and trying to build it over Red Hat Linux. I have downloaded plib-1.6.0.tar.gz and installed it as per instructions in plib. When building flightgear it looks for which is nowhere present in my machine. Is this a flightgear problem or a plib has not been installed properly.That problem was fixed a few days ago -- if you do a CVS update, itshould go away. Eager to run Flightgear with my own build.Good luck.All the best,David-- David Megginson, [EMAIL PROTECTED], http://www.megginson.com/HiDavid, What was need to be done was to install latest CVS version of the plib and not the PLIB 1.6.0 version. With this I could build the FG. Thanks. Now there is another problem at run time. The log messages are pasted below: ghtGear: Version 0.9.1Built with GNU C++ version 2.96 Scanning command line for: --fg-root=fg_root = /usr/local/lib/FlightGear/data/Reading global preferencesFinished Reading global preferencesSelecting language: en_USReading localized strings from /usr/local/lib/FlightGear/data//Translations/strings-default.xmlScanning command line for: --aircraft=No user specified aircraft, using defaultReading default aircraft: c172 from /usr/local/lib/FlightGear/data//Aircraft/c172-set.xmlProcessing command line argumentsFinished command line argumentsOpening a window: 800x600Mesa GLX IndirectMax texture size = 2048Depth buffer bits = 16FATAL: ssgInit called without a valid OpenGL context. I have MESA Lib 3.4.X installed on my machine. Any idea why about invalis OpenGL context ? Regards GopalDo you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
[Flightgear-devel] ssgInit() failure
From: David Megginson <[EMAIL PROTECTED]>Date: Mon, 20 Jan 2003 12:15:54 -0500To: [EMAIL PROTECTED]Subject: re: [Flightgear-devel] plib/psl.hReply-To: [EMAIL PROTECTED]Gopal Mor writes: I have recently downloaded FlightGear and trying to build it over Red Hat Linux. I have downloaded plib-1.6.0.tar.gz and installed it as per instructions in plib. When building flightgear it looks for which is nowhere present in my machine. Is this a flightgear problem or a plib has not been installed properly.That problem was fixed a few days ago -- if you do a CVS update, itshould go away. Eager to run Flightgear with my own build.Good luck.All the best,David-- David Megginson, [EMAIL PROTECTED], http://www.megginson.com/HiDavid, What was need to be done was to install latest CVS version of the plib and not the PLIB 1.6.0 version. With this I could build the FG. Thanks. Now there is another problem at run time. The log messages are pasted below: ghtGear: Version 0.9.1Built with GNU C++ version 2.96 Scanning command line for: --fg-root=fg_root = /usr/local/lib/FlightGear/data/Reading global preferencesFinished Reading global preferencesSelecting language: en_USReading localized strings from /usr/local/lib/FlightGear/data//Translations/strings-default.xmlScanning command line for: --aircraft=No user specified aircraft, using defaultReading default aircraft: c172 from /usr/local/lib/FlightGear/data//Aircraft/c172-set.xmlProcessing command line argumentsFinished command line argumentsOpening a window: 800x600Mesa GLX IndirectMax texture size = 2048Depth buffer bits = 16FATAL: ssgInit called without a valid OpenGL context. I have MESA Lib 3.4.X installed on my machine. Any idea why about invalis OpenGL context ? Regards GopalDo you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now