Quote:
Originally Posted by Rasbats
Freddie,
Sorry, I am Windows centric.
You are correct, the source files are called baro_history.cpp and baro_history.h and that is what is used in the code.
Please can you change src/Baro_history.cpp and src/Baro_history.h in 'CMakeLists.txt' to read src/baro_history.cpp and src/baro_history.h and try again.
I have not done any work on compiling the plugin for Linux. cmake_gui for Windows was used to compile on my machine, so I am not sure what is needed for the command line.
Let us know how you get on.
Thanks.
Mike
|
Mike:
I changed the CMakeLists.txt file to get past the capital letters issue, and the configure went fine.
However the make (compile) stops with some errors, here is the output from the make:
ubuntu@tegra-ubuntu:~/survey_pi/build$ make -j4
[ 2%] survey_pi-i18n: Done.
[ 2%] Built target survey-i18n
[ 4%] [ 6%] [ 8%] [ 10%] Building CXX object CMakeFiles/survey_pi.dir/src/survey_pi.cpp.o
Building CXX object CMakeFiles/survey_pi.dir/src/icons.cpp.o
Building CXX object CMakeFiles/survey_pi.dir/src/surveygui.cpp.o
Building CXX object CMakeFiles/survey_pi.dir/src/surveygui_impl.cpp.o
In file included from /home/ubuntu/survey_pi/src/surveygui_impl.h:43:0,
from /home/ubuntu/survey_pi/src/survey_pi.h:70,
from /home/ubuntu/survey_pi/src/survey_pi.cpp:37:
/home/ubuntu/survey_pi/src/survey_profile.h:45:0: warning: "BARO_RECORD_COUNT" redefined [enabled by default]
#define BARO_RECORD_COUNT 3000
^
In file included from /home/ubuntu/survey_pi/src/surveygui_impl.h:42:0,
from /home/ubuntu/survey_pi/src/survey_pi.h:70,
from /home/ubuntu/survey_pi/src/survey_pi.cpp:37:
/home/ubuntu/survey_pi/src/baro_history.h:45:0: note: this is the location of the previous definition
#define BARO_RECORD_COUNT 30
^
In file included from /home/ubuntu/survey_pi/src/surveygui_impl.h:43:0,
from /home/ubuntu/survey_pi/src/survey_pi.h:70,
from /home/ubuntu/survey_pi/src/surveygui_impl.cpp:30:
/home/ubuntu/survey_pi/src/survey_profile.h:45:0: warning: "BARO_RECORD_COUNT" redefined [enabled by default]
#define BARO_RECORD_COUNT 3000
^
In file included from /home/ubuntu/survey_pi/src/surveygui_impl.h:42:0,
from /home/ubuntu/survey_pi/src/survey_pi.h:70,
from /home/ubuntu/survey_pi/src/surveygui_impl.cpp:30:
/home/ubuntu/survey_pi/src/baro_history.h:45:0: note: this is the location of the previous definition
#define BARO_RECORD_COUNT 30
^
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:48:0,
from /home/ubuntu/survey_pi/src/survey_pi.cpp:37:
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
};
^
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:49:0,
from /home/ubuntu/survey_pi/src/survey_pi.cpp:37:
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
};
^
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:50:0,
from /home/ubuntu/survey_pi/src/survey_pi.cpp:37:
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
};
^
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:48:0,
from /home/ubuntu/survey_pi/src/surveygui_impl.cpp:30:
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
};
^
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/cross.xpm:24:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:49:0,
from /home/ubuntu/survey_pi/src/surveygui_impl.cpp:30:
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
};
^
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/circle.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:50:0,
from /home/ubuntu/survey_pi/src/surveygui_impl.cpp:30:
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
};
^
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
/home/ubuntu/survey_pi/src/square.xpm:23:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:70:0,
from /home/ubuntu/survey_pi/src/survey_pi.cpp:37:
/home/ubuntu/survey_pi/src/surveygui_impl.h:113:9: error: extra qualification ‘SurveyDlg::’ on
member ‘LoadSurvey_0’ [-fpermissive]
void SurveyDlg::LoadSurvey_0();
^
/home/ubuntu/survey_pi/src/surveygui_impl.h:117:9: error: extra qualification ‘SurveyDlg::’ on
member ‘SetTrace’ [-fpermissive]
void SurveyDlg::SetTrace();
^
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:70:0,
from /home/ubuntu/survey_pi/src/surveygui_impl.cpp:30:
/home/ubuntu/survey_pi/src/surveygui_impl.h:113:9: error: extra qualification ‘SurveyDlg::’ on member ‘LoadSurvey_0’ [-fpermissive]
void SurveyDlg::LoadSurvey_0();
^
/home/ubuntu/survey_pi/src/surveygui_impl.h:117:9: error: extra qualification ‘SurveyDlg::’ on member ‘SetTrace’ [-fpermissive]
void SurveyDlg::SetTrace();
^
/home/ubuntu/survey_pi/src/survey_pi.cpp: In member function ‘void survey_pi::ImportHydromagicTrack(TiXmlElement*)’:
/home/ubuntu/survey_pi/src/survey_pi.cpp:164:31: warning: unused variable ‘ele’ [-Wunused-variable]
float ele = atof(trackpoint->Attribute("ele"));
^
/home/ubuntu/survey_pi/src/survey_pi.cpp:166:29: warning: unused variable ‘mark’ [-Wunused-variable]
int mark = atoi(trackpoint->Attribute("mark"));
^
/home/ubuntu/survey_pi/src/survey_pi.cpp: In member function ‘void survey_pi::ExportHydromagic(int, wxString)’:
/home/ubuntu/survey_pi/src/survey_pi.cpp:302:34: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
int64_t i64 = *((int64_t*)&t32); // To avoid using strftime(), keep everything UTC
^
/home/ubuntu/survey_pi/src/survey_pi.cpp:284:20: warning: unused variable ‘tide’ [-Wunused-variable]
double tide = atof(tid);
^
/home/ubuntu/survey_pi/src/survey_pi.cpp: In member function ‘void survey_pi::ExportXYZ(int, wxString)’:
/home/ubuntu/survey_pi/src/survey_pi.cpp:378:10: warning: unused variable ‘tide’ [-Wunused-variable]
double tide = atof(tid);
^
/home/ubuntu/survey_pi/src/survey_pi.cpp: In member function ‘void survey_pi::ExportCSV(int, wxString)’:
/home/ubuntu/survey_pi/src/survey_pi.cpp:453:10: warning: unused variable ‘tide’ [-Wunused-variable]
double tide = atof(tid);
^
/home/ubuntu/survey_pi/src/surveygui_impl.cpp: In member function ‘virtual void SurveyDlg::OnSurveySelection(wxCommandEvent&)’:
/home/ubuntu/survey_pi/src/surveygui_impl.cpp:235:8: warning: unused variable ‘t’ [-Wunused-variable]
int t = plugin->GetSurveyId(s);
^
/home/ubuntu/survey_pi/src/surveygui_impl.cpp: In member function ‘virtual void SurveyDlg::OnNewSurvey(wxCommandEvent&)’:
/home/ubuntu/survey_pi/src/surveygui_impl.cpp:285:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < m_chSurvey->GetCount(); i++){
^
/home/ubuntu/survey_pi/src/surveygui_impl.cpp: In member function ‘virtual void SurveyDlg::OnSurveyProperties(wxCommandEvent&)’:
/home/ubuntu/survey_pi/src/surveygui_impl.cpp:338:86: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
plugin->m_pSurveyProp = new SurveyPropDlgDef(this, wxID_ANY, _T("Survey Properties"), { 100, 100 }, wxDefaultSize, 0);
^
/home/ubuntu/survey_pi/src/survey_pi.cpp: In member function ‘bool survey_pi::ImportXYZ(wxString)’:
/home/ubuntu/survey_pi/src/survey_pi.cpp:648:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
int64_t tim = *((int64_t*)&t);
^
/home/ubuntu/survey_pi/src/surveygui_impl.cpp:338:118: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
plugin->m_pSurveyProp = new SurveyPropDlgDef(this, wxID_ANY, _T("Survey Properties"), { 100, 100 }, wxDefaultSize, 0);
^
/home/ubuntu/survey_pi/src/survey_pi.cpp:648:11: warning: unused variable ‘tim’ [-Wunused-variable]
int64_t tim = *((int64_t*)&t);
^
/home/ubuntu/survey_pi/src/survey_pi.cpp:622:6: warning: unused variable ‘l’ [-Wunused-variable]
int l = 0;
^
/home/ubuntu/survey_pi/src/surveygui_impl.cpp:337:6: warning: unused variable ‘t’ [-Wunused-variable]
int t = plugin->GetSurveyId(s);
^
/home/ubuntu/survey_pi/src/surveygui_impl.cpp: In member function ‘virtual void SurveyDlg::OnMergeSurvey(wxCommandEvent&)’:
/home/ubuntu/survey_pi/src/surveygui_impl.cpp:377:86: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
plugin->m_pSurveyMerge = new SurveyMergeDlgDef(this, wxID_ANY, _T("Merging Surveys"), { 100, 100 }, wxDefaultSize, 0);
^
/home/ubuntu/survey_pi/src/surveygui_impl.cpp:377:118: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
plugin->m_pSurveyMerge = new SurveyMergeDlgDef(this, wxID_ANY, _T("Merging Surveys"), { 100, 100 }, wxDefaultSize, 0);
^
/home/ubuntu/survey_pi/src/survey_pi.cpp: In member function ‘bool survey_pi::ImportCSV(wxString)’:
/home/ubuntu/survey_pi/src/survey_pi.cpp:695:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
int64_t tim = *((int64_t*)&t);
^
/home/ubuntu/survey_pi/src/survey_pi.cpp:695:11: warning: unused variable ‘tim’ [-Wunused-variable]
int64_t tim = *((int64_t*)&t);
^
/home/ubuntu/survey_pi/src/survey_pi.cpp:669:6: warning: unused variable ‘l’ [-Wunused-variable]
int l = 0;
^
/home/ubuntu/survey_pi/src/survey_pi.cpp: In member function ‘wxArrayString survey_pi::GetSurveyList()’:
/home/ubuntu/survey_pi/src/survey_pi.cpp:797:17: warning: unused variable ‘survey_id’ [-Wunused-variable]
int survey_id = atoi(id);
^
/home/ubuntu/survey_pi/src/surveygui_impl.cpp: In member function ‘virtual void SurveyDlg::IsPanelSelected(wxBookCtrlEvent&)’:
/home/ubuntu/survey_pi/src/surveygui_impl.cpp:458:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (i = 1){
^
/home/ubuntu/survey_pi/src/surveygui_impl.cpp:464:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (i = 2){
^
/home/ubuntu/survey_pi/src/surveygui_impl.cpp:467:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (i = 0){
^
/home/ubuntu/survey_pi/src/survey_pi.cpp: In member function ‘wxArrayString survey_pi::SetSoundings(int)’:
/home/ubuntu/survey_pi/src/survey_pi.cpp:891:17: warning: unused variable ‘survey_id’ [-Wunused-variable]
int survey_id = atoi(id);
^
/home/ubuntu/survey_pi/src/surveygui_impl.cpp: In member function ‘void SurveyDlg::SetProfile()’:
/home/ubuntu/survey_pi/src/surveygui_impl.cpp:499:6: warning: unused variable ‘r1’ [-Wunused-variable]
int r1 = myRows[0][0];
^
/home/ubuntu/survey_pi/src/surveygui_impl.cpp:500:6: warning: unused variable ‘r2’ [-Wunused-variable]
int r2 = myRows[0][1];
^
/home/ubuntu/survey_pi/src/surveygui_impl.cpp: In member function ‘virtual void SurveyDlg::OnItemDelete(wxCommandEvent&)’:
/home/ubuntu/survey_pi/src/surveygui_impl.cpp:577:6: warning: unused variable ‘sid’ [-Wunused-variable]
int sid = 0;
^
/home/ubuntu/survey_pi/src/survey_pi.cpp: In member function ‘void survey_pi::FillSurveyDropdown()’:
/home/ubuntu/survey_pi/src/survey_pi.cpp:1307:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < GetSurveyList().Count(); i++){
^
/home/ubuntu/survey_pi/src/survey_pi.cpp: In member function ‘bool survey_pi::GetSurveySoundings(int)’:
/home/ubuntu/survey_pi/src/survey_pi.cpp:1708:20: warning: unused variable ‘depth’ [-Wunused-variable]
double
depth = atof(dpt);
^
/home/ubuntu/survey_pi/src/survey_pi.cpp: In member function ‘void survey_pi::ParseNMEASentence(wxString)’:
/home/ubuntu/survey_pi/src/survey_pi.cpp:2031:29: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
int64_t i = *((int64_t*)&t);
^
/home/ubuntu/survey_pi/src/survey_pi.cpp:2031:11: warning: unused variable ‘i’ [-Wunused-variable]
int64_t i = *((int64_t*)&t);
^
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:48:0,
from /home/ubuntu/survey_pi/src/surveygui_impl.cpp:30:
/home/ubuntu/survey_pi/src/cross.xpm: At global
scope:
/home/ubuntu/survey_pi/src/cross.xpm:2:14: warning: ‘cross’ defined but not used [-Wunused-variable]
static char *cross[] = {
^
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:49:0,
from /home/ubuntu/survey_pi/src/surveygui_impl.cpp:30:
/home/ubuntu/survey_pi/src/circle.xpm:2:14: warning: ‘circle’ defined but not used [-Wunused-variable]
static char *circle[] = {
^
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:50:0,
from /home/ubuntu/survey_pi/src/surveygui_impl.cpp:30:
/home/ubuntu/survey_pi/src/square.xpm:2:14: warning: ‘square’ defined but not used [-Wunused-variable]
static char *square[] = {
^
[ 12%] Building CXX object CMakeFiles/survey_pi.dir/src/mygridtablebase.cpp.o
make[2]: *** [CMakeFiles/survey_pi.dir/src/surveygui_impl.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:48:0,
from /home/ubuntu/survey_pi/src/survey_pi.cpp:37:
/home/ubuntu/survey_pi/src/cross.xpm: At global
scope:
/home/ubuntu/survey_pi/src/cross.xpm:2:14: warning: ‘cross’ defined but not used [-Wunused-variable]
static char *cross[] = {
^
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:49:0,
from /home/ubuntu/survey_pi/src/survey_pi.cpp:37:
/home/ubuntu/survey_pi/src/circle.xpm:2:14: warning: ‘circle’ defined but not used [-Wunused-variable]
static char *circle[] = {
^
In file included from /home/ubuntu/survey_pi/src/survey_pi.h:50:0,
from /home/ubuntu/survey_pi/src/survey_pi.cpp:37:
/home/ubuntu/survey_pi/src/square.xpm:2:14: warning: ‘square’ defined but not used [-Wunused-variable]
static char *square[] = {
^
make[2]: *** [CMakeFiles/survey_pi.dir/src/survey_pi.cpp.o] Error 1
/home/ubuntu/survey_pi/src/mygridtablebase.cpp: In member function ‘virtual void myGridTableBase::SetColLabelValue(int, const wxString&)’:
/home/ubuntu/survey_pi/src/mygridtablebase.cpp:44:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(numcol < column_labels.size())
^
/home/ubuntu/survey_pi/src/mygridtablebase.cpp: In member function ‘virtual bool myGridTableBase::AppendCols(size_t)’:
/home/ubuntu/survey_pi/src/mygridtablebase.cpp:83:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i =0; i < numcol; i++)
^
make[1]: *** [CMakeFiles/survey_pi.dir/all] Error 2
make: *** [all] Error 2
It seems surveygui_impl.h has some problems.
Any ideas on what action to take to fix these problems?
Thanks,
Freddie