2007/5/16, Curtis Olson <[EMAIL PROTECTED]>:
FlightGear-0.9.11-pre1 is now available for download and testing.  I have
finished updating the FlightGear and SimGear web pages and ftp sites with
the appropriate links to download the source code.  This release is still
based entirely on plib and does not have any dependency on OSG.

This is a source code only release at this point.  The -pre1 suffix
indicates that this is the first *pre* release and not necessarily the
official 0.9.11 release (unless no one finds any problems or has any changes
to make.)  I hope that as many people as possible can download and compile
this release.

Hello.
I've succesfully compiled the Flightgear and SimGear but with some gcc
warnings.
I'm attaching patches for further considering to take them into the code.
I'm just not sure about how to initialize uninitialized variables.
I'm not experienced in flying in FG so I can hardly test the
application behavior and its features.
I hope testing will do somebody else. ;-)

Btw. There are some IMHO useless files in data package: ->
data/Aircraft/A-10/Models/*.bak

Regards Ladislav.
--- simgear/screen/RenderTexture.cpp
+++ simgear/screen/RenderTexture.cpp
@@ -622,7 +622,7 @@
     _pDisplay = glXGetCurrentDisplay();
     GLXContext context = glXGetCurrentContext();
     int screen = DefaultScreen(_pDisplay);
-    XVisualInfo *visInfo;
+    XVisualInfo *visInfo = NULL;
     
     GLXFBConfig *fbConfigs;
     int nConfigs;
--- simgear/sound/openal_test1.cxx
+++ simgear/sound/openal_test1.cxx
@@ -99,7 +99,7 @@
     ALsizei size;
     ALvoid* data;
     ALsizei freq;
-    ALboolean loop;
+    ALboolean loop = 0;
 
     source_pos[0] = 0.0; source_pos[1] = 0.0; source_pos[2] = 0.0;
     source_vel[0] = 0.0; source_vel[1] = 0.0; source_vel[2] = 0.0;
--- simgear/nasal/hash.c
+++ simgear/nasal/hash.c
@@ -24,7 +24,7 @@
         // Numbers get the number as a hash.  Just use the bits and
         // xor them together.  Note assumption that sizeof(double) >=
         // 2*sizeof(int).
-        unsigned int* p = (unsigned int*)&(r.num);
+        unsigned int* p = &(r.num);
         return p[0] ^ p[1];
     } else if(PTR(r).str->hashcode) {
         return PTR(r).str->hashcode;
--- tests/test-text.cxx
+++ tests/test-text.cxx
@@ -4,7 +4,7 @@
 #include <string.h>
 
 static void readchars( FILE *fd ) {
-    char c;
+    int c;
     while ( (c = fgetc(fd)) != EOF ) {
 	printf("c = %d", c);
 	if ( c == 10 ) {
--- autogen.sh
+++ autogen.sh
@@ -2,7 +2,7 @@
 
 OSTYPE=`uname -s`
 MACHINE=`uname -m`
-AUTO_MAKE_VERSION=`automake --version | head -1 | awk '{print $4}' | sed -e 's/\.\([0-9]*\).*/\1/'`
+AUTO_MAKE_VERSION=`automake --version | head -1 | awk '{print $4}' | sed -e 's/\.\([0-9]*\).*/\1/' | cut -c1,2`
 if test $AUTO_MAKE_VERSION -lt 15; then
     echo ""
     echo "You need to upgrade to automake version 1.5 or greater."
--- src/GUI/gui_funcs.cxx
+++ src/GUI/gui_funcs.cxx
@@ -183,6 +183,8 @@
 void helpCb (puObject *)
 {
     string command;
+    char help_app_str[30];
+    char dialog_str[120];
 	
 #if defined(FX) && !defined(WIN32)
 #  if defined(XMESA_FX_FULLSCREEN) && defined(XMESA_FX_WINDOW)
@@ -200,11 +202,18 @@
 
     string help_app = fgGetString("/sim/startup/browser-app");
 
-    if ( system("xwininfo -name Netscape > /dev/null 2>&1") == 0 ) {
-        command = help_app + " -remote \"openURL(" + path.str() + ")\"";
+    if (!strcmp(help_app.c_str(), "firefox") ) {
+	command = help_app + " " + path.str();
+    } else if (!strcmp(help_app.c_str(), "mozilla") ) {
+	if ( system("xwininfo -name Mozilla > /dev/null 2>&1") == 0 ) {
+	    command = help_app + " -remote \"openURL(" + path.str() + ")\"";
+	} else {
+	    command = help_app + " " + path.str();
+	}
     } else {
         command = help_app + " " + path.str();
     }
+
     command += " &";
     system( command.c_str() );
 
@@ -225,8 +234,13 @@
                    SW_SHOWNORMAL ) ;
 
 #endif
-	
-    mkDialog ("Help started in your web browser window.");
+
+    strncpy (help_app_str, help_app.c_str(), 30);
+    sprintf (dialog_str, "Help started in %s window.\nTry --browser-app option to specify\nbrowser.", help_app_str);
+    cout << "Running " << command.c_str() << endl;
+    cout << "Note:  words \"firefox\" and \"mozilla\" are recognized in --browser-app option, in order to supply URL in correct syntax\n";
+    system( command.c_str() );
+    mkDialog (dialog_str);
 }
 
 #if defined( TR_HIRES_SNAP)
--- src/FDM/JSBSim/models/FGFCS.cpp
+++ src/FDM/JSBSim/models/FGFCS.cpp
@@ -77,7 +77,7 @@
   LeftBrake = RightBrake = CenterBrake = 0.0;
 
   bind();
-  for (i=0;i<=NForms;i++) {
+  for (i=0;i<NForms;i++) {
     DePos[i] = DaLPos[i] = DaRPos[i] = DrPos[i] = 0.0;
     DfPos[i] = DsbPos[i] = DspPos[i] = 0.0;
   }
--- src/Scripting/NasalSys.cxx
+++ src/Scripting/NasalSys.cxx
@@ -117,7 +117,7 @@
 
     char buf[256];
     if(!name) {
-        sprintf(buf, "[EMAIL PROTECTED]", script);
+        sprintf(buf, "[EMAIL PROTECTED]", (long)script);
         name = buf;
     }
 
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to