Cruisers Forum
 


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 16-10-2015, 08:25   #61
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
Images: 2
Re: Hydrographic Survey Plugin

Three errors when trying to compile as standalone:
----------
GitHub\o-plugin\mr-survey_pi\build>cmake -T v120_xp ..
-- Building for: Visual Studio 12 2013
-- The C compiler identification is MSVC 18.0.31101.0
-- The CXX compiler identification is MSVC 18.0.31101.0
-- Check for working C compiler using: Visual Studio 12 2013
-- Check for working C compiler using: Visual Studio 12 2013 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 12 2013
-- Check for working CXX compiler using: Visual Studio 12 2013 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- *** Building survey_pi ***
CMake Error at CMakeLists.txt:55 (INCLUDE):
include called with wrong number of arguments. include() only takes one
file.
-- Found Gettext: C:/Program Files (x86)/Poedit/GettextTools/bin/msgmerge.exe
-- tinyxml library not found
CMake Error at CMakeLists.txt:168 (ADD_DEPENDENCIES):
add_dependencies called with incorrect number of arguments


-- Configuring incomplete, errors occurred!
See also "C:/Users/Rick/Documents/GitHub/o-plugin/mr-survey_pi/build/CMakeFiles/CMakeOutput.log".

C:\Users\Rick\Documents\GitHub\o-plugin\mr-survey_pi\build>


1. cmakelists.txt file Line 55
INCLUDE(${wxWidgets_USE_FILE})

2. cmakelists.txt file Line 168
IF(WIN32)
SET(OPENCPN_IMPORT_LIB "../../${CMAKE_CFG_INTDIR}/${PARENT}")
TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} ${OPENCPN_IMPORT_LIB} )
ADD_DEPENDENCIES(${PACKAGE_NAME} ${PARENT})
TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} C:/OSGeo4W/lib/iconv.lib )
ENDIF(WIN32)

3.
tinyxml library not found

===
The notes https://github.com/Rasbats/survey_pi also say that to compile I need

Quote:
Compilation on Windows: Get OSGeo4Win: OSGeo4W Install the following libraries: proj.4, freexl, geos, iconv If you don't like the default location C:\OSGeo4W, you will have to modify CMakeLists.txt

Usage on Windows:
Copy the following DLLs to the OpenCPN program folder:
freexl.dll, geos_c.dll, proj.dll, iconv.dll - They can be found in the bin subfolder of your OSGeo4W installation
For compilation: I think I will change the path to buildwin directory and put the libraries there. Would that be ok?

For useage: I think I should make a buildwin directory and put the geos dlls in there so hopefully the Nsis cpack command incorporates them (even though this is not good practice according to Pavel). I will have to try to modify cmakelists.txt accordingly.

Should I just copy the necessary tiny xml somewhere?

How do I fix the wx_widget error?
rgleason is offline   Reply With Quote
Old 16-10-2015, 08:38   #62
Registered User

Join Date: May 2012
Posts: 1,253
Re: Hydrographic Survey Plugin

There should be an emoticon for "DANGER, amateur programmer at work!"
?

I have not allowed for all the flavours of NMEA sentence introductory strings. In your NMEA text file if you change $GPGLL to $IIGLL and $SDDBT to $IIDBT you should find that you can read your file with the plugin. I should have used the substring GLL and DBT in the code.

"number of soundings" allows you to decide how many soundings to import. O will stop responding for a time if you select too many, say >500. When O is responding again the soundings will have been processed. To show them re-select the survey from the dropdown.

I need to look at the profile problem. This option has now been taken out.

The compiled plugin for 4.1.925 (4.1.925_survey_pi.dll) is included in GiHub, in a new 'Extras' folder. Also included is '4.0.0_survey_pi.dll' for OpenCPN 4.0.0. The plugins are too large to post here.

https://github.com/Rasbats/survey_pi.git

Keep the comments coming.

Mike
Rasbats is offline   Reply With Quote
Old 16-10-2015, 09:21   #63
Registered User

Join Date: May 2012
Posts: 1,253
Re: Hydrographic Survey Plugin

Rick ...

Yes, I am having the same problems with a standalone compile of survey_pi.

If you have already built O 4.1.925 the way I compiled the plugin was to place 'survey_pi' from the git clone in the 4.1.925 plugins folder. cmake -T v120_xp .. in the 4.1.925 build folder and using cmake_gui worked fine for me. And then the instructions for "Compiling from the command line" (Using the Developer Command Prompt for VS2013)

Mike
Rasbats is offline   Reply With Quote
Old 16-10-2015, 09:21   #64
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
Images: 2
Re: Hydrographic Survey Plugin

Mike,

I tried copying ocpn_draw src/tinyxml directory to survey_pi/src/tinyxml and then changing cmakelists.txt but what I did did not help.

There are too many arguments for include and I have not got the form right.
Tried following Jon Gough's cmakelists.txt


Quote:
C:\Users\Rick\Documents\GitHub\o-plugin\mr-survey_pi\build>cmake -T v120_xp ..
-- *** Building survey_pi ***
CMake Error at CMakeLists.txt:55 (INCLUDE):
include called with wrong number of arguments. include() only takes one
file.


-- tinyxml library not found
CMake Error at CMakeLists.txt:168 (ADD_DEPENDENCIES):
add_dependencies called with incorrect number of arguments


-- Configuring incomplete, errors occurred!
See also "C:/Users/Rick/Documents/GitHub/o-plugin/mr-survey_pi/build/CMakeFiles/CMakeOutput.log".
Attached Files
File Type: doc CMakeOutput.log.doc (26.0 KB, 95 views)
rgleason is offline   Reply With Quote
Old 16-10-2015, 09:36   #65
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
Images: 2
Re: Hydrographic Survey Plugin

I Deleted the repos, and git cloned again (there were updates and I changed some files)

With clean install
Quote:
C:\Users\Rick\Documents\GitHub\o-plugin\mr-survey_pi\build>cmake -T v120_xp ..
-- Building for: Visual Studio 12 2013
...
-- Detecting CXX compile features - done
-- *** Building survey_pi ***
CMake Error at CMakeLists.txt:55 (INCLUDE):
include called with wrong number of arguments. include() only takes one
file.

-- Found Gettext: C:/Program Files (x86)/Poedit/GettextTools/bin/msgmerge.exe
-- tinyxml library not found
CMake Error at CMakeLists.txt:168 (ADD_DEPENDENCIES):
add_dependencies called with incorrect number of arguments


-- Configuring incomplete, errors occurred!
See also "C:/Users/Rick/Documents/GitHub/o-plugin/mr-survey_pi/build/CMakeFiles/CMakeOutput.log"
Mike saw your note above. Will try to follow instructions.
Attached Files
File Type: doc CMakeOutput.log.doc (26.0 KB, 45 views)
rgleason is offline   Reply With Quote
Old 16-10-2015, 10:20   #66
Registered User

Join Date: May 2012
Posts: 1,253
Re: Hydrographic Survey Plugin

Rick ...

Perhaps you could test my compiled plugin from the Extras folder. You need 'iconv.dll' in the main OpenCPN program folder.

Mike
Rasbats is offline   Reply With Quote
Old 16-10-2015, 10:30   #67
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
Images: 2
Re: Hydrographic Survey Plugin

Mike, will do that.
Which Ocpn should I be using to compile?
Bdcat Partially Revert latest grib_pi Latest commit 4a38e6 2 days ago
or
* master cc57a1f 4.1.925

I'll do more later tonight.
rgleason is offline   Reply With Quote
Old 16-10-2015, 10:32   #68
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,888
Re: Hydrographic Survey Plugin

Mike,

works correctly with the patched VDR file (tested now in 4.0.0).
And yes - an eternity while processing the complete file.

Importing Pavel's gmx works well - if you don't define a new survey it will append the data at the end of the actual one.

Being able to mark and delete/edit data from the grid would be interesting.

And as you stated: time is system time at the moment of importing.
Using RMC would allow to have date and time from the survey (position as well of course).

1.300€ for Hydromagic is a bit steep of a price....
What alternatives do we have to create a map?

Hubert
bcn is offline   Reply With Quote
Old 16-10-2015, 11:07   #69
Registered User

Join Date: May 2012
Posts: 1,253
Re: Hydrographic Survey Plugin

Thanks for the test Hubert. GE2KAP now has an option to make a kap from an area of OpenCPN, but a transparent layer with the soundings that you can turn on/off would be useful.

Rick ...

Today I just used: git clone git://github.com/OpenCPN/OpenCPN.git

Mike
Rasbats is offline   Reply With Quote
Old 16-10-2015, 11:21   #70
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,888
Re: Hydrographic Survey Plugin

Mike,

another question:
any documentation about the settings in Preferences at the Plug-in tab?

Hubert
bcn is offline   Reply With Quote
Old 16-10-2015, 11:35   #71
Registered User

Join Date: May 2012
Posts: 1,253
Re: Hydrographic Survey Plugin

Hubert,

Sorry, no documentation yet. I have just played with the settings preferences Pavel made.

Mike
Rasbats is offline   Reply With Quote
Old 16-10-2015, 11:48   #72
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 723
Re: Hydrographic Survey Plugin

Quote:
Originally Posted by bcn View Post


1.300€ for Hydromagic is a bit steep of a price....
What alternatives do we have to create a map?

Hubert
Se my post
http://www.cruisersforum.com/forums/...ml#post1719077

I think the commercial Olex is based on the opensource MbSystem MB-System: Mapping the Seafloor with some additions.
petter5 is offline   Reply With Quote
Old 16-10-2015, 18:52   #73
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
Images: 2
Re: Hydrographic Survey Plugin

Mike Trying
Quote:
If you have already built O 4.1.925 the way I compiled the plugin was to place 'survey_pi' from the git clone in the 4.1.925 plugins folder. cmake -T v120_xp .. in the 4.1.925 build folder and using cmake_gui worked fine for me. And then the instructions for "Compiling from the command line" (Using the Developer Command Prompt for VS2013)
I get three errors still at cmake -t v120_xp .. cant find tinyxml library, line 55 include only takes one file, configuring incomplete.

Tomorrow morning I think I need to install the OSGeo4Win: OSGeo4W and Instal, then try it.

----------
Under Extra directory have copied the dll's to respective plugin directories for 4 and 4.1. Then copied the iconv.dll to the root opencpn dir and they do not seem to appear in either 4.0 or 4.1. Did I miss something? What are the db files for?
rgleason is offline   Reply With Quote
Old 17-10-2015, 05:23   #74
Registered User

Join Date: May 2011
Posts: 847
Re: Hydrographic Survey Plugin

Quote:
Originally Posted by bcn View Post
1.300€ for Hydromagic is a bit steep of a price....
What alternatives do we have to create a map?

Hubert
GRASS, Global Mapper ($$), ARC GIS ($)

--
Chris
SY Morgane
Tweed's World | A high latitude sailor preparing for tropical cruising
Littlechay is offline   Reply With Quote
Old 17-10-2015, 05:24   #75
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,888
Re: Hydrographic Survey Plugin

Mike,

trying the 4.1.925 version from Gihub it fails to load:
Code:
1:13:20 PM: PlugInManager searching for PlugIns in location C:\Program Files (x86)\OpenCPN 4.1.925\plugins
1:13:21 PM: PlugInManager: Loading PlugIn: C:\Program Files (x86)\OpenCPN 4.1.925\plugins\4.1.925_survey_pi.dll
1:13:21 PM: Error: Failed to load shared library 'C:\Program Files (x86)\OpenCPN 4.1.925\plugins\4.1.925_survey_pi.dll' (error 127: die angegebene Prozedur wurde nicht gefunden.)  --> "requested procedure not found"
1:13:21 PM:    PlugInManager: Cannot load library: C:\Program Files (x86)\OpenCPN 4.1.925\plugins\4.1.925_survey_pi.dll 
1:13:21 PM: PlugInManager: Loading PlugIn: C:\Program Files (x86)\OpenCPN 4.1.925\plugins\chartdldr_pi.dll
The dll is at the correct place in the plug-in folder of 4.1.925

Hubert
bcn is offline   Reply With Quote
Reply

Tags
survey

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN Radar Overlay PlugIn bdbcat OpenCPN 904 Today 13:19
Hydrographic Survey Plugin nohal OpenCPN 332 21-11-2024 09:17
Marine Survey 101 boatpoker Monohull Sailboats 42 15-07-2021 06:51
Low Cost Boat Worth a Survey ? JDRichlen Liveaboard's Forum 52 18-03-2012 11:32

Advertise Here


All times are GMT -7. The time now is 22:24.


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.