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 02-04-2019, 05:23   #16
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: oeSENC_PI for OpenCPN5 on Raspberry Pi

Quote:
Originally Posted by stelian View Post
I get this one too (on x86_64 linux), seems to be related to the latest, post-5.0.0 changes pushed into the OpenCPN git repo.
I forgot to say that the v5.0.x branch does not have this problem. The issue is clearly created by the library path changes that went into the master branch...

Stelian.
stelian is offline   Reply With Quote
Old 02-04-2019, 17:05   #17
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,461
Re: oeSENC_PI for OpenCPN5 on Raspberry Pi

Stelian...


As we have said, the the github master branch is a WIP sandbox when not actually running a Beta test. If you want a reliable build, use the in-production V5.0.0 branch.


Or, if you want to help, submit Issue reports to github, so that they will not be overlooked.


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 02-04-2019, 23:51   #18
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: oeSENC_PI for OpenCPN5 on Raspberry Pi

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

As we have said, the the github master branch is a WIP sandbox when not actually running a Beta test. If you want a reliable build, use the in-production V5.0.0 branch.

Or, if you want to help, submit Issue reports to github, so that they will not be overlooked.

Thanks
Dave
Hi Dave,

I am well aware of the instable status on master, using the v5.0.x branch was exactly what I recommended to Hakan...

Sorry if this wasn't clear.

Stelian.
stelian is offline   Reply With Quote
Old 03-04-2019, 13:39   #19
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,239
Re: oeSENC_PI for OpenCPN5 on Raspberry Pi

Dave..
Now I've cleaned the repository and usr/ from all opencpn on the RPi. Still Raspian Stretch.
I'm using O commit: Tag 5.0
oeserverd is not found by O/oeSENC: Message box when I try to view oeSENC charts: "Searching for oeserverd at {}"
After cmake ../, make and make install for O, oeSENC, radar_pi the files are located as the list below.
Are you sure cmakelist is correct for this system? Where should oeserverd be located to be found?

pi@raspberrypi:~ $ find /usr/ -name oeserverd
/usr/bin/oeserverd

pi@raspberrypi:~ $ find /usr/ -name "libsglarmh*"
/usr/lib/opencpn/libsglarmhf32-2.30.0.0.so

pi@raspberrypi:~ $ find /usr/ -name lib*_pi.so
/usr/lib/opencpn/liboesenc_pi.so
/usr/local/lib/opencpn/libchartdldr_pi.so
/usr/local/lib/opencpn/libradar_pi.so
/usr/local/lib/opencpn/libgrib_pi.so
/usr/local/lib/opencpn/libdashboard_pi.so
/usr/local/lib/opencpn/libwmm_pi.so

pi@raspberrypi:~ $ find /usr/ -name opencpn
/usr/share/opencpn
/usr/lib/opencpn
/usr/local/bin/opencpn
/usr/local/share/opencpn
/usr/local/share/doc/opencpn
/usr/local/lib/opencpn
Hakan is offline   Reply With Quote
Old 03-04-2019, 16:46   #20
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,461
Re: oeSENC_PI for OpenCPN5 on Raspberry Pi

Hakan...


The default CMake builds for /usr/local.
However, the Ubuntu PPA builds go to /usr.


If you install a PPA build, the oeserverd is in /usr/bin.
If you build locally, and then "$sudo make install", oeserverd lands in /usr/local/bin.


At runtime, oesenc_pi tries to find oeserverd in the same directory that the OCPN base was loaded from. This introduces a complication for devs.
What this means is that if you start OCPN from anywhere other than a normally installedl "XXX/YYY/bin" directory, oeserverd will not be found.
When I am doing debug/dev work, I simply copy oeserverd to the dir in which I am building O core. Thus always found. OK, since oeserverd rarely changes.



When in doubt, read the code...


Code:
    //        Specify the location of the oeserverd helper.
    wxFileName fn_exe(GetOCPN_ExePath());
    g_sencutil_bin = fn_exe.GetPath( wxPATH_GET_VOLUME | wxPATH_GET_SEPARATOR) + _T("oeserverd");

Hope this helps
Dave
bdbcat is offline   Reply With Quote
Old 03-04-2019, 20:38   #21
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,239
Re: oeSENC_PI for OpenCPN5 on Raspberry Pi

Quote:
Originally Posted by bdbcat View Post
....
The default CMake builds for /usr/local.
..............
If you build locally, and then "$sudo make install", oeserverd lands in /usr/local/bin.
.............Dave
Dave...
Thanks but what I'm trying to explain is that "sudo make install" does not put oeserverd in /usr/local/bin but in:
pi@raspberrypi:~ $ find /usr/ -name oeserverd
/usr/bin/oeserverd
Also is the _pi.so installed in /usr/lib/opencpn and not in /usr/local/lib/opencpn. See my list in last post.

I've no problem moving files but my comments are more about that the local built on RPi does not act as of your intention.
Håkan
Hakan is offline   Reply With Quote
Old 04-04-2019, 06:13   #22
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,461
Re: oeSENC_PI for OpenCPN5 on Raspberry Pi

Hakan...


Hard to see how that could happen. for linux (GTK), the CMake does not distinguish install location depending on target architecture.


Please try this:
in your oesenc_pi build directory, delete the file CmakeCache.txt. Then run cmake again, as normal: "$cmake .." This should pick up the default install location from Cmakelists.txt. Verify by looking at the output of cmake for this message:


""*** Will install to ${CMAKE_INSTALL_PREFIX} ***""


Dave
bdbcat is offline   Reply With Quote
Old 04-04-2019, 06:18   #23
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,239
Re: oeSENC_PI for OpenCPN5 on Raspberry Pi

Dave..
As said I've deleted the whole O and oesenc repositories and opencpn related files in /usr/....... before the last clone, cmake ../, make and make install
Håkan
Hakan is offline   Reply With Quote
Old 04-04-2019, 06:19   #24
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,461
Re: oeSENC_PI for OpenCPN5 on Raspberry Pi

Hakan...


Ooops. Too early, not enough coffee yet.


Yes, the default is indeed /usr. To change it, you need to delete the cmakecache.txt and run.


$cmake -DPREFIX=/usr/local ..


Code:
    IF (PREFIX)
        SET(CMAKE_INSTALL_PREFIX ${PREFIX})
    ELSE (PREFIX )
        SET(CMAKE_INSTALL_PREFIX "/usr")
    ENDIF (PREFIX)

Sorry
Dave
bdbcat is offline   Reply With Quote
Old 04-04-2019, 06:21   #25
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,239
Re: oeSENC_PI for OpenCPN5 on Raspberry Pi

Dave..
OK... no problem But why is oesenc different from other plugins?
Håkan
Hakan is offline   Reply With Quote
Old 04-04-2019, 06:24   #26
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,461
Re: oeSENC_PI for OpenCPN5 on Raspberry Pi

Hakan...


No good reason. But until now, no-one except me has been debugging oesenc_pi, so the point has not come up.
And I do appreciate your debugging help


Dave
bdbcat is offline   Reply With Quote
Old 08-04-2019, 13:18   #27
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,239
Re: oeSENC_PI for OpenCPN5 on Raspberry Pi

Local built oesenc_pi now works fine on the Pi and other Linux.
Connecting and download oeSENC charts from O-Charts also works as expected using present Github source.
I've a suggestion for an updated readme file reflecting lessons learned in this thread.
PR in Github now.
Hakan is offline   Reply With Quote
Old 10-04-2019, 06:27   #28
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: oeSENC_PI for OpenCPN5 on Raspberry Pi

Quote:
Originally Posted by Hakan View Post
Local built oesenc_pi now works fine on the Pi and other Linux.
Connecting and download oeSENC charts from O-Charts also works as expected using present Github source.
I've a suggestion for an updated readme file reflecting lessons learned in this thread.
PR in Github now.

I have this uncommited change in my local repo, never bothered to make a PR from it:


Code:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2ed77dd..bf2ba97 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,7 +73,7 @@ IF (NOT WIN32)
     IF (PREFIX)
         SET(CMAKE_INSTALL_PREFIX ${PREFIX})
     ELSE (PREFIX )
-        SET(CMAKE_INSTALL_PREFIX "/usr")
+        SET(CMAKE_INSTALL_PREFIX "/usr/local/")
     ENDIF (PREFIX)
 
     MESSAGE (STATUS "*** Will install to ${CMAKE_INSTALL_PREFIX}  ***")

Stelian.
stelian is offline   Reply With Quote
Reply

Tags
enc, opencpn

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
oesenc_pi installation failure janx OpenCPN 2 17-03-2019 13:47
Failure to generate fingerprint with arm64 build of oesenc_pi 1.7 sailorF54 OpenCPN 31 16-02-2018 09:44
Can Someone Help Compile on Raspberry Pi ? jimseng OpenCPN 11 06-07-2012 16:24
Raspberry PI compiles OpenCPN monstads OpenCPN 7 15-03-2012 12:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 19:09

Advertise Here


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


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.