Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 25-09-2015, 08:12   #1576
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: grenada
Boat: bristol 27
Posts: 2,517
Re: Beta Test / Technical

The integrated chart downloader gives me:

Failed to Download Catalog: https://raw.githubusercontent.com/ch...NC_Catalog.xml
Verify there is a working Internet connection.


Every time for whatever chart I try. I have a working connection. When I put the url into wget it works.
__________________

__________________
boat_alexandra is online now   Reply With Quote
Old 25-09-2015, 08:19   #1577
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,905
Re: Beta Test / Technical

Sean...
Works fine for me. Can you try to trace the failure (maybe you can look at the actual traffic with wireshark at the same time)

Thanks

Pavel
__________________

__________________
nohal is online now   Reply With Quote
Old 25-09-2015, 08:58   #1578
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: grenada
Boat: bristol 27
Posts: 2,517
Re: Beta Test / Technical

maybe the timeout is too low... I will try to fix it.
__________________
boat_alexandra is online now   Reply With Quote
Old 25-09-2015, 10:06   #1579
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 3,143
Re: Beta Test / Technical

Sean,

When I have seen this it was due to the way we request the file from the server. Can you run wire shark and see what the TCP conversation is doing?

I doubt it is a timeout issue.
__________________
transmitterdan is offline   Reply With Quote
Old 25-09-2015, 10:24   #1580
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,494
Re: Beta Test / Technical

@NahanniV...

jm...

I just tried a build on a fresh Raspian image, using current github (master) contents.

For curl, all I needed was

Code:
$sudo apt-get install libcurl4-openssl-dev
The cmake code seems to be looking only for

Code:
libcurl.so
curl/curl.h
in the standard library and include paths. You may check that.

Building now, will report results.

Dave
__________________
bdbcat is online now   Reply With Quote
Old 25-09-2015, 13:15   #1581
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: grenada
Boat: bristol 27
Posts: 2,517
Re: Beta Test / Technical

I had to apply this to get it compiling with mingw:
Code:
diff --git a/Curl.cmake b/Curl.cmake
index c23e690..22b230e 100644
--- a/Curl.cmake
+++ b/Curl.cmake
@@ -17,7 +17,7 @@ IF(WIN32)
     INSTALL(FILES "buildwin/curl-ca-bundle.crt" DESTINATION ".")
 
   ELSE(MSVC) ## mingw
-    SET(CURL_LIBRARIES "curl.dll")
+    SET(CURL_LIBRARIES "${CMAKE_SOURCE_DIR}/buildwin/libcurl.dll")
     INSTALL(FILES "buildwin/libcurl.dll" DESTINATION ".")
   ENDIF(MSVC)
     
diff --git a/include/ocpn_plugin.h b/include/ocpn_plugin.h
index 18ca4d5..943f73d 100644
--- a/include/ocpn_plugin.h
+++ b/include/ocpn_plugin.h
@@ -1120,7 +1120,8 @@ private:
     bool m_b_complete;
 };
 
-DECLARE_EVENT_TYPE(wxEVT_DOWNLOAD_EVENT, -1)
+//DECLARE_EVENT_TYPE(wxEVT_DOWNLOAD_EVENT, -1)
+extern DECL_EXP const wxEventType wxEVT_DOWNLOAD_EVENT;
 
 
 #endif //_PLUGIN_H_
diff --git a/src/pluginmanager.cpp b/src/pluginmanager.cpp
index 2eea112..71d8c57 100644
--- a/src/pluginmanager.cpp
+++ b/src/pluginmanager.cpp
@@ -4846,7 +4846,7 @@ wxEvent* OCPN_downloadEvent::Clone() const
     return newevent;
 }
 
-const wxEventType wxEVT_DOWNLOAD_EVENT = wxNewEventType();
+const wxEventType wxEVT_DOWNLOAD_EVENT  = wxNewEventType();
So it compiles and works in wine, but crashes when I click update.
__________________
boat_alexandra is online now   Reply With Quote
Old 25-09-2015, 13:37   #1582
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,645
Re: Beta Test / Technical

Quote:
Originally Posted by bdbcat View Post
Sean...
This is fixed in github now. My bad. XP does not have trunc(), and my macro substitution was ill-formed. Fixed OK now.
Dave
Dave.. Fix confirmed for VS2010 and WinXP.
Thanks
Håkan
__________________
Hakan is offline   Reply With Quote
Old 25-09-2015, 14:51   #1583
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,645
Re: Beta Test / Technical

Win7 (VS2010 build) and Intel 965 graphic chipset.
A very positive report. Suddenly is the Dashboard graphic depth instrument working. See: OpenCPN Beta test 4.1.602 Release
My built is from today's Github but I don't know exactly when this was introduced, I haven't checked this instrument for a week or two.
Whatever someone did (hopefully intentional?) I'm very grateful.
Thanks
Håkan
__________________
Hakan is offline   Reply With Quote
Old 25-09-2015, 15:24   #1584
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: grenada
Boat: bristol 27
Posts: 2,517
Re: Beta Test / Technical

Quote:
Originally Posted by Hakan View Post
Win7 (VS2010 build) and Intel 965 graphic chipset.
A very positive report. Suddenly is the Dashboard graphic depth instrument working. See: OpenCPN Beta test 4.1.602 Release
My built is from today's Github but I don't know exactly when this was introduced, I haven't checked this instrument for a week or two.
Whatever someone did (hopefully intentional?) I'm very grateful.
Thanks
Håkan
This is probably from my mingw changes. I have been trying not to touch the dashboard but it did some really strange things with rendering that just didn't work in my environment.

Since this changed your output (even if positive) I think the code deserves a closer look because I really didn't intend to change behavior except to make it work without gdi+ and using mingw compiler.
__________________
boat_alexandra is online now   Reply With Quote
Old 25-09-2015, 15:52   #1585
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,645
Re: Beta Test / Technical

Sean...
OK, but I'm not sure if the failure from before was all about rendering. If you take a close look on the picture in my linked post above the whole depth instrument was a mishmash, also the title was false and from another instrument?
But, on the other hand, the failure was only present on W7 with the doubted Intel 965 graphic, so you may be right?
Håkan
__________________
Hakan is offline   Reply With Quote
Old 26-09-2015, 10:06   #1586
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,027
Re: Beta Test / Technical

Quote:
Originally Posted by bdbcat View Post
@NahanniV...

jm...

I just tried a build on a fresh Raspian image, using current github (master) contents.

For curl, all I needed was

Code:
$sudo apt-get install libcurl4-openssl-dev
The cmake code seems to be looking only for

Code:
libcurl.so
curl/curl.h
in the standard library and include paths. You may check that.

Building now, will report results.

Dave
I tried adding the path to libcurl.so.x

but still not working:

Code:
aruntu@aruntu:/usr/lib/arm-linux-gnueabihf$ ls libcurl.*
libcurl.so.3  libcurl.so.4  libcurl.so.4.3.0
aruntu@aruntu:~/OpenCPN/build$ cd /home/aruntu/OpenCPN/build
aruntu@aruntu:~/OpenCPN/build$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/lib/arm-linux-gnueabihf
aruntu@aruntu:~/OpenCPN/build$ cmake ..
-- *** Build Architecture is armhf
-- *** Staging to build opencpn 4.1.925 ***
-- *** Package will NOT include documentation ***
-- *** Package will NOT include GSHHS data ***
-- *** Package will NOT include tide and current data ***
-- Building for wxGTK2
-- Found OpenGLESv1
-- Found wxWidgets...
-- -L/usr/local/lib;-pthread;;;-lwx_baseu_net-3.0;-lwx_baseu_xml-3.0;-lwx_gtk2u_html-3.0;-lwx_gtk2u_adv-3.0;-lwx_gtk2u_aui-3.0;-lwx_gtk2u_core-3.0;-lwx_baseu-3.0;-lwx_gtk2u_gl-3.0
-- 
-- *** Staging to build opencpn  ***
-- Build type: Release
-- *** Will install to /usr/local  ***
-- Found GTK2
-- Found Portaudio: /usr/lib/arm-linux-gnueabihf/libportaudio.so
-- Portaudio Found
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindCURL.cmake:54 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  Curl.cmake:29 (FIND_PACKAGE)
  CMakeLists.txt:535 (INCLUDE)


-- Configuring incomplete, errors occurred!
See also "/home/aruntu/OpenCPN/build/CMakeFiles/CMakeOutput.log".
aruntu@aruntu:~/OpenCPN/build$
__________________
NahanniV is offline   Reply With Quote
Old 26-09-2015, 10:27   #1587
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,494
Re: Beta Test / Technical

jm...

Do you have libcurl.so? Do you have curl.h? Where are they, full path, please?

Dave
__________________
bdbcat is online now   Reply With Quote
Old 26-09-2015, 11:26   #1588
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,027
Re: Beta Test / Technical

I have:
/usr/lib/arm-linux-gnueabihf/libcurl.so.3
/usr/lib/arm-linux-gnueabihf/libcurl.so.4
/usr/lib/arm-linux-gnueabihf/libcurl.so.4.3.0
/home/aruntu/OpenCPN/plugins/chartdldr_pi/src/wxcurl/include/curl/curl.h
/home/aruntu/OpenCPN/src/wxcurl/include/curl/curl.h
__________________
NahanniV is offline   Reply With Quote
Old 26-09-2015, 11:55   #1589
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,494
Re: Beta Test / Technical

jm...

Something scrambled for sure.

The system copy of curl/curl.h is missing, which would have come in if you had been able to do:

Code:
$sudo apt-get install libcurl4-openssl-dev....
Temporarily fix this by:

Code:
$sudo cp -r /home/aruntu/OpenCPN/src/wxcurl/include/curl/ /usr/include
cmake should complete then. Don't know if the build will work. Try it.

Dave
__________________
bdbcat is online now   Reply With Quote
Old 26-09-2015, 12:19   #1590
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,027
Re: Beta Test / Technical

Quote:
Originally Posted by bdbcat View Post
jm...

Something scrambled for sure.

The system copy of curl/curl.h is missing, which would have come in if you had been able to do:

Code:
$sudo apt-get install libcurl4-openssl-dev....
Temporarily fix this by:

Code:
$sudo cp -r /home/aruntu/OpenCPN/src/wxcurl/include/curl/ /usr/include
cmake should complete then. Don't know if the build will work. Try it.

Dave
Sorry to be such a pain. It did not work.

Code:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find CURL (missing: CURL_LIBRARY) (found version "7.37.0")
I guess I need to figure out how to get curl4.

I am having a similar problem on my X86 Linux laptop (Ubuntu NAVIGATRIX), can't install curl4.

Is there a simple way I could eliminate the chart loader from the build, I don't need it; Isn't that why it's a plugin?

Thanks for your help,
JM.
__________________

__________________
NahanniV 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beta Marine Diesel michaelmrc Engines and Propulsion Systems 48 23-03-2016 14:44
Need some technical advice....antennas. Just a Tinch Marine Electronics 15 01-12-2007 16:57
Blue Sea Systems Technical Brief GordMay Electrical: Batteries, Generators & Solar 0 16-03-2007 05:16
technical difficulties witchcraft The Sailor's Confessional 1 30-05-2005 15:09
Dow Corning Technical Manual GordMay The Library 0 12-04-2005 17:25


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 07:34.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.