Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 30-04-2015, 20:07   #751
Registered User

Join Date: Jul 2013
Location: Washington State, USA
Boat: 1983 Fu Hwa Seahorse
Posts: 86
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by Eirik View Post
I have previously compiled, installed and run O on this computer, but unfortunately without OpenGL, and I was quite excited to see the work that was being done with GLshim to address this. I therefore went for a clean install and D/L the latest build. However, when trying to compile, i get some error messages, and the compilation aborts.
I have the same issue as Eirik on the Raspberry Pi 2 board.

I have the same CMake output as he has, and below is the full output of make:

Code:
pi@raspberrypi ~/opencpn/OpenCPN/build $ make 
/usr/bin/cmake -H/home/pi/opencpn/OpenCPN -B/home/pi/opencpn/OpenCPN/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/pi/opencpn/OpenCPN/build/CMakeFiles /home/pi/opencpn/OpenCPN/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/pi/opencpn/OpenCPN/build'
make -f CMakeFiles/GARMINHOST.dir/build.make CMakeFiles/GARMINHOST.dir/depend
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
cd /home/pi/opencpn/OpenCPN/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build/CMakeFiles/GARMINHOST.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
make -f CMakeFiles/GARMINHOST.dir/build.make CMakeFiles/GARMINHOST.dir/build
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
make[2]: Nothing to be done for 'CMakeFiles/GARMINHOST.dir/build'.
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
/usr/bin/cmake -E cmake_progress_report /home/pi/opencpn/OpenCPN/build/CMakeFiles  1 2 3 4
[ 45%] Built target GARMINHOST
make -f CMakeFiles/NMEA0183.dir/build.make CMakeFiles/NMEA0183.dir/depend
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
cd /home/pi/opencpn/OpenCPN/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build/CMakeFiles/NMEA0183.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
make -f CMakeFiles/NMEA0183.dir/build.make CMakeFiles/NMEA0183.dir/build
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
make[2]: Nothing to be done for 'CMakeFiles/NMEA0183.dir/build'.
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
/usr/bin/cmake -E cmake_progress_report /home/pi/opencpn/OpenCPN/build/CMakeFiles  13 14 15 16 17
[ 45%] Built target NMEA0183
make -f CMakeFiles/S57ENC.dir/build.make CMakeFiles/S57ENC.dir/depend
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
cd /home/pi/opencpn/OpenCPN/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build/CMakeFiles/S57ENC.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
make -f CMakeFiles/S57ENC.dir/build.make CMakeFiles/S57ENC.dir/build
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
make[2]: Nothing to be done for 'CMakeFiles/S57ENC.dir/build'.
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
/usr/bin/cmake -E cmake_progress_report /home/pi/opencpn/OpenCPN/build/CMakeFiles  18 19 20 21 22 23 24 25 26 27 28
[ 45%] Built target S57ENC
make -f CMakeFiles/SYMBOLS.dir/build.make CMakeFiles/SYMBOLS.dir/depend
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
cd /home/pi/opencpn/OpenCPN/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build/CMakeFiles/SYMBOLS.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
make -f CMakeFiles/SYMBOLS.dir/build.make CMakeFiles/SYMBOLS.dir/build
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
make[2]: Nothing to be done for 'CMakeFiles/SYMBOLS.dir/build'.
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
/usr/bin/cmake -E cmake_progress_report /home/pi/opencpn/OpenCPN/build/CMakeFiles 
[ 45%] Built target SYMBOLS
make -f CMakeFiles/TEXCMP.dir/build.make CMakeFiles/TEXCMP.dir/depend
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
cd /home/pi/opencpn/OpenCPN/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build/CMakeFiles/TEXCMP.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
make -f CMakeFiles/TEXCMP.dir/build.make CMakeFiles/TEXCMP.dir/build
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
make[2]: Nothing to be done for 'CMakeFiles/TEXCMP.dir/build'.
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
/usr/bin/cmake -E cmake_progress_report /home/pi/opencpn/OpenCPN/build/CMakeFiles  29 30 31
[ 45%] Built target TEXCMP
make -f CMakeFiles/i18n.dir/build.make CMakeFiles/i18n.dir/depend
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
cd /home/pi/opencpn/OpenCPN/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build/CMakeFiles/i18n.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
make -f CMakeFiles/i18n.dir/build.make CMakeFiles/i18n.dir/build
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
/usr/bin/cmake -E cmake_progress_report /home/pi/opencpn/OpenCPN/build/CMakeFiles 68
[ 45%] i18n: Done.
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
/usr/bin/cmake -E cmake_progress_report /home/pi/opencpn/OpenCPN/build/CMakeFiles  68 69 70 71 72 73
[ 45%] Built target i18n
make -f src/glu/CMakeFiles/GLU_static.dir/build.make src/glu/CMakeFiles/GLU_static.dir/depend
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
cd /home/pi/opencpn/OpenCPN/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN/src/glu /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build/src/glu /home/pi/opencpn/OpenCPN/build/src/glu/CMakeFiles/GLU_static.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
make -f src/glu/CMakeFiles/GLU_static.dir/build.make src/glu/CMakeFiles/GLU_static.dir/build
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
make[2]: Nothing to be done for 'src/glu/CMakeFiles/GLU_static.dir/build'.
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
/usr/bin/cmake -E cmake_progress_report /home/pi/opencpn/OpenCPN/build/CMakeFiles  5 6 7
[ 45%] Built target GLU_static
make -f src/glshim/src/CMakeFiles/GL_static.dir/build.make src/glshim/src/CMakeFiles/GL_static.dir/depend
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
cd /home/pi/opencpn/OpenCPN/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN/src/glshim/src /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build/src/glshim/src /home/pi/opencpn/OpenCPN/build/src/glshim/src/CMakeFiles/GL_static.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
make -f src/glshim/src/CMakeFiles/GL_static.dir/build.make src/glshim/src/CMakeFiles/GL_static.dir/build
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
make[2]: Nothing to be done for 'src/glshim/src/CMakeFiles/GL_static.dir/build'.
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
/usr/bin/cmake -E cmake_progress_report /home/pi/opencpn/OpenCPN/build/CMakeFiles  8 9 10 11 12
[ 45%] Built target GL_static
make -f CMakeFiles/opencpn.dir/build.make CMakeFiles/opencpn.dir/depend
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
cd /home/pi/opencpn/OpenCPN/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build /home/pi/opencpn/OpenCPN/build/CMakeFiles/opencpn.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
make -f CMakeFiles/opencpn.dir/build.make CMakeFiles/opencpn.dir/build
make[2]: Entering directory '/home/pi/opencpn/OpenCPN/build'
Linking CXX executable opencpn
/usr/bin/cmake -E cmake_link_script CMakeFiles/opencpn.dir/link.txt --verbose=1
/usr/bin/c++    -pthread -O3 -DNDEBUG    CMakeFiles/opencpn.dir/src/chart1.cpp.o CMakeFiles/opencpn.dir/src/bbox.cpp.o CMakeFiles/opencpn.dir/src/ocpn_pixel.cpp.o CMakeFiles/opencpn.dir/src/ocpndc.cpp.o CMakeFiles/opencpn.dir/src/chartdb.cpp.o CMakeFiles/opencpn.dir/src/chartdbs.cpp.o CMakeFiles/opencpn.dir/src/chartimg.cpp.o CMakeFiles/opencpn.dir/src/chcanv.cpp.o CMakeFiles/opencpn.dir/src/ocpCursor.cpp.o CMakeFiles/opencpn.dir/src/TCWin.cpp.o CMakeFiles/opencpn.dir/src/S57QueryDialog.cpp.o CMakeFiles/opencpn.dir/src/s57RegistrarMgr.cpp.o CMakeFiles/opencpn.dir/src/GoToPositionDialog.cpp.o CMakeFiles/opencpn.dir/src/CM93DSlide.cpp.o CMakeFiles/opencpn.dir/src/RolloverWin.cpp.o CMakeFiles/opencpn.dir/src/ChInfoWin.cpp.o CMakeFiles/opencpn.dir/src/AISTargetQueryDialog.cpp.o CMakeFiles/opencpn.dir/src/AIS_Bitstring.cpp.o CMakeFiles/opencpn.dir/src/AISTargetListDialog.cpp.o CMakeFiles/opencpn.dir/src/AISTargetAlertDialog.cpp.o CMakeFiles/opencpn.dir/src/AIS_Decoder.cpp.o CMakeFiles/opencpn.dir/src/AIS_Target_Data.cpp.o CMakeFiles/opencpn.dir/src/OCPNListCtrl.cpp.o CMakeFiles/opencpn.dir/src/Quilt.cpp.o CMakeFiles/opencpn.dir/src/Hyperlink.cpp.o CMakeFiles/opencpn.dir/src/NavObjectCollection.cpp.o CMakeFiles/opencpn.dir/src/RoutePoint.cpp.o CMakeFiles/opencpn.dir/src/Route.cpp.o CMakeFiles/opencpn.dir/src/SelectItem.cpp.o CMakeFiles/opencpn.dir/src/Select.cpp.o CMakeFiles/opencpn.dir/src/FontMgr.cpp.o CMakeFiles/opencpn.dir/src/FontDesc.cpp.o CMakeFiles/opencpn.dir/src/OCPNSoundData.cpp.o CMakeFiles/opencpn.dir/src/OCPN_Sound.cpp.o CMakeFiles/opencpn.dir/src/NMEALogWindow.cpp.o CMakeFiles/opencpn.dir/src/TTYWindow.cpp.o CMakeFiles/opencpn.dir/src/TTYScroll.cpp.o CMakeFiles/opencpn.dir/src/SendToGpsDlg.cpp.o CMakeFiles/opencpn.dir/src/Layer.cpp.o CMakeFiles/opencpn.dir/src/concanv.cpp.o CMakeFiles/opencpn.dir/src/cutil.cpp.o CMakeFiles/opencpn.dir/src/georef.cpp.o CMakeFiles/opencpn.dir/src/navutil.cpp.o CMakeFiles/opencpn.dir/src/routeman.cpp.o CMakeFiles/opencpn.dir/src/routemanagerdialog.cpp.o CMakeFiles/opencpn.dir/src/routeprop.cpp.o CMakeFiles/opencpn.dir/src/routeprintout.cpp.o CMakeFiles/opencpn.dir/src/PositionParser.cpp.o CMakeFiles/opencpn.dir/src/printtable.cpp.o CMakeFiles/opencpn.dir/src/statwin.cpp.o CMakeFiles/opencpn.dir/src/tcmgr.cpp.o CMakeFiles/opencpn.dir/src/Station_Data.cpp.o CMakeFiles/opencpn.dir/src/IDX_entry.cpp.o CMakeFiles/opencpn.dir/src/TCDataFactory.cpp.o CMakeFiles/opencpn.dir/src/TCDS_Ascii_Harmonic.cpp.o CMakeFiles/opencpn.dir/src/TCDS_Binary_Harmonic.cpp.o CMakeFiles/opencpn.dir/src/TCDataSource.cpp.o CMakeFiles/opencpn.dir/src/thumbwin.cpp.o CMakeFiles/opencpn.dir/src/options.cpp.o CMakeFiles/opencpn.dir/src/gshhs.cpp.o CMakeFiles/opencpn.dir/src/kml.cpp.o CMakeFiles/opencpn.dir/src/undo.cpp.o CMakeFiles/opencpn.dir/src/about.cpp.o CMakeFiles/opencpn.dir/src/ais.cpp.o CMakeFiles/opencpn.dir/src/pluginmanager.cpp.o CMakeFiles/opencpn.dir/src/gpxdocument.cpp.o CMakeFiles/opencpn.dir/src/wxJSON/jsonwriter.cpp.o CMakeFiles/opencpn.dir/src/wxJSON/jsonreader.cpp.o CMakeFiles/opencpn.dir/src/wxJSON/jsonval.cpp.o CMakeFiles/opencpn.dir/src/styles.cpp.o CMakeFiles/opencpn.dir/src/toolbar.cpp.o CMakeFiles/opencpn.dir/src/compasswin.cpp.o CMakeFiles/opencpn.dir/src/geodesic.cpp.o CMakeFiles/opencpn.dir/src/datastream.cpp.o CMakeFiles/opencpn.dir/src/OCPN_DataStreamEvent.cpp.o CMakeFiles/opencpn.dir/src/ConnectionParams.cpp.o CMakeFiles/opencpn.dir/src/OCP_DataStreamInput_Thread.cpp.o CMakeFiles/opencpn.dir/src/multiplexer.cpp.o CMakeFiles/opencpn.dir/src/pugixml.cpp.o CMakeFiles/opencpn.dir/src/OCPNRegion.cpp.o CMakeFiles/opencpn.dir/src/TrackPropDlg.cpp.o CMakeFiles/opencpn.dir/src/LinkPropDlg.cpp.o CMakeFiles/opencpn.dir/src/ssl/sha1.c.o CMakeFiles/opencpn.dir/src/viewport.cpp.o CMakeFiles/opencpn.dir/src/canvasMenu.cpp.o CMakeFiles/opencpn.dir/src/OCPNPlatform.cpp.o CMakeFiles/opencpn.dir/src/crashprint.cpp.o CMakeFiles/opencpn.dir/src/glChartCanvas.cpp.o CMakeFiles/opencpn.dir/src/glTextureDescriptor.cpp.o CMakeFiles/opencpn.dir/src/glTexCache.cpp.o CMakeFiles/opencpn.dir/src/TexFont.cpp.o  -o opencpn -rdynamic -L/usr/lib/arm-linux-gnueabihf -pthread -L/usr/lib/arm-linux-gnueabihf -lwx_baseu-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_net-2.8 -lwx_baseu_xml-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_gl-2.8 libNMEA0183.a -lfreetype -lglib-2.0 -lgobject-2.0 -lgdk_pixbuf-2.0 -lgdk-x11-2.0 -lgtk-x11-2.0 -lcairo -lpango-1.0 -latk-1.0 -lportaudio libS57ENC.a libGARMINHOST.a libSYMBOLS.a libTEXCMP.a lib/libGL.a lib/libGLU.a -lEGL -lX11 -ldrm -ldri2 -lbz2 -lz -ltinyxml -ldl -lgobject-2.0 
/usr/bin/ld: cannot find -ldri2
collect2: ld returned 1 exit status
CMakeFiles/opencpn.dir/build.make:2358: recipe for target 'opencpn' failed
make[2]: *** [opencpn] Error 1
make[2]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
CMakeFiles/Makefile2:307: recipe for target 'CMakeFiles/opencpn.dir/all' failed
make[1]: *** [CMakeFiles/opencpn.dir/all] Error 2
make[1]: Leaving directory '/home/pi/opencpn/OpenCPN/build'
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
pi@raspberrypi ~/opencpn/OpenCPN/build $
I can't find a package that contains libdri2. nor can I find it in CMake or Makefile searches, so I can't just remove it and move on.

Ideas?
__________________

__________________
Thanks, Matt B.
1983 Fu Hwa Seahorse
http://mvcesc.wordpress.com/
mattkab is offline   Reply With Quote
Old 30-04-2015, 20:20   #752
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,020
Re: OpenCPN Runs on Embedded ARM

Matt...
https://github.com/OpenCPN/OpenCPN/b...Lists.txt#L305
I'm afraid you guys are simply skipping a few too many chapters in the book. We will get to it, but give us a bit time...

Pavel
__________________

__________________
nohal is online now   Reply With Quote
Old 01-05-2015, 00:38   #753
Registered User

Join Date: Feb 2013
Posts: 66
Re: OpenCPN Runs on Embedded ARM

I recently installed the latest openCPN by compiling from source on raspian on the quad-core raspberry pi board. I simply followed the instruction on the site for Debian (dependancies & commands), do I now have OpenGL working or not?

How can I test whether openGL(es) works? Is there an OpenCPN command to give me that information?
__________________
campr is offline   Reply With Quote
Old 01-05-2015, 04:57   #754
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,824
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by mattkab View Post
I have the same issue as Eirik on the Raspberry Pi 2 board.

...

I can't find a package that contains libdri2. nor can I find it in CMake or Makefile searches, so I can't just remove it and move on.

Ideas?
Yes, try manually running the ld line removing libdri2. I believe it is needed by cairo which is used by gtk which is used by wxwidgets, but these functions in cairo that use libdri2 we don't actually use, but it's needed to resolve all the externals unfortunately. If you were to say, build using wx-qt, or statically link with libcairo, you could probably avoid this issue. For now I just install libdri too, it's in a dev package for mesa I think.. not sure can't you just search the packages which whichever one provides this file (obviously it isn't libdri2-dev, but something like libegl1-mesa-dev or libgl1-mesa-dev)


Quote:
Originally Posted by campr View Post
I recently installed the latest openCPN by compiling from source on raspian on the quad-core raspberry pi board. I simply followed the instruction on the site for Debian (dependancies & commands), do I now have OpenGL working or not?

How can I test whether openGL(es) works? Is there an OpenCPN command to give me that information?
check your log file. afaik (I don't have a rpi2) the gpu is identical to the original raspberry pi which means it isn't very good compared to boards like banana pi or cubie truck (which have mali graphics) and doesn't support opengl in a window, so the toolbar and other windows (like setup status, chart bar) are invisible (although you can still click on them) which makes opencpn basically unusable.

Can someone please try the new completely open source drivers for the raspberry pi? You need to patch the kernel, but it would be worth it as you would have a completely free opengles stack, and it might work a lot better.
__________________
boat_alexandra is offline   Reply With Quote
Old 01-05-2015, 10:40   #755
Registered User

Join Date: Jul 2013
Location: Washington State, USA
Boat: 1983 Fu Hwa Seahorse
Posts: 86
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by nohal View Post
Very strange. I did a grep for it, but it came back with no results. I must have typed the command wrong. Thanks for that link!

Quote:
Originally Posted by boat_alexandra View Post
Yes, try manually running the ld line removing libdri2. I believe it is needed by cairo which is used by gtk which is used by wxwidgets, but these functions in cairo that use libdri2 we don't actually use, but it's needed to resolve all the externals unfortunately. If you were to say, build using wx-qt, or statically link with libcairo, you could probably avoid this issue. For now I just install libdri too, it's in a dev package for mesa I think.. not sure can't you just search the packages which whichever one provides this file (obviously it isn't libdri2-dev, but something like libegl1-mesa-dev or libgl1-mesa-dev)
What's odd to me is that I already built OpenCPN a few times on this installation, just without OpenGL. Now that I'm going down the path of trying to improve performance the build is failing. I thought maybe it was a recent push since it was the same error as another person was reporting, but that was simply a guess.

Quote:
Originally Posted by boat_alexandra View Post
Can someone please try the new completely open source drivers for the raspberry pi? You need to patch the kernel, but it would be worth it as you would have a completely free opengles stack, and it might work a lot better.
I will look at that today and over the weekend.

Quote:
Originally Posted by nohal View Post
I'm afraid you guys are simply skipping a few too many chapters in the book. We will get to it, but give us a bit time...
I hope these reports don't come across as complaints. Overall I am thrilled with the OpenCPN product and developer support. My intention is just to give feedback to you guys as I try different things. I'm also in the software industry, and I understand your pain, truly.

But also for someone like me who can only work on the product in spurts here and there, the active development can cause confusion and mistakes. Things are not the same as they were a month ago - not in OpenCPN, not in hardware, and not in OS images, so the fixes I discovered back in January don't apply today.

I'm not frustrated at all, but I can see that a 750 post thread on the struggles with this product could lead you to believe that. To give you some feedback of an unequivocal success, I built OpenCPN on the RPi2 last week in two days (with no OpenGL), and ran it all weekend. I even gave a talk about how to do it to the other boaters we met up with. I try not to plug my blog here unless it's relevent, but there's a full write up on it.

We are pushing the limits of this product on small, cheap, underpowered hardware. OpenCPN runs flawlessly on my laptop, but nobody complains about success. It also runs (sometimes well, sometimes not so well, but it runs) on these ARM boards, and that is a feat in itself.
__________________
Thanks, Matt B.
1983 Fu Hwa Seahorse
http://mvcesc.wordpress.com/
mattkab is offline   Reply With Quote
Old 04-05-2015, 07:47   #756
Registered User

Join Date: Oct 2013
Location: Annapolis, MD
Boat: Tashing Baba 40
Posts: 37
Re: OpenCPN Runs on Embedded ARM

Has anybody tried OpenCPN on the cubieboard4 (CC-A80)? I tried it on my pi2 and its not quite the performance I am looking for. From the discussions here, the cubieboard3 looks like a winner, but faster is always better, so I thought I would ask about the cubieboard4 before I place an order.

thanks,
Dave.
__________________
Currently southbound on the ICW (yes, in Feb.)

www.sv-agnesrose.org
dstrout is offline   Reply With Quote
Old 04-05-2015, 15:56   #757
Registered User

Join Date: Sep 2012
Location: Luxembourg
Boat: Bavaria 36
Posts: 24
Re: OpenCPN Runs on Embedded ARM

Just as a further follow-up to earlier posts and trials:

Quote:
So you have installed glshim before running glxinfo? Keep in mind recent opencpn already has glshim builtin.
No, glxinfo and glxgears are included in the Ubuntu package for the Utilite.

I tried looking for libdri2, and found something at github; robclark/libdri2. Seemed correct went on to compile/install, and it seemed OK, but made no difference when compiling O. i.e. it would stop at the same place. I don't know whether it is the correct version or if it has installed correctly (is there a way to find out)? Anyone found another source for it?

I then removed the dri2 reference in CMakeLists.txt. Now compilation went fine, and O installed and runs OK. OpenGL does of course not work.
__________________
Eirik is offline   Reply With Quote
Old 06-05-2015, 01:49   #758
Registered User

Join Date: May 2015
Location: Kramfors, Sweden
Boat: Hallberg Rassy Monsun 31
Posts: 1
Re: OpenCPN Runs on Embedded ARM

Hello everybody! At the moment I have some trouble with vector charts. I'm all new to Raspberries and Linux and whatnot, so I really can't follow your discussions that well. Maybe if I could I wouldn't need to answer. I just bought a Rpi B+ (by mistake, wanted the Rpi2) and have been tinkering around with OpenCPN.

Yesterday I got it working after following these instructions: Pi Chart (using the opencpn_4.0.0-1_armhf_tides_map.deb version or whatever you call it). I downloaded some old raster charts and they loaded perfectly fine. Then I wanted to try some vector charts and got some of the free ones from https://openseachart.org/doku.php/enc . It looked like they loaded up like they should in OpenCPN, but they don't show on the map.

I have seen here that you refer alot to logs and stuff, so I went into the log (not really knowing what to look for) and found this:

Error: NO ClassRegistrar in InitENCMinimal
Cannot initialize ENC file /bla-bla-bla-position/C020008.000
...initialization failed for /bla-bla-bla-position/C020008.000
CreateChartTableEntry() failed for file: /bla-bla-bla-position/C020008.000

Any advice? I registred and posted here since you seem to know a great deal about these things, and I think I will need some help before getting this thing to work with charts and GPS and so on. If I'm posting at the wrong place, or if I missed a quick-fix for this issue, I'm sorry.
__________________
Engstromisak is offline   Reply With Quote
Old 06-05-2015, 03:14   #759
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 571
Re: OpenCPN Runs on Embedded ARM

All maps can be installed from the chart downloader plugin, no need to use openseachart. Install the plugin with apt-get install opencpn-plugin-chartdldr
( assuming that trhe plugins is avalable from your sources)
__________________
petter5 is offline   Reply With Quote
Old 06-05-2015, 22:40   #760
Registered User

Join Date: Jul 2013
Location: Washington State, USA
Boat: 1983 Fu Hwa Seahorse
Posts: 86
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by Eirik View Post
I tried looking for libdri2, and found something at github; robclark/libdri2. Seemed correct went on to compile/install, and it seemed OK, but made no difference when compiling O. i.e. it would stop at the same place. I don't know whether it is the correct version or if it has installed correctly (is there a way to find out)? Anyone found another source for it?
This is the series of comands I ran to build libdri2 from source. I could not find a package that had it included for the RPI2.

Code:
sudo apt-get install autoconf xutils-dev
git clone https://github.com/robclark/libdri2
cd libdri2
./autogen.sh
./configure --prefix=/usr
make
make install
ldconfig
I then deleted the opencpn directory and re-cloned it (unrelated, it was my fault, but may have an impact) -- and then it compiled just fine overnight.

I now have an updated version of O running on the RPI2, but there is some sort of permissions-based performance issue. If I run "sudo opencpn" it is exceptionally fast -- but I can't access my GPS or AIS data streams. If I run "opencpn" it's very slow... Still investigating this.
__________________
Thanks, Matt B.
1983 Fu Hwa Seahorse
http://mvcesc.wordpress.com/
mattkab is offline   Reply With Quote
Old 07-05-2015, 10:42   #761
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,824
Re: OpenCPN Runs on Embedded ARM

exceptionally fast how?
__________________
boat_alexandra is offline   Reply With Quote
Old 07-05-2015, 10:50   #762
Registered User

Join Date: Jul 2013
Location: Washington State, USA
Boat: 1983 Fu Hwa Seahorse
Posts: 86
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by boat_alexandra View Post
exceptionally fast how?
10-20 FPS as superuser
vs 0-1 FPS as pi user
__________________
Thanks, Matt B.
1983 Fu Hwa Seahorse
http://mvcesc.wordpress.com/
mattkab is offline   Reply With Quote
Old 07-05-2015, 16:58   #763
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,824
Re: OpenCPN Runs on Embedded ARM

is this with or without opengl? Obviously something is seriously wrong. What about cpu usage?

What differences for glxgears and es2gears for user vs root?

is the user in the video group?
__________________
boat_alexandra is offline   Reply With Quote
Old 08-05-2015, 07:05   #764
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,824
Re: OpenCPN Runs on Embedded ARM

I have been looking at various single board computers and a few I found I think would be better than the new raspberry pi:

odroid-c1
pcDuino3-nano

both use mali graphics which is known to work well. We know there are issues with broadcom, but what about the others? I haven't had any feedback and don't have any boards with these for linux (apparently they work in android more or less though)
__________________
boat_alexandra is offline   Reply With Quote
Old 08-05-2015, 08:29   #765
Registered User

Join Date: Sep 2010
Location: Florida
Boat: Pearson 35
Posts: 62
Re: OpenCPN Runs on Embedded ARM

I just completed over 1000 miles using Raspberry Pi2 with Opencpn 4.0.0. GPS data was from a BU353. There was no AIS input. Frame rate was acceptable, and there were no crashes. It is not as fast on the Pi2 as on my window machine, but a lot less power is consumed. So if you are getting only getting 0-1 FPS - there is something amiss in your setup.
__________________

__________________
waterman480 is offline   Reply With Quote
Reply

Tags
opencpn

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
Open CPN and Google Earth bgrimwade OpenCPN 19 09-12-2011 16:32
OpenCPN Version 2.5 Release bdbcat OpenCPN 86 02-09-2011 19:14
OpenCPN Stops Running BobLarkin OpenCPN 2 31-08-2011 00:38
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 05:31



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 06:44.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.