Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 08-02-2017, 23:12   #16
ejs
Registered User

Join Date: Mar 2013
Location: From San Francisco
Boat: Able Apogee 50
Posts: 141
Re: OpenCPN Beta Version 4.5.204

Hi,
Very sorry to have caused so much trouble. I installed a fresh Armbian 5.25 image, loaded the appropriate prerequisites and OpenCPN makes just fine. The package doesn't install out of the box because libwxgtk3.0-0 is required and I have libwxgtk3.0-0v5 and likewise libtinyxml-2.6.2 is also v5 on my system. I did an ignore-depends for these (assuming they were close enough) and OpenCPN seems to run fine in a 5 minute trial.

I still cannot run es2gears it throws the error message

EGLUT: failed to initialize EGL display

but I can look into that another day.
Eric
ejs is offline   Reply With Quote
Old 09-02-2017, 07:40   #17
Registered User

Join Date: Mar 2010
Location: QC, Canada
Boat: Kelt 8.50
Posts: 115
Re: OpenCPN Beta Version 4.5.204

Quote:
Originally Posted by ejs View Post
Hi,
The package doesn't install out of the box because libwxgtk3.0-0 is required and I have libwxgtk3.0-0v5 and likewise libtinyxml-2.6.2 is also v5 on my system. I did an ignore-depends for these (assuming they were close enough) and OpenCPN seems to run fine in a 5 minute trial.
Eric
I have the same problem with Ubuntu 16.04 LTS. In my case I edited the CMakeLists.txt to depend on libwxgtk3.0-0v5 and libtinyxml-2.6.2v5

Code:
    SET (PACKAGE_DEPS "libc6, libwxgtk3.0-0v5, wx3.0-i18n, libglu1-mesa (>= 7.0.0), libgl1-mesa-glx (>= 7.0.0), zlib1g, bzip2, libtinyxml2.6.2v5, libportaudio2")
I wonder if the makefile could be made to accept both.

Jean-Marie
houlejm is offline   Reply With Quote
Old 09-02-2017, 10:01   #18
Registered User

Join Date: Mar 2007
Location: Toronto,SE Florida, East Med
Boat: Dehler, Cruising 41 - BEBECA
Posts: 52
Send a message via Skype™ to deltasig
Re: OpenCPN Beta Version 4.5.204

Quote:
Originally Posted by boat_alexandra View Post
This looks ok, except somehow chartdldr and wmm seems to search for opengl which they shouldn't need to do.

Anyway, the problem is looks like it is not linking with the local libGL and must also link to libGLESv1_CM.so, do you have it? Can you run es2gears with acceleration? Also, try time traveling backwards with opencpn source, it definitely worked in the past on cubietruck which has the same hardware
I'm back at a "desk"! es2gears runs in 300x300 window with the following:
EGL_VERSION = 1.4 Linux-r3p0-04rel0
vertex shader info:
fragment shader info:
info:
1413 frames in 5.0 seconds = 282.543 FPS
1423 frames in 5.0 seconds = 284.486 FPS
1426 frames in 5.0 seconds = 285.086 FPS

....in full screen 1280x720
519 frames in 5.0 seconds = 103.634 FPS
513 frames in 5.0 seconds = 102.497 FPS
510 frames in 5.0 seconds = 102.000 FPS
515 frames in 5.0 seconds = 102.979 FPS

Hre's the output of locate:
deltasig@orangepipcplus:~$ locate libGL
/usr/lib/arm-linux-gnueabihf/glshim/libGL.so
/usr/lib/arm-linux-gnueabihf/glshim/libGL.so.1
/usr/lib/arm-linux-gnueabihf/glshim/libGL.so.1.2.0
/usr/lib/arm-linux-gnueabihf/libGL.so
/usr/lib/arm-linux-gnueabihf/libGLESv2.so
/usr/lib/arm-linux-gnueabihf/libGLEW.so.1.13
/usr/lib/arm-linux-gnueabihf/libGLEW.so.1.13.0
/usr/lib/arm-linux-gnueabihf/libGLU.a
/usr/lib/arm-linux-gnueabihf/libGLU.so
/usr/lib/arm-linux-gnueabihf/libGLU.so.1
/usr/lib/arm-linux-gnueabihf/libGLU.so.1.3.1
/usr/lib/arm-linux-gnueabihf/mali-egl/libGLESv1_CM.so
/usr/lib/arm-linux-gnueabihf/mali-egl/libGLESv1_CM.so.1
/usr/lib/arm-linux-gnueabihf/mali-egl/libGLESv1_CM.so.1.1.0
/usr/lib/arm-linux-gnueabihf/mali-egl/libGLESv2.so
/usr/lib/arm-linux-gnueabihf/mali-egl/libGLESv2.so.2
/usr/lib/arm-linux-gnueabihf/mali-egl/libGLESv2.so.2.0.0
/usr/lib/arm-linux-gnueabihf/mesa-egl/libGLESv2.so
/usr/lib/arm-linux-gnueabihf/mesa-egl/libGLESv2.so.2
/usr/lib/arm-linux-gnueabihf/mesa-egl/libGLESv2.so.2.0.0
/usr/lib/arm-linux-gnueabihf/mesa/libGL.so
/usr/lib/arm-linux-gnueabihf/mesa/libGL.so.1
/usr/lib/arm-linux-gnueabihf/mesa/libGL.so.1.2.0

the original problem message posted at
http://www.cruisersforum.com/forums/...ml#post2318344

Following Dave's sugestion:
Thank you Dave,
I run with "Use SVG graphics" OFF and the same problem hit another program:

/usr/bin/ld: CMakeFiles/opencpn.dir/src/glChartCanvas.cpp.o: undefined reference to symbol 'glColorMask'
//usr/lib/arm-linux-gnueabihf/mesa/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/opencpn.dir/build.make:2560: recipe for target 'opencpn' failed
make[2]: *** [opencpn] Error 1
make[2]: Leaving directory '/home/deltasig/OpenCPN/build'
CMakeFiles/Makefile2:433: recipe for target 'CMakeFiles/opencpn.dir/all' failed
make[1]: *** [CMakeFiles/opencpn.dir/all] Error 2
make[1]: Leaving directory '/home/deltasig/OpenCPN/build'
Makefile:152: recipe for target 'all' failed
make: *** [all] Error 2

the symbol glColorMask is in the /usr/lib/arm-linux-gnueabihf/mesa/libGL.so.1

Could it be related to the length of the path to the library or to the way the path is formed (notice the double / in front of the path)?

Any and all clues welcome!

DS
deltasig is offline   Reply With Quote
Old 09-02-2017, 14:06   #19
Registered User

Join Date: Mar 2007
Location: Toronto,SE Florida, East Med
Boat: Dehler, Cruising 41 - BEBECA
Posts: 52
Send a message via Skype™ to deltasig
Re: OpenCPN Beta Version 4.5.204

Quote:
Originally Posted by deltasig View Post
Hre's the output of locate:
deltasig@orangepipcplus:~$ locate libGL
/usr/lib/arm-linux-gnueabihf/glshim/libGL.so
/usr/lib/arm-linux-gnueabihf/glshim/libGL.so.1
/usr/lib/arm-linux-gnueabihf/glshim/libGL.so.1.2.0
/usr/lib/arm-linux-gnueabihf/libGL.so
/usr/lib/arm-linux-gnueabihf/libGLESv2.so
/usr/lib/arm-linux-gnueabihf/libGLEW.so.1.13
/usr/lib/arm-linux-gnueabihf/libGLEW.so.1.13.0
/usr/lib/arm-linux-gnueabihf/libGLU.a
/usr/lib/arm-linux-gnueabihf/libGLU.so
/usr/lib/arm-linux-gnueabihf/libGLU.so.1glshim
/usr/lib/arm-linux-gnueabihf/libGLU.so.1.3.1
/usr/lib/arm-linux-gnueabihf/mali-egl/libGLESv1_CM.so
/usr/lib/arm-linux-gnueabihf/mali-egl/libGLESv1_CM.so.1
/usr/lib/arm-linux-gnueabihf/mali-egl/libGLESv1_CM.so.1.1.0
/usr/lib/arm-linux-gnueabihf/mali-egl/libGLESv2.so
/usr/lib/arm-linux-gnueabihf/mali-egl/libGLESv2.so.2
/usr/lib/arm-linux-gnueabihf/mali-egl/libGLESv2.so.2.0.0
/usr/lib/arm-linux-gnueabihf/mesa-egl/libGLESv2.so
/usr/lib/arm-linux-gnueabihf/mesa-egl/libGLESv2.so.2
/usr/lib/arm-linux-gnueabihf/mesa-egl/libGLESv2.so.2.0.0
/usr/lib/arm-linux-gnueabihf/mesa/libGL.so
/usr/lib/arm-linux-gnueabihf/mesa/libGL.so.1
/usr/lib/arm-linux-gnueabihf/mesa/libGL.so.1.2.0

At it again! I noticed that my OrangePiPC+ already has its GLU and glshim libraries. Could they be conficting/confusing with OCPN?
deltasig is offline   Reply With Quote
Old 09-02-2017, 14:18   #20
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 3,698
Re: OpenCPN Beta Version 4.5.204

Code:
LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/mali-egl es2gears
Does this work? You should be able to run es2gears with very high fps. Once you get that working, run opencpn the same way compiled with gles support.

I do not have an orange pi.
seandepagnier is offline   Reply With Quote
Old 09-02-2017, 17:46   #21
Registered User

Join Date: Mar 2007
Location: Toronto,SE Florida, East Med
Boat: Dehler, Cruising 41 - BEBECA
Posts: 52
Send a message via Skype™ to deltasig
Re: OpenCPN Beta Version 4.5.204

Quote:
Originally Posted by boat_alexandra View Post
Code:
LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/mali-egl es2gears
Does this work? You should be able to run es2gears with very high fps. Once you get that working, run opencpn the same way compiled with gles support.

I do not have an orange pi.
Thank you for the response.
I did try to run the cmd with a rather loaded OPi (Firefox, Thunderbird, couple of terminals and background jobs and this is it for a 300x300 window:
deltasig@orangepipcplus:~$ LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/mali-egl es2gears
EGL_VERSION = 1.4 Linux-r3p0-04rel0
vertex shader info:
fragment shader info:
info:
1182 frames in 5.0 seconds = 236.305 FPS
1251 frames in 5.0 seconds = 250.150 FPS
1175 frames in 5.0 seconds = 234.906 FPS
1183 frames in 5.0 seconds = 236.600 FPS
1282 frames in 5.0 seconds = 256.349 FPS
1393 frames in 5.0 seconds = 278.433 FPS
1325 frames in 5.0 seconds = 264.947 FPS


I believe this is reasonably fast. I cannot run OCPN because it does not complete the linking stage
deltasig is offline   Reply With Quote
Old 10-02-2017, 04:53   #22
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 3,698
Re: OpenCPN Beta Version 4.5.204

To fix the errors, you need to link with the builtin libGL static library. It should be somewhere in the build directory.

You might try older versions of opencpn. You could try version 4.0 which was known to work on mali graphics and gles. Maybe you don't get the link errors? If so, then it should be easy to fix.
seandepagnier is offline   Reply With Quote
Old 10-02-2017, 15:26   #23
Registered User

Join Date: Jun 2010
Location: St. Petersburg, Florida
Boat: Gemini 3200
Posts: 849
Re: OpenCPN Beta Version 4.5.204

I'm running OpenCPN 4.5.204 on Ubuntu 14.04 and Windows 10. The Ubuntu installation still has a problem with the busy pointer. When I switch to an ENC the mouse pointer becomes busy while the ENC chart is prepared but it never stops being busy. Only after I exit OpenCPN and restart it does the busy pointer go away. This is an ongoing problem from the previous version. I just wanted to mention it is still happening.

Sometimes I like to review a track to see when I made a turn or passed a mark. I will open the track properties and highlight one of the track points. On the Ubuntu installation I can use the up and down arrow keys to step through the track. The chart display centers itself at the current track point. But in earlier versions the selected track point was indicated on the chart display with a blue square (I think). That no longer happens. I can only guess where the selected track point is by trying to discern where the middle of the chart display is. Any chance of getting the track point indicator restored?

I'll check to see if this behavior is different on Windows 10.

Fabbian
fgd3 is offline   Reply With Quote
Old 10-02-2017, 15:50   #24
Registered User

Join Date: Jun 2010
Location: St. Petersburg, Florida
Boat: Gemini 3200
Posts: 849
Re: OpenCPN Beta Version 4.5.204

The Windows 10 installation also fails to indicate the selected track point on the chart display. Another difference is that on the Ubuntu machine I can move the selection from one track point to another with the up and down arrow keys. The keys are read by the track properties dialogue box. On the Windows machine the up and down arrow keys move the chart display instead of selecting the next or previous track point in the track properties dialogue box.

Fabbian
fgd3 is offline   Reply With Quote
Old 13-02-2017, 07:52   #25
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 459
Re: OpenCPN Beta Version 4.5.204

Not correctly displays the status of GNSS GLONASS/GPS receiver Gamma10.
log attached.
It is back stutus GNSS does not work with Furuno NavNetvx2 log attached.
Already I wrote about it - fix it, and then again broke
https://www.dropbox.com/sh/nce0b1l2w...Of-HHLaMa?dl=0
Baikal is offline   Reply With Quote
Old 13-02-2017, 11:57   #26
Registered User

Join Date: Mar 2007
Location: Toronto,SE Florida, East Med
Boat: Dehler, Cruising 41 - BEBECA
Posts: 52
Send a message via Skype™ to deltasig
Re: OpenCPN Beta Version 4.5.204

Quote:
Originally Posted by boat_alexandra View Post
To fix the errors, you need to link with the builtin libGL static library. It should be somewhere in the build directory.

You might try older versions of opencpn. You could try version 4.0 which was known to work on mali graphics and gles. Maybe you don't get the link errors? If so, then it should be easy to fix.
B_A, thank you for sticking with this.
I am not sure what you mean by "builtin libGL static library"; builtin the host system or the libraries that come with the OpenCPN?
I tried any combination of the local libraries and every one ended with the same link message:
/usr/bin/ld: CMakeFiles/opencpn.dir/src/glChartCanvas.cpp.o: undefined reference to symbol 'glColorMask'
//usr/lib/arm-linux-gnueabihf/mesa/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/opencpn.dir/build.make:2560: recipe for target 'opencpn' failed
make[2]: *** [opencpn] Error 1
make[2]: Leaving directory '/home/deltasig/OpenCPN/build'
CMakeFiles/Makefile2:433: recipe for target 'CMakeFiles/opencpn.dir/all' failed
make[1]: *** [CMakeFiles/opencpn.dir/all] Error 2
make[1]: Leaving directory '/home/deltasig/OpenCPN/build'
Makefile:152: recipe for target 'all' failed
make: *** [all] Error 2

the symbol glColorMask is in the /usr/lib/arm-linux-gnueabihf/mesa/libGL.so.1

Then I tried and disabled detection of accelerated graphics; the operation complete and gave "opencpn" that exhibits the same behaviour as the one doanloaded from Dave's PPA. When run in terminal I get the
unable to load driver: mali_drm_dri.so etc, etc

In the past (see OpenCPN Runs on Embedded ARM - Page 56 - Cruisers & Sailing Forums
I had created a compiled version of 4.2. with impressive results (fps wise).
This time around I'm stumped!
Here's my lsmod
deltasig@orangepipc:~$ lsmod
Module Size Used by
mali_drm 2732 1
drm 178255 2 mali_drm
rt2800usb 13633 0
rt2800lib 41983 1 rt2800usb
rt2x00usb 8297 1 rt2800usb
rt2x00lib 34464 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 358445 3 rt2x00lib,rt2x00usb,rt2800lib
bmp085 3487 0
pcf8591 3363 0
mali 123146 0
ump 29379 3 mali
8188eu 908230 0

Any ideas?
DS
deltasig is offline   Reply With Quote
Old 13-02-2017, 18:32   #27
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 6,178
Re: OpenCPN Beta Version 4.5.204

Baikal...

I don't understand the issue.

The GLONASS Gamma10 log works fine. The xxGSV sentences are used to set the satellite status in the Dashboard.

The Furuno Navnet log contains no GSV sentences at all. So we cannot know nor display the status.

Do I miss the point?

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 13-02-2017, 20:30   #28
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 459
Re: OpenCPN Beta Version 4.5.204

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

The GLONASS Gamma10 log works fine. The xxGSV sentences are used to set the satellite status in the Dashboard.
satellite status appears and then disappears, reappears and disappears
Baikal is offline   Reply With Quote
Old 14-02-2017, 20:37   #29
Registered User

Join Date: Mar 2007
Location: Toronto,SE Florida, East Med
Boat: Dehler, Cruising 41 - BEBECA
Posts: 52
Send a message via Skype™ to deltasig
Re: OpenCPN Beta Version 4.5.204

Quote:
Originally Posted by boat_alexandra View Post
To fix the errors, you need to link with the builtin libGL static library. It should be somewhere in the build directory.

You might try older versions of opencpn. You could try version 4.0 which was known to work on mali graphics and gles. Maybe you don't get the link errors? If so, then it should be easy to fix.
Finally, I managed to build OCPN (actually 212) by adding some symbolic links in the base library. The whole operation (moving around, zoom in/out and graphics) of OCPN is much, much better/faster running with OpenGL and Texture cache set.
I get the following in the opencpn.log

19:23:25 EST: Creating glChartCanvas
19:23:25 EST: Metrics: m_display_size_mm: 339 wxDisplaySize:1280:720
19:23:25 EST: OpenGL-> Renderer String: Mali-400 MP
19:23:25 EST: OpenGL-> Version reported: 1.4 glshim wrapper
19:23:25 EST: OpenGL-> Texture rectangle format: de1
19:23:25 EST: OpenGL-> glGenerateMipmap unavailable
19:23:25 EST: OpenGL-> Using Vertexbuffer Objects
19:23:25 EST: OpenGL-> Framebuffer Objects unavailable
19:23:25 EST: OpenGL-> Using Depth buffer clipping
19:23:26 EST: OpenGL-> Using oes etc1 compression
19:23:26 EST: OpenGL-> Compressed tile size: 128kb (8:1)
19:23:26 EST: OpenGL-> Minimum cartographic line width: 1.0
19:23:26 EST: OpenGL-> Minimum symbol line width: 1.0
19:23:26 EST: ChartDB Cache policy: Application target is 493 MByte
s

Does this look right? I ask because the OpenGL-> Version reported: I get when I run es2gears is 1.4 Linux-r3p0 and when I run glmark2-es2 it is OpenGL ES 2.0
DS
deltasig is offline   Reply With Quote
Old 14-02-2017, 22:04   #30
ejs
Registered User

Join Date: Mar 2013
Location: From San Francisco
Boat: Able Apogee 50
Posts: 141
Re: OpenCPN Beta Version 4.5.204

Hi D-Sig,
Could you post a list of th Symlinks? Mine compiles but doesn't actually use OpenGL.

Eric
ejs 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
For Sale: Lewmar 204 Gypsy daydreamer Classifieds Archive 0 21-10-2012 18:21
OpenCPN Version 2.2 Beta Test bdbcat OpenCPN 437 15-12-2010 20:17
OpenCPN Version 2.1.0 Beta bdbcat OpenCPN 1045 25-06-2010 10:09
OpenCPN Version 1.3.5 Beta Technical bdbcat OpenCPN 544 24-03-2010 10:34

Advertise Here


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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.