Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 19-05-2012, 23:52   #1
Registered User
 
globalkeith's Avatar

Join Date: Sep 2010
Location: Zhuhai, China
Boat: Prout G55
Posts: 76
Compilation error building survey_pi

Hiya,

This is probably for Pavel, unless anyone else happens to know about this error:

Trying to compile with survey_pi (latest from github) and I get this error:

/home/keith/code/vendor/opencpn/plugins/survey_pi/src/surveygui_impl.cpp:66:147: error: cannot pass objects of non-trivially-copyable type ‘class wxString’ through ‘...’
make[2]: *** [plugins/survey_pi/CMakeFiles/survey_pi.dir/src/surveygui_impl.cpp.o] Error 1
make[1]: *** [plugins/survey_pi/CMakeFiles/survey_pi.dir/all] Error 2
make: *** [all] Error 2

I was able to fix this with help from this link on line 66:

- int answer = wxMessageBox(wxString::Format(_("Are you sure you want to permanently delete the survey %s?"), m_chSurvey->GetStringSelection()), _("Confirm"),
+ int answer = wxMessageBox(wxString::Format(_("Are you sure you want to permanently delete the survey %s?"), m_chSurvey->GetStringSelection().c_str()), _("Confirm"),

However I now get the following error:

/home/keith/code/vendor/opencpn/plugins/survey_pi/src/soundinggridtable.cpp:1:35: fatal error: SoundingGridTable.h: No such file or directory
compilation terminated.
make[2]: *** [plugins/survey_pi/CMakeFiles/survey_pi.dir/src/soundinggridtable.cpp.o] Error 1
make[1]: *** [plugins/survey_pi/CMakeFiles/survey_pi.dir/all] Error 2
make: *** [all] Error 2


Can't fix that one I'm afraid.

thanks
Keith
__________________
globalkeith is offline   Reply With Quote
Old 20-05-2012, 09:01   #2
Registered User
 
globalkeith's Avatar

Join Date: Sep 2010
Location: Zhuhai, China
Boat: Prout G55
Posts: 76
Re: Compilation error building survey_pi

Hi Pavel,

got this working, sent you a pull request.

cheers
Keith
__________________
globalkeith is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 13:30.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.