Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-01-2014, 14:30   #1
Registered User

Join Date: May 2012
Posts: 26
Problem with code modifications.

Hi i have tried to make a patch for the opencpn-dashboard_pi related to barometric pressure. Everything compile just fine, no errors. But when i run opencpn after "make install", the dashboard plugin does not shows up in the plugin list.
In Opencpn.log this three lines indicate that there is some problem with /libdashboard_pi.so.

- PlugInManager: Loading PlugIn: /usr/local/lib/opencpn/libdashboard_pi.so

- /usr/local/lib/opencpn/libdashboard_pi.so: undefined symbol: _ZN3MDAC1Ev

- PlugInManager: Cannot load library: /usr/local/lib/opencpn/libdashboard_pi.so /usr/local/lib/opencpn/libdashboard_pi.so: undefined symbol: _ZN3MDAC1Ev

Anybody that could lead me into the right track?
__________________

__________________
stedy is offline   Reply With Quote
Old 03-01-2014, 14:39   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Problem with code modifications.

stedy...
Your source code?

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Old 03-01-2014, 15:09   #3
Registered User

Join Date: May 2012
Posts: 26
Re: Problem with code modifications.

https://github.com/stedy6/OpenCPN
Have in mind that im a amateur.
__________________
stedy is offline   Reply With Quote
Old 03-01-2014, 17:27   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Problem with code modifications.

stedy...
I somehow miss the implementation of MDA - you created the header (mda.hpp), but did not implement the class (mda.cpp would be the name of the file).
You should also add the new files into CMakeLists.txt:
Code:
diff --git a/plugins/dashboard_pi/CMakeLists.txt b/plugins/dashboard_pi/CMakeLists.txt
index 8a86528..54d2353 100644
--- a/plugins/dashboard_pi/CMakeLists.txt
+++ b/plugins/dashboard_pi/CMakeLists.txt
@@ -164,6 +164,8 @@ SET(SRC_NMEA0183
     src/nmea0183/mta.hpp
     src/nmea0183/vlw.cpp
     src/nmea0183/vlw.hpp
+    src/nmea0183/mda.cpp
+    src/nmea0183/mda.hpp
 )
 INCLUDE_DIRECTORIES(src/nmea0183)
Pavel
__________________
nohal is offline   Reply With Quote
Old 04-01-2014, 04:28   #5
Registered User

Join Date: May 2012
Posts: 26
Re: Problem with code modifications.

Thank you Pavel(nohal). Some of the problem was related to git, i had not used "git add mda.cpp", and when i tried to apply a patch to a fresh clone of Opencpn these file was not included, The CmakeLists.txt was new for me. Thanks.
__________________
stedy 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 11:12.


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.