"looks like you have imported nohal_soundings.gmp"
Actually not. I "Read Nmea" and selected VDR-AIS-file.txt from my File Thingie directory NMEA.
"At the moment you need to use the dropdown to re-select the survey name. When you do this the soundings will appear in the table."
Thanks, I had been shutting down O and restarting to get it to show. This is a bit of a problem and makes it harder to use.
"'Profile' had so many problems I commented it out for the time being."
Nothing is showing for me, ever . I assume this is a graphic display and may depend on opengl or something. Have not fooled with it yet.
At the moment I think all the soundings of all the surveys in the database are plotted. Need to make a way of only rendering soundings from the survey in the dropdown.
I believe that is correct. It does help us find the soundings because only a few of the menu items are operational such as "Read Nmea" "Export" "Import" "New" and "Delete" - "Zoom to" which would help does not work. And "Properties" might help us locate them.
I did look in Route Manager and I think these are actually shown as "Tracks"
In doing this I wished that I could go into "Tracks" or "Routes" and select a waypoint or track and just "Zoom to it" but that is probably an O feature request.
I tried to run several VDR files to see if Survey_pi would record the Nmea data stream which is what I would expect. It does not seem to do that yet, and there are no controls for that anyway, such as start, stop, save to etc. So I am guessing it is not implimented yet. For the time being we are just reading Nmea recordings and Import & Export *.gmp files.
"Reading Nmea" tends to be pretty picky about the file format and hangs up easily causing O to stall. This operation will have to become more robust such that malformed and unknown sentences and partial sentences are automatically thrown out.
I messed up the toggle Pavel made for recording NMEA from a connection to instruments. However, if you start a new survey again and play a VDR file using the VDR plugin you will see that the depth information appears in the table anyway, just no way of stopping or starting it yet. With this I found that Lat and Lon were reversed (fix not yet uploaded to GitHub) so you need to zoom out a long way to find the (wrongly plotted) soundings on the chart.
Thanks Mike, this is helpful. I will try VDR again.
I deleted my previous setup, including the readme file and the geos files that I had placed there.
The new readme file no longer seems to have the instructions for windows, but I went back and looked at pavels readme which says put *.dll's in the survey_pi main directory.
Your note above in the forum says to put *.lib in the plugin main dir
geos_c.lib, - NOT found
iconv.lib, - found (also in survey_pi main dir
freexl.lib - found
proj.lib - NOT found
(Your note in the readme say *.dll's)
I am unable to find the files as noted above. I went back and found the corresponding dlls and put them in survey_pi. and configured the cmake-Gui
and then ran the standalone. I got some errors in the attached.
(also see my notes above the error output please.)
Should I make a file OSgeo4W.7z with the four dlls' needed?
Then someone with authority can upload to sourceforge
Quote from Pavel:
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
So these files could be available on SourceForge for users to download and should be placed in the main OpenCPN program folder, to allow the plugin to run.
The hard part: Lib files to build the plugin.
My workflow for making this plugin was CMake-GUI - configure/generate. Then Visual Studio Express 2013 for Desktop to finally link and build.
Quote from my post:
geos_c.lib, iconv.lib, freexl.lib and proj.lib from C:\OSGeo4W (Windows) have to be linked in.
I did not explain this very well. The linking in VS 2013 was done by:
Properties/Linker/Input/Additional Dependencies and then making an entry for each of these .lib files. On my machine the files remain in C:\OSGeo4W\lib. The errors reported are all due to the lack of links to these libs.
My C:\OSGeo4W is 300MB. Using osgeo4w-setup-x86.exe and Advanced Install you can choose to install just the libraries you need, which correspond to those listed above.
Perhaps someone with a knowledge of CMake could take a look at CMakeLists.txt, to make the manual linking redundant (and probably remove a lot of mistakes lurking there). 'TinyXML not found' is not a problem, because I included those files in the source code and it will build with those.
Unfortunately the final plugin is too large to post here.
Progress on compiling standalone survey_pi
---------------------------- Usage on Windows
You need 4 dll files from OSGeo4W.
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 instalation
The four DLL files needed are also in OpenCPN Beta File Thingie rguser, rgpass
Under Hydrology_pi directory, look for OSgeo4W-DLL.7z
Unzip to the ../survey_pi/ main directory.
The files are freexl.dll, geos_c.dll, iconv.dll and proj.dll.
Compilation on Windows:
You need 4 libraries from OSGeo4W.
Get OSGeo4Win: OSGeo4W
Quick Start for OSGeo4W Users
Download the 32bit or 64bit OSGeo4W network installer <--- Get 32bit
The file I downloaded for OSGeo4W was 'osgeo4w-setup-x86.exe'.
Start this file, and pick "Advanced Mode" when it shows up.
Install the following libraries: proj.4, freexl, geos, iconv
--The above file is a selector for what to download.
--Don't blindly do a full install (1.7gb) in 'Advanced mode'. Some components require 3rd party additions
--Using these searchs (freexl, geos, iconv, proj) and then change 'skip' to keep for download.
--e.g. Advanced mode you enter a search for "freexl" and then change 'skip' to download,
--Then search for the next lib. Then install by continuing with "Next".
If you don't like the default location C:\OSGeo4W, you will have to modify CMakeLists.txt
After running this left me with C:\OSGeo4W\ and folders apps,bin,etc,include,lib,share,var. (73mb)
freexl.lib and proj.lib are not installed in Windows folder c:\OSGeo4W\libs using the basic setup program now available. Perhaps they were in the past.
Along the way I must have made these 2 libs and copied them to that folder.
To save the pain of describing where to find and make the libs (a la Google) I have now put all 4 libs on GitHub, in an Extras/libs folder.
For linking with Visual Studio 2013 Express for Desktop:
Solution Explorer shows a list of items. Right-Click on survey_pi and at the bottom of the list you will find 'Properties'. Select 'Properties' and a form 'survey_pi Property Pages' is shown.
Click on 'Linker' and 'Input' and at the top of the list on the right you will find 'Additional Dependencies'. Click on the line of files and on the far right you get a drop down arrow. Click this and you get the option <Edit...>. The files are now shown as a list and you can insert the 4 lib files one by one. Copy and paste can be used in this list. The path to the lib file needs to be included as well as the file name.
Download this file, create a new folder C:/splite-msvc and extract the files in accordance with the readme.
To link OSGeo4W files with Survey_pi while in Visual Studio 2013 Express for Desktop:
Open Visual Studio 2013 Express for Desktop.
Open a File > New project and point to ..survey_pi/build/survey_pi.sln
Solution Explorer (right panel) shows a list of items.
Right-Click on the "survey_pi" halfway down the list not the top survey_pi (8 projects).
Select "Set to startup project"
Right Click again on "survey_pi" halfway down the list.
At the bottom of the popup list you will find 'Properties'.
Select 'Properties' and a form 'survey_pi Property Pages' is shown.
Click on 'Linker' and 'Input' and at the top of the list on the right you will find 'Additional Dependencies'.
Click on the line of files and on the far right you get a drop down arrow.
Click this and you get the option <Edit...>.
The files are now shown as a list and you can insert the 4 lib files one by one.
Copy and paste can be used in this list. The path to the lib file needs to be included as well as the file name.
Added to the end:
Now when I do cmake -T v120_xp .. and cmake --build . --config release
I still get 68 Link Ref errors....
Do I need to follow the Readme in splite-msvc and
the main folder is intented to be:
thus, the following layout is expected:
+-+ bin [.exe and .dll files]
+-+ include [header files]
+-+ lib [.lib libraries]
in order to compile and link:
- open the Visual Studio Command Prompt
- goto the folder containing the sources
nmake /f makefile.vc
nmake /f makefile.vc install
C:\splite-msvc>nmake /f makefile.vc
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1 Copyright (C) Microsoft Corporation. All rights reserved.
NMAKE : fatal error U1052: file 'makefile.vc' not found