From: Yurik V. N. <yu...@me...> - 2007-09-25 09:56:50
|
Hi all! I'm new user of jsbsimcommander and I have big trouble. I compile CVS version under FreeBSD 7.0 gcc 4.2.1, commander is started, I see some widgets & tools, I can create FDM output file. I can save my data into xml, and when I open this file by text editor, I can see my data. But I can't read nothing from FDM xml files:( When I open file (real JSBSIM FDM ver.2.0 or file, created by commander), I can't see any data into commander. Only first string of xml file (fdm-config , name, version, release) has parsed ok, but all data total disappear :( I try wxgtk2.6 & 2.8 from BSD ports - both work wrong:( I think, it's a problem of my workaround - may be, Commander not work for FreeBSD. Can you help me to find bug? I can trace sources, but I know nothing about wx and gnome widgets:( -- Wbr, Yurik |
From: Lee D. <le...@ea...> - 2007-09-25 10:54:37
|
Yurik, I was surprised to see your email. I'd given up on and forgotten about JSBSimCommander because of all the problems I had compiling it. I'd even forgotten I was subscribed to the mailing list. I think the program is pretty much unsupported for Linux. ??????? ???????, Lee Yurik V. Nikiforoff wrote: > Hi all! > > I'm new user of jsbsimcommander and I have big trouble. I compile CVS version > under FreeBSD 7.0 gcc 4.2.1, commander is started, I see some widgets & > tools, I can create FDM output file. I can save my data into xml, and when I > open this file by text editor, I can see my data. > > But I can't read nothing from FDM xml files:( When I open file (real JSBSIM > FDM ver.2.0 or file, created by commander), I can't see any data into > commander. Only first string of xml file (fdm-config , name, version, > release) has parsed ok, but all data total disappear :( > > I try wxgtk2.6 & 2.8 from BSD ports - both work wrong:( > > I think, it's a problem of my workaround - may be, Commander not work for > FreeBSD. Can you help me to find bug? I can trace sources, but I know nothing > about wx and gnome widgets:( > |
From: Jon S. B. <js...@ha...> - 2007-09-25 11:11:17
|
> Yurik, > > I was surprised to see your email. I'd given up on and forgotten about > JSBSimCommander because of all the problems I had compiling it. I'd > even > forgotten I was subscribed to the mailing list. I think the program is > pretty much unsupported for Linux. > > ??????? ???????, > > Lee Yurik: Yes, support has been slow, lately, for JSBSim Commander. I do not have a Linux machine, so I cannot try to debug it. I was hoping that we could get more help in developing JSBSim Commander, because it's a good idea, but I spend so much time developing JSBSim itself that I have no time left for Commander. Jon Berndt |
From: Matthew G. <mat...@gm...> - 2007-09-25 13:50:07
|
Hi, Yurik Do you mean that you can not open the xml file created by jsbsim_commander itself? Although jsbsim_commander is far from completion, it should work. I compile it under ubuntu 7.04, with wxGTK-2.8: matt@matt-e680a:~/source/jsbsim_commander$ cd .. matt@matt-e680a:~/source$ mkdir bld-jsbsim_commander matt@matt-e680a:~/source$ cd bld-jsbsim_commander/ matt@matt-e680a:~/source/bld-jsbsim_commander $ ../jsbsim_commander/configure #create a file 'abc.xml' use 'save as' command' matt@matt-e680a:~/source/bld-jsbsim_commander$ ./src/Commander -r ../jsbsim_commander/src/rc #open the file 'abc.xml': matt@matt-e680a:~/source/bld-jsbsim_commander$ ./src/Commander -r ../jsbsim_commander/src/rc abc.xml can you give me more details or show me the xml file you created by commander? Matt 在 2007-09-25二的 16:55 +0700,Yurik V. Nikiforoff写道: > Hi all! > > I'm new user of jsbsimcommander and I have big trouble. I compile CVS version > under FreeBSD 7.0 gcc 4.2.1, commander is started, I see some widgets & > tools, I can create FDM output file. I can save my data into xml, and when I > open this file by text editor, I can see my data. > > But I can't read nothing from FDM xml files:( When I open file (real JSBSIM > FDM ver.2.0 or file, created by commander), I can't see any data into > commander. Only first string of xml file (fdm-config , name, version, > release) has parsed ok, but all data total disappear :( > > I try wxgtk2.6 & 2.8 from BSD ports - both work wrong:( > > I think, it's a problem of my workaround - may be, Commander not work for > FreeBSD. Can you help me to find bug? I can trace sources, but I know nothing > about wx and gnome widgets:( |
From: Matthew G. <mat...@gm...> - 2007-09-26 14:00:30
|
Hi, Lee It seems that you may need update the cvs files. it should have been changed from alpha_max = wxString::Format("%g", data->alphaclmax); to alpha_max = wxString::Format(wxT("%g"), data->alphaclmax); In wxWidgets, wxT("abc") micro means "abc" in ansi build, but L"abc" in unicode build; and wxChar means char in ansi build, but w_char in unicode build. Matt 在 2007-09-25二的 12:11 -0400,Lee Duke写道: > I tried jsbsimcommander on Fedora Core 6. I did > ./configure > make > I got the following errors: > [snip] > AeroDynamics_Diag.cpp:145: error: no matching function for > call to ‘wxString::Format(const char [3], const double&)’ > /usr/include/wx-2.6/wx/string.h:1085: note: candidates are: > static wxString wxString::Format(const wxChar*, ...) > AeroDynamics_Diag.cpp:146: error: no matching function for > call to ‘wxString::Format(const char [3], const double&)’ > /usr/include/wx-2.6/wx/string.h:1085: note: candidates are: > static wxString wxString::Format(const wxChar*, ...) > AeroDynamics_Diag.cpp:151: error: no matching function for > call to ‘wxString::Format(const char [3], const double&)’ > /usr/include/wx-2.6/wx/string.h:1085: note: candidates are: > static wxString wxString::Format(const wxChar*, ...) > AeroDynamics_Diag.cpp:152: error: no matching function for > call to ‘wxString::Format(const char [3], const double&)’ > /usr/include/wx-2.6/wx/string.h:1085: note: candidates are: > static wxString wxString::Format(const wxChar*, ...) > make[2]: *** [AeroDynamics_Diag.o] Error 1 > make[2]: Leaving directory > `/home/duke/Simulation/JSBSimCommander-0.1.1/src/gui' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/duke/Simulation/JSBSimCommander-0.1.1/src' > make: *** [all-recursive] Error 1 > [duke@localhost JSBSimCommander-0.1.1]$ > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Jsbsimcommander-devel mailing list Jsb...@li... https://lists.sourceforge.net/lists/listinfo/jsbsimcommander-devel |
From: Matthew G. <mat...@gm...> - 2007-09-27 10:48:10
|
Hi Lee, Oh, I check the cvs version, and sensor.h/.cpp is not ready for unicode mode... I've fix it. Matt 在 2007-09-26三的 18:39 -0400,Lee Duke写道: > > > Okay. I updated my files from the cvs repository. > > Now, besides about two billion warnings, I get: > [snip] > sensor.cpp:199: error: ambiguous overload for ‘operator<<’ in > ‘((wxTextOutputStream*)((wxTextOutputStream*)((wxTextOutputStream*)stream)->wxTextOutputStream::operator<<(((const wxString&)((const wxString*)(& Pre)))))->wxTextOutputStream::operator<<(((const wchar_t*)" \000\000\000 \000\000\000<\000\000\000m\000\000\000a\000\000\000x\000\000\000>\000\000\000\000\000\000")))->wxTextOutputStream::operator<<(((Sensor*)this)->Sensor::min) << "</max>"’ > [snip] > sensor.cpp:247: error: no match for ‘operator=’ in > ‘((Sensor*)this)->Sensor::quant_property = > JSBSim::Element::GetAttributeValue(std::string)(std::basic_string<char, std::char_traits<char>, std::allocator<char> >(((const char*)"name"), ((const std::allocator<char>&)((const std::allocator<char>*)(& std::allocator<char>())))))’ > > I wouldn't normally complain about the warning, but in this case they > make it very difficult to spot the errors. > > Lee > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Jsbsimcommander-devel mailing list Jsb...@li... https://lists.sourceforge.net/lists/listinfo/jsbsimcommander-devel |
From: Lee D. <le...@ea...> - 2007-09-25 16:27:50
|
I tried jsbsimcommander on Fedora Core 6. I did ./configure make I got the following errors: [snip] AeroDynamics_Diag.cpp:145: error: no matching function for call to ‘wxString::Format(const char [3], const double&)’ /usr/include/wx-2.6/wx/string.h:1085: note: candidates are: static wxString wxString::Format(const wxChar*, ...) AeroDynamics_Diag.cpp:146: error: no matching function for call to ‘wxString::Format(const char [3], const double&)’ /usr/include/wx-2.6/wx/string.h:1085: note: candidates are: static wxString wxString::Format(const wxChar*, ...) AeroDynamics_Diag.cpp:151: error: no matching function for call to ‘wxString::Format(const char [3], const double&)’ /usr/include/wx-2.6/wx/string.h:1085: note: candidates are: static wxString wxString::Format(const wxChar*, ...) AeroDynamics_Diag.cpp:152: error: no matching function for call to ‘wxString::Format(const char [3], const double&)’ /usr/include/wx-2.6/wx/string.h:1085: note: candidates are: static wxString wxString::Format(const wxChar*, ...) make[2]: *** [AeroDynamics_Diag.o] Error 1 make[2]: Leaving directory `/home/duke/Simulation/JSBSimCommander-0.1.1/src/gui' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/duke/Simulation/JSBSimCommander-0.1.1/src' make: *** [all-recursive] Error 1 [duke@localhost JSBSimCommander-0.1.1]$ |
From: Lee D. <le...@ea...> - 2007-09-26 22:56:09
|
Matthew Gong wrote: > Hi, Lee > It seems that you may need update the cvs files. > > it should have been changed from > alpha_max = wxString::Format("%g", data->alphaclmax); > to > alpha_max = wxString::Format(wxT("%g"), data->alphaclmax); > > In wxWidgets, > wxT("abc") micro means "abc" in ansi build, but L"abc" in unicode build; > and wxChar means char in ansi build, but w_char in unicode build. > > > Matt > > 在 2007-09-25二的 12:11 -0400,Lee Duke写道: > >> I tried jsbsimcommander on Fedora Core 6. I did >> ./configure >> make >> I got the following errors: >> [snip] >> AeroDynamics_Diag.cpp:145: error: no matching function for >> call to ‘wxString::Format(const char [3], const double&)’ >> /usr/include/wx-2.6/wx/string.h:1085: note: candidates are: >> static wxString wxString::Format(const wxChar*, ...) >> AeroDynamics_Diag.cpp:146: error: no matching function for >> call to ‘wxString::Format(const char [3], const double&)’ >> /usr/include/wx-2.6/wx/string.h:1085: note: candidates are: >> static wxString wxString::Format(const wxChar*, ...) >> AeroDynamics_Diag.cpp:151: error: no matching function for >> call to ‘wxString::Format(const char [3], const double&)’ >> /usr/include/wx-2.6/wx/string.h:1085: note: candidates are: >> static wxString wxString::Format(const wxChar*, ...) >> AeroDynamics_Diag.cpp:152: error: no matching function for >> call to ‘wxString::Format(const char [3], const double&)’ >> /usr/include/wx-2.6/wx/string.h:1085: note: candidates are: >> static wxString wxString::Format(const wxChar*, ...) >> make[2]: *** [AeroDynamics_Diag.o] Error 1 >> make[2]: Leaving directory >> `/home/duke/Simulation/JSBSimCommander-0.1.1/src/gui' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory >> `/home/duke/Simulation/JSBSimCommander-0.1.1/src' >> make: *** [all-recursive] Error 1 >> [duke@localhost JSBSimCommander-0.1.1]$ >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ Jsbsimcommander-devel mailing list Jsb...@li... https://lists.sourceforge.net/lists/listinfo/jsbsimcommander-devel >> > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Jsbsimcommander-devel mailing list > Jsb...@li... > https://lists.sourceforge.net/lists/listinfo/jsbsimcommander-devel > Okay. I updated my files from the cvs repository. Now, besides about two billion warnings, I get: [snip] sensor.cpp:199: error: ambiguous overload for ‘operator<<’ in ‘((wxTextOutputStream*)((wxTextOutputStream*)((wxTextOutputStream*)stream)->wxTextOutputStream::operator<<(((const wxString&)((const wxString*)(& Pre)))))->wxTextOutputStream::operator<<(((const wchar_t*)" \000\000\000 \000\000\000<\000\000\000m\000\000\000a\000\000\000x\000\000\000>\000\000\000\000\000\000")))->wxTextOutputStream::operator<<(((Sensor*)this)->Sensor::min) << "</max>"’ [snip] sensor.cpp:247: error: no match for ‘operator=’ in ‘((Sensor*)this)->Sensor::quant_property = JSBSim::Element::GetAttributeValue(std::string)(std::basic_string<char, std::char_traits<char>, std::allocator<char> >(((const char*)"name"), ((const std::allocator<char>&)((const std::allocator<char>*)(& std::allocator<char>())))))’ I wouldn't normally complain about the warning, but in this case they make it very difficult to spot the errors. Lee |
From: Yurik V. N. <yu...@me...> - 2007-09-27 05:33:20
|
=F7 =D3=CF=CF=C2=DD=C5=CE=C9=C9 =CF=D4 25 =D3=C5=CE=D4=D1=C2=D2=D1 2007 Mat= thew Gong =CE=C1=D0=C9=D3=C1=CC(a): > Hi, Yurik > Do you mean that you can not open the xml file created by > jsbsim_commander itself? Yes, it's true. I resolve this bug. See file AircraftDialog.cpp, line 2064 - 2073: =3D=3D=3D { double d; if ( text_ctrl_info_cfgver->GetValue().ToDouble(&d) ) { if (d < 2.0) return false; } // If comment it, it's allow for commander to read file. // commented by Yurik // else // return false; // <--- What is a strange code? this is always retur= n=20 false! } =3D=3D=3D =2D-=20 Wbr, Yurik |
From: Yurik V. N. <yu...@me...> - 2007-09-27 06:05:22
|
I find what text_ctrl_info_cfgver->GetValue().ToDouble( double * ) always return zero (but write proper version of FDM into double variable). -- Wbr, Yurik |
From: Matthew G. <mat...@gm...> - 2007-09-27 10:31:09
|
Hi Yurik, It's strange! what does the version number is in your xml file? I have stop the process of checking the version number for the development status in the CVS. Matt 在 2007-09-27四的 13:05 +0700,Yurik V. Nikiforoff写道: > I find what text_ctrl_info_cfgver->GetValue().ToDouble( double * ) always > return zero (but write proper version of FDM into double variable). > > > > |
From: Yurik V. N. <yu...@me...> - 2007-09-27 10:45:37
|
Hi Matthew! =F7 =D3=CF=CF=C2=DD=C5=CE=C9=C9 =CF=D4 27 =D3=C5=CE=D4=D1=C2=D2=D1 2007 Mat= thew Gong =CE=C1=D0=C9=D3=C1=CC(a): > Hi Yurik, > It's strange! what does the version number is in your xml file? It's version 2.0. This is part of xml file (it's an-2): =3D=3D=3D <?xml version=3D"1.0"?> <?xml-stylesheet type=3D"text/xsl"=20 href=3D"http://jsbsim.sourceforge.net/JSBSim.xsl"?> <fdm_config name=3D"AN-2" version=3D"2.0" release=3D"ALPHA" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=3D"http://jsbsim.sourceforge.net/JSBSim.xs= d"> <fileheader> <author> Yurik V. Nikiforoff and Aeromatic v 0.9 </author> <filecreationdate> apr 2007 </filecreationdate> <version> 0.2 </version> <description>Legendary Russian AN-2</description> </fileheader> =2E.. =3D=3D=3D I check text_ctrl_info_cfgver->GetValue() : cout<<text_ctrl_info_cfgver->GetValue()<<endl; I get 2.0 After convert to double: double d;=20 text_ctrl_info_cfgver->GetValue().ToDouble(&d); cout << d << endl; I get 2 If I write: cout<<text_ctrl_info_cfgver->GetValue().ToDouble(&d)<<endl; I get zero, but "d" have proper value (2). =2D-=20 Wbr, Yurik |
From: Matthew G. <mat...@gm...> - 2007-09-27 10:53:58
|
在 2007-09-27四的 17:44 +0700,Yurik V. Nikiforoff写道: > > If I write: > cout<<text_ctrl_info_cfgver->GetValue().ToDouble(&d)<<endl; > > I get zero, but "d" have proper value (2). > > > Yes, it just works like this! Check the manuals for wxWidgets: wxString::ToDouble bool ToDouble(double *val) const Attempts to convert the string to a floating point number. Returns true on success (the number is stored in the location pointed to by val) or false if the string does not represent such number Matt |
From: Jon S. B. <js...@ha...> - 2007-09-27 11:23:46
|
Matthew: All of your emails are coming to me blank. Which mailer are you using? Jon |
From: Matthew G. <mat...@gm...> - 2007-09-27 11:58:23
|
> > All of your emails are coming to me blank. Which mailer are you using? > Hi Jon, I just use GMail : mat...@gm... Matt |
From: Jon S. B. <js...@ha...> - 2007-09-27 12:27:15
|
> > All of your emails are coming to me blank. Which mailer are you > using? > > > > Hi Jon, > I just use GMail : mat...@gm... > > Matt I see this one! Jon |
From: Yurik V. N. <yu...@me...> - 2007-09-28 05:36:01
|
Hi Matthew! =F7 =D3=CF=CF=C2=DD=C5=CE=C9=C9 =CF=D4 27 =D3=C5=CE=D4=D1=C2=D2=D1 2007 Mat= thew Gong =CE=C1=D0=C9=D3=C1=CC(a): > Yes, it just works like this! Check the manuals for wxWidgets: > > wxString::ToDouble > > bool ToDouble(double *val) const > > Attempts to convert the string to a floating point number. Returns true > on success (the number is stored in the location pointed to by val) or > false if the string does not represent such number I look into src. ToDouble() return true if all ok, and zero if some wrong. = But=20 conversion from string to double done right... Imho, problem is null-terminated string on my system - there is extended ch= eck=20 for it in ToDouble(). May be, wxStrtod( start, &end) ?=20 =2D-=20 Wbr, Yurik |
From: Lee D. <le...@ea...> - 2007-09-27 14:02:00
|
Matthew Gong wrote: > Hi Lee, > Oh, I check the cvs version, and sensor.h/.cpp is not ready for > unicode mode... > I've fix it. > > Matt > > 在 2007-09-26三的 18:39 -0400,Lee Duke写道: > >>> >>> >> Okay. I updated my files from the cvs repository. >> >> Now, besides about two billion warnings, I get: >> [snip] >> sensor.cpp:199: error: ambiguous overload for ‘operator<<’ in >> ‘((wxTextOutputStream*)((wxTextOutputStream*)((wxTextOutputStream*)stream)->wxTextOutputStream::operator<<(((const wxString&)((const wxString*)(& Pre)))))->wxTextOutputStream::operator<<(((const wchar_t*)" \000\000\000 \000\000\000<\000\000\000m\000\000\000a\000\000\000x\000\000\000>\000\000\000\000\000\000")))->wxTextOutputStream::operator<<(((Sensor*)this)->Sensor::min) << "</max>"’ >> [snip] >> sensor.cpp:247: error: no match for ‘operator=’ in >> ‘((Sensor*)this)->Sensor::quant_property = >> JSBSim::Element::GetAttributeValue(std::string)(std::basic_string<char, std::char_traits<char>, std::allocator<char> >(((const char*)"name"), ((const std::allocator<char>&)((const std::allocator<char>*)(& std::allocator<char>())))))’ >> >> I wouldn't normally complain about the warning, but in this case they >> make it very difficult to spot the errors. >> >> Lee >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ Jsbsimcommander-devel mailing list Jsb...@li... https://lists.sourceforge.net/lists/listinfo/jsbsimcommander-devel >> > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Jsbsimcommander-devel mailing list > Jsb...@li... > https://lists.sourceforge.net/lists/listinfo/jsbsimcommander-devel > Now I have different errors. Maybe I missed them last time. Here's the entire record--- make Making all in src make[1]: Entering directory `/home/duke/Simulation/jsbsim_commander/src' Making all in simgear make[2]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/simgear' Making all in props make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/simgear/props' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/simgear/props' Making all in xml make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/simgear/xml' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/simgear/xml' make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/simgear' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/simgear' make[2]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/simgear' Making all in input_output make[2]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/input_output' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/input_output' Making all in math make[2]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/math' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/math' Making all in wx make[2]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/wx' Making all in deprecated make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/wx/deprecated' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/wx/deprecated' Making all in ogl make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/wx/ogl' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/wx/ogl' Making all in plot make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/wx/plot' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/wx/plot' make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/wx' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/wx' make[2]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/wx' Making all in gui make[2]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/gui' if g++ -DPACKAGE_NAME=\"JSBSimCommander\" -DPACKAGE_TARNAME=\"jsbsimcommander\" -DPACKAGE_VERSION=\"0.1.2\" -DPACKAGE_STRING=\"JSBSimCommander\ 0.1.2\" -DPACKAGE_BUGREPORT=\"mat...@gm...\" -DPACKAGE=\"jsbsimcommander\" -DVERSION=\"0.1.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -I../../src -I../../src/math -I../../src/input_output -I../../src/simgear/xml -I../../src/gui -I../../src/bitmaps -DwxUSE_DEPRECATED=1 -DwxUSE_PROLOGIO=1 -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -g -O2 -MT sensor_dlg.o -MD -MP -MF ".deps/sensor_dlg.Tpo" -c -o sensor_dlg.o sensor_dlg.cpp; \ then mv -f ".deps/sensor_dlg.Tpo" ".deps/sensor_dlg.Po"; else rm -f ".deps/sensor_dlg.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=\"JSBSimCommander\" -DPACKAGE_TARNAME=\"jsbsimcommander\" -DPACKAGE_VERSION=\"0.1.2\" -DPACKAGE_STRING=\"JSBSimCommander\ 0.1.2\" -DPACKAGE_BUGREPORT=\"mat...@gm...\" -DPACKAGE=\"jsbsimcommander\" -DVERSION=\"0.1.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -I../../src -I../../src/math -I../../src/input_output -I../../src/simgear/xml -I../../src/gui -I../../src/bitmaps -DwxUSE_DEPRECATED=1 -DwxUSE_PROLOGIO=1 -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -g -O2 -MT actuator.o -MD -MP -MF ".deps/actuator.Tpo" -c -o actuator.o actuator.cpp; \ then mv -f ".deps/actuator.Tpo" ".deps/actuator.Po"; else rm -f ".deps/actuator.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=\"JSBSimCommander\" -DPACKAGE_TARNAME=\"jsbsimcommander\" -DPACKAGE_VERSION=\"0.1.2\" -DPACKAGE_STRING=\"JSBSimCommander\ 0.1.2\" -DPACKAGE_BUGREPORT=\"mat...@gm...\" -DPACKAGE=\"jsbsimcommander\" -DVERSION=\"0.1.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -I../../src -I../../src/math -I../../src/input_output -I../../src/simgear/xml -I../../src/gui -I../../src/bitmaps -DwxUSE_DEPRECATED=1 -DwxUSE_PROLOGIO=1 -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -g -O2 -MT actuator_dlg.o -MD -MP -MF ".deps/actuator_dlg.Tpo" -c -o actuator_dlg.o actuator_dlg.cpp; \ then mv -f ".deps/actuator_dlg.Tpo" ".deps/actuator_dlg.Po"; else rm -f ".deps/actuator_dlg.Tpo"; exit 1; fi actuator_dlg.cpp: In member function ‘void ActuatorComponentEditor::GetDataIn(Actuator*)’: actuator_dlg.cpp:279: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> actuator_dlg.cpp:280: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> actuator_dlg.cpp:281: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> actuator_dlg.cpp:282: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> make[2]: *** [actuator_dlg.o] Error 1 make[2]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/gui' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src' make: *** [all-recursive] Error 1 |
From: Matthew G. <mat...@gm...> - 2007-09-27 14:25:31
|
Hi Lee, Just be patient. It seems that the anonymous CVS system has not been synced with the main CVS tree. (I guess) If I'm right, just wait and type 'cvs update' one or more times until actuator_dlg.cpp is updated. Matt 在 2007-09-27四的 09:45 -0400,Lee Duke写道: > actuator_dlg.cpp:279: error: conversion from ‘const char [1]’ > to ‘const wxString’ is ambiguous > /usr/include/wx-2.6/wx/string.h:643: note: candidates are: > wxString::wxString(wxChar, size_t) <near match> > /usr/include/wx-2.6/wx/string.h:633: note: > wxString::wxString(int) <near match> > actuator_dlg.cpp:280: error: conversion from ‘const char [1]’ > to ‘const wxString’ is ambiguous > /usr/include/wx-2.6/wx/string.h:643: note: candidates are: > wxString::wxString(wxChar, size_t) <near match> > /usr/include/wx-2.6/wx/string.h:633: note: > wxString::wxString(int) <near match> > actuator_dlg.cpp:281: error: conversion from ‘const char [1]’ > to ‘const wxString’ is ambiguous > /usr/include/wx-2.6/wx/string.h:643: note: candidates are: > wxString::wxString(wxChar, size_t) <near match> > /usr/include/wx-2.6/wx/string.h:633: note: > wxString::wxString(int) <near match> > actuator_dlg.cpp:282: error: conversion from ‘const char [1]’ > to ‘const wxString’ is ambiguous |
From: Lee D. <le...@ea...> - 2007-09-27 14:19:30
|
I updated actuator_dlg.cpp and actuator_dlg.h. Then i did make clean make I got the errors below. I'm a little tired of chasing errors through this code. ************************************************************************************ plot.cpp: In function ‘void LoadColour(JSBSim::Element*, wxColour&)’: plot.cpp:141: error: invalid conversion from ‘const wxChar*’ to ‘long unsigned int’ plot.cpp:141: error: initializing argument 1 of ‘void wxColour::Set(long unsigned int)’ plot.cpp: In function ‘void LoadFont(JSBSim::Element*, wxFont&)’: plot.cpp:240: error: void value not ignored as it ought to be plot.cpp:247: error: void value not ignored as it ought to be plot.cpp: In function ‘void ExportColour(wxTextOutputStream&, const wxString&, const wxColour&, const wxString&)’: plot.cpp:357: error: ‘const class wxColour’ has no member named ‘GetAsString’ plot.cpp:357: error: ‘wxC2S_HTML_SYNTAX’ was not declared in this scope plot.cpp: In function ‘void ExportFunction(wxTextOutputStream&, const wxString&, const JSBSim::FGFunction*)’: plot.cpp:730: error: ‘const class JSBSim::FGFunction’ has no member named ‘GetDescription’ plot.cpp:737: error: passing ‘const JSBSim::FGFunction’ as ‘this’ argument of ‘JSBSim::FGParameter* JSBSim::FGFunction::GetParameter(size_t)’ discards qualifiers plot.cpp:744: error: passing ‘const JSBSim::FGFunction’ as ‘this’ argument of ‘JSBSim::FGParameter* JSBSim::FGFunction::GetParameter(size_t)’ discards qualifiers plot.cpp:747: error: ‘const class JSBSim::FGPropertyValue’ has no member named ‘GetName’ plot.cpp:751: error: passing ‘const JSBSim::FGFunction’ as ‘this’ argument of ‘JSBSim::FGParameter* JSBSim::FGFunction::GetParameter(size_t)’ discards qualifiers plot.cpp:758: error: passing ‘const JSBSim::FGFunction’ as ‘this’ argument of ‘JSBSim::FGParameter* JSBSim::FGFunction::GetParameter(size_t)’ discards qualifiers plot.cpp: In member function ‘void PlotCanvas::mkMenu(wxMenu&)’: plot.cpp:7285: error: ‘class wxMenu’ has no member named ‘AppendSubMenu’ /usr/include/wx-2.6/wx/fontdlg.h: In member function ‘void PlotCanvas::OnFont(wxCommandEvent&)’: /usr/include/wx-2.6/wx/fontdlg.h:105: error: too many arguments to function ‘wxFont wxGetFontFromUser(wxWindow*, const wxFont&)’ plot.cpp:7334: error: at this point in file plot.cpp:7335: error: ‘class wxFont’ has no member named ‘IsOk’ /usr/include/wx-2.6/wx/fontdlg.h:105: error: too many arguments to function ‘wxFont wxGetFontFromUser(wxWindow*, const wxFont&)’ plot.cpp:7345: error: at this point in file plot.cpp:7346: error: ‘class wxFont’ has no member named ‘IsOk’ /usr/include/wx-2.6/wx/fontdlg.h:105: error: too many arguments to function ‘wxFont wxGetFontFromUser(wxWindow*, const wxFont&)’ plot.cpp:7360: error: at this point in file plot.cpp:7361: error: ‘class wxFont’ has no member named ‘IsOk’ /usr/include/wx-2.6/wx/colordlg.h: In member function ‘void PlotCanvas::OnPen(wxCommandEvent&)’: /usr/include/wx-2.6/wx/colordlg.h:36: error: too many arguments to function ‘wxColour wxGetColourFromUser(wxWindow*, const wxColour&)’ plot.cpp:7426: error: at this point in file plot.cpp:7427: error: ‘class wxColour’ has no member named ‘IsOk’ /usr/include/wx-2.6/wx/colordlg.h: In member function ‘void PenSettingDialog::OnColour(wxCommandEvent&)’: /usr/include/wx-2.6/wx/colordlg.h:36: error: too many arguments to function ‘wxColour wxGetColourFromUser(wxWindow*, const wxColour&)’ plot.cpp:7862: error: at this point in file plot.cpp:7863: error: ‘class wxColour’ has no member named ‘IsOk’ make[2]: *** [plot.o] Error 1 make[2]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/mattplot' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src' make: *** [all-recursive] Error 1 |
From: Matthew G. <mat...@gm...> - 2007-09-27 14:35:25
|
Lee, I feel very sorry that I just test it under wxGTK-2.8, and it seems that 2.8 has more features than 2.6 :) I need time to fix it. But now I need sleep to fix myself... Matt 在 2007-09-27四的 10:02 -0400,Lee Duke写道: > I updated actuator_dlg.cpp and actuator_dlg.h. Then i did > > make clean > make > > I got the errors below. I'm a little tired of chasing errors through > this code. > > ************************************************************************************ > plot.cpp: In function ‘void LoadColour(JSBSim::Element*, wxColour&)’: > plot.cpp:141: error: invalid conversion from ‘const wxChar*’ to ‘long > unsigned int’ > plot.cpp:141: error: initializing argument 1 of ‘void > wxColour::Set(long unsigned int)’ > plot.cpp: In function ‘void LoadFont(JSBSim::Element*, wxFont&)’: > plot.cpp:240: error: void value not ignored as it ought to be > plot.cpp:247: error: void value not ignored as it ought to be > plot.cpp: In function ‘void ExportColour(wxTextOutputStream&, const > wxString&, const wxColour&, const wxString&)’: > plot.cpp:357: error: ‘const class wxColour’ has no member named > ‘GetAsString’ > plot.cpp:357: error: ‘wxC2S_HTML_SYNTAX’ was not declared in this > scope > plot.cpp: In function ‘void ExportFunction(wxTextOutputStream&, const > wxString&, const JSBSim::FGFunction*)’: > plot.cpp:730: error: ‘const class JSBSim::FGFunction’ has no member > named ‘GetDescription’ > plot.cpp:737: error: passing ‘const JSBSim::FGFunction’ as ‘this’ > argument of ‘JSBSim::FGParameter* > JSBSim::FGFunction::GetParameter(size_t)’ discards qualifiers > plot.cpp:744: error: passing ‘const JSBSim::FGFunction’ as ‘this’ > argument of ‘JSBSim::FGParameter* > JSBSim::FGFunction::GetParameter(size_t)’ discards qualifiers > plot.cpp:747: error: ‘const class JSBSim::FGPropertyValue’ has no > member named ‘GetName’ > plot.cpp:751: error: passing ‘const JSBSim::FGFunction’ as ‘this’ > argument of ‘JSBSim::FGParameter* > JSBSim::FGFunction::GetParameter(size_t)’ discards qualifiers > plot.cpp:758: error: passing ‘const JSBSim::FGFunction’ as ‘this’ > argument of ‘JSBSim::FGParameter* > JSBSim::FGFunction::GetParameter(size_t)’ discards qualifiers > plot.cpp: In member function ‘void PlotCanvas::mkMenu(wxMenu&)’: > plot.cpp:7285: error: ‘class wxMenu’ has no member named > ‘AppendSubMenu’ > /usr/include/wx-2.6/wx/fontdlg.h: In member function ‘void > PlotCanvas::OnFont(wxCommandEvent&)’: > /usr/include/wx-2.6/wx/fontdlg.h:105: error: too many arguments to > function ‘wxFont wxGetFontFromUser(wxWindow*, const wxFont&)’ > plot.cpp:7334: error: at this point in file > plot.cpp:7335: error: ‘class wxFont’ has no member named ‘IsOk’ > /usr/include/wx-2.6/wx/fontdlg.h:105: error: too many arguments to > function ‘wxFont wxGetFontFromUser(wxWindow*, const wxFont&)’ > plot.cpp:7345: error: at this point in file > plot.cpp:7346: error: ‘class wxFont’ has no member named ‘IsOk’ > /usr/include/wx-2.6/wx/fontdlg.h:105: error: too many arguments to > function ‘wxFont wxGetFontFromUser(wxWindow*, const wxFont&)’ > plot.cpp:7360: error: at this point in file > plot.cpp:7361: error: ‘class wxFont’ has no member named ‘IsOk’ > /usr/include/wx-2.6/wx/colordlg.h: In member function ‘void > PlotCanvas::OnPen(wxCommandEvent&)’: > /usr/include/wx-2.6/wx/colordlg.h:36: error: too many arguments to > function ‘wxColour wxGetColourFromUser(wxWindow*, const wxColour&)’ > plot.cpp:7426: error: at this point in file > plot.cpp:7427: error: ‘class wxColour’ has no member named ‘IsOk’ > /usr/include/wx-2.6/wx/colordlg.h: In member function ‘void > PenSettingDialog::OnColour(wxCommandEvent&)’: > /usr/include/wx-2.6/wx/colordlg.h:36: error: too many arguments to > function ‘wxColour wxGetColourFromUser(wxWindow*, const wxColour&)’ > plot.cpp:7862: error: at this point in file > plot.cpp:7863: error: ‘class wxColour’ has no member named ‘IsOk’ > make[2]: *** [plot.o] Error 1 > make[2]: Leaving directory > `/home/duke/Simulation/jsbsim_commander/src/mattplot' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/duke/Simulation/jsbsim_commander/src' > make: *** [all-recursive] Error 1 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Jsbsimcommander-devel mailing list Jsb...@li... https://lists.sourceforge.net/lists/listinfo/jsbsimcommander-devel |