Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 19-05-2012, 22: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, 08: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


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


Advertise Here


All times are GMT -7. The time now is 12:38.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.