Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 16-04-2015, 21:51   #736
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: OpenCPN Runs on Embedded ARM

Freddie...

We need a crash dump.

Have you used ddd on linux before?

Simplified instructions.

$ ddd opencpn

1. Use the GUI of ddd to start O.
2. Make it crash
3. Status->Backtrace from ddd menu
4. Screenshot.

Of course, crashes are not normal. Probably there is a leak somewhere.
Funny that we have not seen such a problem on intel linux builds with O4, though.

But O makes full use of available RAM while running normally, so watching the RAM counter can be scary....

Thanks
Dave
__________________

__________________
bdbcat is offline   Reply With Quote
Old 17-04-2015, 09:08   #737
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: OpenCPN Runs on Embedded ARM

Correct thread or not but still a funny report:
System RB-Pi 2 (Debian, Raspbian and framebuffer_depth=32 framebuffer_ignore_alpha=1. Nothing else.)
OCPN: Built from source today: 4.1.412
Plugins: inbound + WMM + BR24Radar_pi
Got OpenGl: - Yes, enough to run the radar plugin.

See attached screenshot. Simulated GPS and heading by network VDR play and a captured radar transmit on the same net.
Not at all the best performance but still a radar picture on a Pi!
OpenGL notes from my log file: (The entire log is attached, pls discard .pdf)
Code:
16:47:55 CEST: OpenGL-> Renderer String: Software Rasterizer
16:47:55 CEST: OpenGL-> Version reported:  2.1 Mesa 8.0.5
16:47:55 CEST: OpenGL extensions available: 
16:47:55 CEST: GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_multitexture GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_MESA_resize_buffers GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_NV_vertex_program GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_envmap_bumpmap GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_NV_fragment_program GL_NV_point_sprite GL_NV_vertex_program1_1 GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_EXT_depth_bounds_test GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_MESA_ycbcr_texture GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_rectangle GL_ATI_texture_compression_3dc GL_EXT_pixel_buffer_object GL_EXT_texture_compression_rgtc GL_EXT_texture_mirror_clamp GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_NV_fragment_program_option GL_APPLE_object_purgeable GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_ATI_texture_mirror_once GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_texture_array GL_EXT_texture_compression_latc GL_EXT_texture_sRGB_decode GL_MESA_texture_array GL_ARB_copy_buffer GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_separate_shader_objects GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_EXT_provoking_vertex GL_ARB_robustness GL_ARB_texture_storage 
16:47:55 CEST: OpenGL-> Texture rectangle format: de1
16:47:55 CEST: OpenGL-> Using Vertexbuffer Objects
16:47:55 CEST: OpenGL-> Using Framebuffer Objects
16:47:55 CEST: OpenGL-> Using FBO Stencil buffer
16:47:55 CEST: OpenGL-> Using Stencil buffer clipping
16:47:55 CEST: OpenGL-> Using Scissor Clipping
16:47:55 CEST: OpenGL-> Using Display Lists
16:47:55 CEST: OpenGL-> Using 3dfx fxt1 compression
16:47:55 CEST: OpenGL-> Compressed tile size: 128kb (6:1)
16:47:55 CEST: OpenGL-> Minimum cartographic line width:  1.0
16:47:55 CEST: OpenGL-> Minimum symbol line width:  1.0
Attached Thumbnails
Click image for larger version

Name:	Pi_OpenGl_Br24Radar_plugin.png
Views:	81
Size:	291.7 KB
ID:	100569  
Attached Files
File Type: pdf opencpn.log.txt.pdf (33.1 KB, 14 views)
__________________

__________________
Hakan is offline   Reply With Quote
Old 17-04-2015, 12:08   #738
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 164
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by nohal View Post
Freddie...
Any exact info behind "not much luck with the prebuilt versions"? Like for example what the problems with them are.
Unfortunately I have no ARM HW to test them so I have to rely on what Launchpad produces and so far nobody ever answered my question whether the product works or not

Pavel
Pavel:
I have successfully installed O from Launchpad and it runs, however it presents the same problems as the O version that I build with my script (OpenCPN 4.0.0) and the development version (OpenCPN 4.1.412).

Would you like a CubieTruck? Send me a PM.

Thanks,
Freddie
__________________
sbfreddie is offline   Reply With Quote
Old 17-04-2015, 12:19   #739
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 164
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Runs on Embedded ARM

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

We need a crash dump.

Have you used ddd on linux before?

Simplified instructions.

$ ddd opencpn

1. Use the GUI of ddd to start O.
2. Make it crash
3. Status->Backtrace from ddd menu
4. Screenshot.

Of course, crashes are not normal. Probably there is a leak somewhere.
Funny that we have not seen such a problem on intel linux builds with O4, though.

But O makes full use of available RAM while running normally, so watching the RAM counter can be scary....

Thanks
Dave
Dave:
Here is a message from the terminal when I run O:

tegra-ubuntu 09:53:22 ~ $ opencpn -rebuild_gl_raster_cache

*** opencpn (wxWidgets 2.8.12) crashed ***, see backtrace!
0x2b7caa in wxCrashPrint::Report() at crashprint.cpp:83
0x1008c8 in MyApp::OnFatalException() at chart1.cpp:2615
0xb6f0fc24 in wxFatalSignalHandler at ??:0
0xb674caf0 in at ??:0
Aborted

Where is the crash report located, I can't seem to find it?

How do you run this command "opencpn -rebuild_gl_raster_cache" from ddd or xxgdb? When I tried to use the rebuild option ddd says unrecognized command -rebuild_gl_raster_cache.

Thanks,
Freddie
__________________
sbfreddie is offline   Reply With Quote
Old 18-04-2015, 04:33   #740
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: OpenCPN Runs on Embedded ARM

Code:
(gdb) r -rebuild_gl_raster_cache
__________________
boat_alexandra is offline   Reply With Quote
Old 24-04-2015, 16:57   #741
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 164
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by boat_alexandra View Post
Code:
(gdb) r -rebuild_gl_raster_cache
Dave and Sean:

I used command line gdb, as ddd does not seem to work (It just hangs waiting for gdb to start up).
Here is what I got:

Code:
(gdb) r -rebuild_gl_raster_cache
Starting program: /usr/local/bin/opencpn -rebuild_gl_raster_cache
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb4135260 (LWP 2505)]
[New Thread 0xb37ff260 (LWP 2507)]
[New Thread 0xb2b53260 (LWP 2513)]
[New Thread 0xb21ff260 (LWP 2514)]
[New Thread 0xb17ff260 (LWP 2515)]
[New Thread 0xb0fff260 (LWP 2519)]
[Thread 0xb21ff260 (LWP 2514) exited]
[New Thread 0xb21ff260 (LWP 2520)]
[New Thread 0xa9077260 (LWP 2521)]
[New Thread 0xa86ff260 (LWP 2522)]
[New Thread 0xa7eff260 (LWP 2523)]
[Thread 0xa9077260 (LWP 2521) exited]
[New Thread 0xa76ff260 (LWP 2524)]
[Thread 0xa86ff260 (LWP 2522) exited]
[New Thread 0xa6cff260 (LWP 2525)]
[Thread 0xa6cff260 (LWP 2525) exited]
[New Thread 0xa64ff260 (LWP 2526)]
[Thread 0xa7eff260 (LWP 2523) exited]
[New Thread 0xa5cff260 (LWP 2527)]
[Thread 0xb21ff260 (LWP 2520) exited]
[New Thread 0xa54ff260 (LWP 2528)]
[Thread 0xa54ff260 (LWP 2528) exited]
[New Thread 0xa4cff260 (LWP 2529)]
[Thread 0xa4cff260 (LWP 2529) exited]
[New Thread 0xa44ff260 (LWP 2530)]
[Thread 0xa5cff260 (LWP 2527) exited]
[New Thread 0xa3cff260 (LWP 2531)]
[Thread 0xa76ff260 (LWP 2524) exited]
[New Thread 0xa34ff260 (LWP 2532)]
[Thread 0xa3cff260 (LWP 2531) exited]
[New Thread 0xa1cff260 (LWP 2533)]
[Thread 0xb17ff260 (LWP 2515) exited]
[Thread 0xa34ff260 (LWP 2532) exited]
[New Thread 0xb17ff260 (LWP 2534)]
[Thread 0xa1cff260 (LWP 2533) exited]
[New Thread 0x932ff260 (LWP 2535)]
[Thread 0x932ff260 (LWP 2535) exited]
[New Thread 0x92aff260 (LWP 2536)]
[Thread 0xb17ff260 (LWP 2534) exited]
[New Thread 0x8cfff260 (LWP 2537)]
[Thread 0xa64ff260 (LWP 2526) exited]
[New Thread 0x814ff260 (LWP 2538)]
[Thread 0x814ff260 (LWP 2538) exited]
[New Thread 0x80cff260 (LWP 2539)]
[Thread 0xa44ff260 (LWP 2530) exited]
[New Thread 0x7c1ff260 (LWP 2540)]
[Thread 0x80cff260 (LWP 2539) exited]
[New Thread 0x7b9ff260 (LWP 2541)]
[Thread 0x7b9ff260 (LWP 2541) exited]
[New Thread 0x7b1ff260 (LWP 2542)]
[Thread 0x92aff260 (LWP 2536) exited]
[New Thread 0x753ff260 (LWP 2544)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x753ff260 (LWP 2544)]
0x30343832 in ?? ()
(gdb)
After this happens the O just hangs, CPU activity goes to nothing and the windows are blank.

Thanks,
Freddie
__________________
sbfreddie is offline   Reply With Quote
Old 24-04-2015, 17:02   #742
Registered User

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

Freddie...
We need to see the backtrace - after the crash occurs and you get back to the (gdb prompt), issue the
Code:
bt
command and we should see where the segfault actually happened.

Pavel
__________________
nohal is online now   Reply With Quote
Old 24-04-2015, 17:31   #743
Registered User
 
sbfreddie's Avatar

Join Date: Mar 2012
Location: Southern Texas, Port Isabel
Boat: I Wish
Posts: 164
Images: 1
Send a message via Skype™ to sbfreddie
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by nohal View Post
Freddie...
We need to see the backtrace - after the crash occurs and you get back to the (gdb prompt), issue the
Code:
bt
command and we should see where the segfault actually happened.

Pavel
Dave, Sean and Pavel:
Here is the output from gdb:

(gdb) bt
#0 0xb686d768 in main_arena () from /lib/arm-linux-gnueabihf/libc.so.6
#1 0x0012b5f2 in ChartDB:eleteCacheChart (this=0xd96708, pDeleteCandidate=0x8c5400)
at /home/ubuntu/GitOpenCPN/OpenCPN/src/chartdb.cpp:1403
#2 0x002bb004 in BuildCompressedCache () at /home/ubuntu/GitOpenCPN/OpenCPN/src/glChartCanvas.cpp:508
#3 0x000ff634 in MyApp::OnInit (this=0x4caef0) at /home/ubuntu/GitOpenCPN/OpenCPN/src/chart1.cpp:2327
#4 0x0011da88 in wxAppConsole::CallOnInit (this=0x4caef0) at /usr/include/wx-2.8/wx/app.h:76
#5 0xb6f3c572 in wxEntry(int&, wchar_t**) () from /usr/lib/arm-linux-gnueabihf/libwx_baseu-2.8.so.0
#6 0x000fc12c in main (argc=2, argv=0xbefff2c4) at /home/ubuntu/GitOpenCPN/OpenCPN/src/chart1.cpp:878
(gdb)

Thanks,
Freddie
__________________
sbfreddie is offline   Reply With Quote
Old 29-04-2015, 16:20   #744
Registered User

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

Hi, I have tried to install on Utilite compuer (Freescale i.MX6 dual-core Cortex-A9 @ 1GHz; with Vivante GPU supporting OpenGL ES 1.1 and 2.0) running Ubuntu 12.04 adapted for this unit.

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. This seems, if I am not mistaken, to be related to the compiltaion of the GLshim components. I have inserted some excerpts from the messages here:

Code:
 
[62%] Building CXX object CMakeFiles/opencpn.dir/src/gshhs.cpp.o
/usr/bin/c++   -DARMHF -DocpnUSE_GLES -DocpnUSE_GL -DUSE_GLU_TESS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DLINUX_CRASHRPT -DocpnUSE_GTK_OPTIMIZE -DocpnHAS_GTK -DOCPN_USE_PORTAUDIO -DTIXML_USE_STL -DUSE_S57 -DUSE_GARMINHOST -pthread -O3 -DNDEBUG -isystem /usr/lib/arm-linux-gnueabi/wx/include/gtk2-unicode-release-2.8 -isystem /usr/include/wx-2.8 -I/home/utilite/OpenCPN/include -I/home/utilite/OpenCPN/src -I/usr/include/gtk-2.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabi/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/lib/arm-linux-gnueabi/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/home/utilite/OpenCPN/src/nmea0183 -I/home/utilite/OpenCPN/src/mygdal -I/home/utilite/OpenCPN/src/garmin/jeeps -I/home/utilite/OpenCPN/src/texcmp/lz4 -I/home/utilite/OpenCPN/src/texcmp/squish    -Wall -Wno-unused -fexceptions -rdynamic  -g -O2 -fno-strict-aliasing  -DPREFIX=\"/usr/local\" `pkg-config --cflags --libs gtk+-2.0` -o CMakeFiles/opencpn.dir/src/gshhs.cpp.o -c /home/utilite/OpenCPN/src/gshhs.cpp
/home/utilite/OpenCPN/src/gshhs.cpp: In member function 'void GshhsPolyReader::readPolygonFileHeader(FILE*, PolygonFileHeader*)':
/home/utilite/OpenCPN/src/gshhs.cpp:718:60: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]

 [ 63%] Building CXX object CMakeFiles/opencpn.dir/src/pluginmanager.cpp.o
/usr/bin/c++   -DARMHF -DocpnUSE_GLES -DocpnUSE_GL -DUSE_GLU_TESS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DLINUX_CRASHRPT -DocpnUSE_GTK_OPTIMIZE -DocpnHAS_GTK -DOCPN_USE_PORTAUDIO -DTIXML_USE_STL -DUSE_S57 -DUSE_GARMINHOST -pthread -O3 -DNDEBUG -isystem /usr/lib/arm-linux-gnueabi/wx/include/gtk2-unicode-release-2.8 -isystem /usr/include/wx-2.8 -I/home/utilite/OpenCPN/include -I/home/utilite/OpenCPN/src -I/usr/include/gtk-2.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabi/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/lib/arm-linux-gnueabi/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/home/utilite/OpenCPN/src/nmea0183 -I/home/utilite/OpenCPN/src/mygdal -I/home/utilite/OpenCPN/src/garmin/jeeps -I/home/utilite/OpenCPN/src/texcmp/lz4 -I/home/utilite/OpenCPN/src/texcmp/squish    -Wall -Wno-unused -fexceptions -rdynamic  -g -O2 -fno-strict-aliasing  -DPREFIX=\"/usr/local\" `pkg-config --cflags --libs gtk+-2.0` -o CMakeFiles/opencpn.dir/src/pluginmanager.cpp.o -c /home/utilite/OpenCPN/src/pluginmanager.cpp
/home/utilite/OpenCPN/src/pluginmanager.cpp: In function 'bool PI_PLIBSetContext(PI_S57Obj*)':
/home/utilite/OpenCPN/src/pluginmanager.cpp:4020:78: warning: 'LUP_Name' may be used uninitialized in this function [-Wuninitialized]
/usr/bin/cmake -E cmake_progress_report /home/utilite/OpenCPN/build/CMakeFilelite/OpenCPN/src/gshhs.cpp: In member function 'void GshhsPolyCell::ReadPolygonFile()':
/home/utilite/OpenCPN/src/gshhs.cpp:175:46: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
/home/utilite/OpenCPN/src/gshhs.cpp: In member function 'void GshhsPolyCell::ReadPoly(contour_list&)':
/home/utilite/OpenCPN/src/gshhs.cpp:148:56: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
/home/utilite/OpenCPN/src/gshhs.cpp:152:46: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
/home/utilite/OpenCPN/src/gshhs.cpp:153:46: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
/home/utilite/OpenCPN/src/gshhs.cpp:159:42: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
/home/utilite/OpenCPN/src/gshhs.cpp:160:42: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
/usr/bin/cmake -E cmake_progress_report /home/utilite/OpenCPN/build/CMakeFiles 
  
 [ 63%] Building CXX object CMakeFiles/opencpn.dir/src/pluginmanager.cpp.o
/usr/bin/c++   -DARMHF -DocpnUSE_GLES -DocpnUSE_GL -DUSE_GLU_TESS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DLINUX_CRASHRPT -DocpnUSE_GTK_OPTIMIZE -DocpnHAS_GTK -DOCPN_USE_PORTAUDIO -DTIXML_USE_STL -DUSE_S57 -DUSE_GARMINHOST -pthread -O3 -DNDEBUG -isystem /usr/lib/arm-linux-gnueabi/wx/include/gtk2-unicode-release-2.8 -isystem /usr/include/wx-2.8 -I/home/utilite/OpenCPN/include -I/home/utilite/OpenCPN/src -I/usr/include/gtk-2.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabi/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/lib/arm-linux-gnueabi/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/home/utilite/OpenCPN/src/nmea0183 -I/home/utilite/OpenCPN/src/mygdal -I/home/utilite/OpenCPN/src/garmin/jeeps -I/home/utilite/OpenCPN/src/texcmp/lz4 -I/home/utilite/OpenCPN/src/texcmp/squish    -Wall -Wno-unused -fexceptions -rdynamic  -g -O2 -fno-strict-aliasing  -DPREFIX=\"/usr/local\" `pkg-config --cflags --libs gtk+-2.0` -o CMakeFiles/opencpn.dir/src/pluginmanager.cpp.o -c /home/utilite/OpenCPN/src/pluginmanager.cpp
/home/utilite/OpenCPN/src/pluginmanager.cpp: In function 'bool PI_PLIBSetContext(PI_S57Obj*)':
/home/utilite/OpenCPN/src/pluginmanager.cpp:4020:78: warning: 'LUP_Name' may be used uninitialized in this function [-Wuninitialized]
/usr/bin/cmake -E cmake_progress_report /home/utilite/OpenCPN/build/CMakeFilelite/OpenCPN/src/gshhs.cpp: In member function 'void GshhsPolyCell::ReadPolygonFile()':
/home/utilite/OpenCPN/src/gshhs.cpp:175:46: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
/home/utilite/OpenCPN/src/gshhs.cpp: In member function 'void GshhsPolyCell::ReadPoly(contour_list&)':
/home/utilite/OpenCPN/src/gshhs.cpp:148:56: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
/home/utilite/OpenCPN/src/gshhs.cpp:152:46: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
/home/utilite/OpenCPN/src/gshhs.cpp:153:46: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
/home/utilite/OpenCPN/src/gshhs.cpp:159:42: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
/home/utilite/OpenCPN/src/gshhs.cpp:160:42: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
/usr/bin/cmake -E cmake_progress_report /home/utilite/OpenCPN/build/CMakeFiles
Then under the following section compilation aborts:

Code:
 

 [ 70%] Building CXX object CMakeFiles/opencpn.dir/src/TexFont.cpp.o
/usr/bin/c++   -DARMHF -DocpnUSE_GLES -DocpnUSE_GL -DUSE_GLU_TESS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DLINUX_CRASHRPT -DocpnUSE_GTK_OPTIMIZE -DocpnHAS_GTK -DOCPN_USE_PORTAUDIO -DTIXML_USE_STL -DUSE_S57 -DUSE_GARMINHOST -pthread -O3 -DNDEBUG -isystem /usr/lib/arm-linux-gnueabi/wx/include/gtk2-unicode-release-2.8 -isystem /usr/include/wx-2.8 -I/home/utilite/OpenCPN/include -I/home/utilite/OpenCPN/src -I/usr/include/gtk-2.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabi/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/lib/arm-linux-gnueabi/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/home/utilite/OpenCPN/src/nmea0183 -I/home/utilite/OpenCPN/src/mygdal -I/home/utilite/OpenCPN/src/garmin/jeeps -I/home/utilite/OpenCPN/src/texcmp/lz4 -I/home/utilite/OpenCPN/src/texcmp/squish    -Wall -Wno-unused -fexceptions -rdynamic  -g -O2 -fno-strict-aliasing  -DPREFIX=\"/usr/local\" `pkg-config --cflags --libs gtk+-2.0` -o CMakeFiles/opencpn.dir/src/TexFont.cpp.o -c /home/utilite/OpenCPN/src/TexFont.cpp
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-gnueabi -pthread -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/lib/arm-linux-gnueabi -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
make[2]: *** [opencpn] Error 1
make[2]: Leaving directory `/home/utilite/OpenCPN/build'
make[1]: *** [CMakeFiles/opencpn.dir/all] Error 2
make[1]: Leaving directory `/home/utilite/OpenCPN/build'
make: *** [all] Error 2
I have tried to recompile it, but with identical result.

glxinfo provides the following info (if needed):

Code:
root@utilite-desktop:/home/utilite/OpenCPN/build# glxinfo
 name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method, 
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_MESA_copy_sub_buffer, GLX_INTEL_swap_event
client glx vendor string: Vivante Corp
client glx version string: 1.4
client glx extensions:
    GLX_SGI_make_current_read,  GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_ARB_get_proc_address
GLX version: 1.4
GLX extensions:
    GLX_SGI_make_current_read, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer
OpenGL vendor string: Vivante Corporation
OpenGL renderer string: GC2000 Graphics Engine
OpenGL version string: 2.1 2.0.1
OpenGL shading language version string: 1.20
OpenGL extensions:
    WGL_ARB_extensions_string, WGL_EXT_extensions_string, 
    WGL_EXT_swap_control, GL_EXT_texture_env_add, GL_ARB_multitexture, 
    GL_ARB_multisample, GL_ARB_texture_env_add, GL_ARB_texture_compression, 
    GL_ARB_texture_env_combine, GL_ARB_depth_texture, GL_ARB_window_pos, 
    GL_ARB_vertex_buffer_object, GL_ARB_shader_objects, GL_ARB_vertex_shader, 
    GL_ARB_fragment_shader, GL_ARB_texture_non_power_of_two, 
    GL_ARB_fragment_program_shadow, GL_EXT_texture_rectangle, 
    GL_ARB_texture_rectangle, GL_ARB_pixel_buffer_object, GL_EXT_abgr, 
    GL_EXT_blend_color, GL_EXT_polygon_offset, GL_EXT_texture, 
    GL_EXT_texture3D, GL_EXT_subtexture, GL_EXT_histogram, 
    GL_EXT_convolution, GL_EXT_texture_object, GL_SGIS_texture_lod, 
    GL_EXT_rescale_normal, GL_EXT_vertex_array, GL_SGIS_generate_mipmap, 
    GL_EXT_draw_range_elements, GL_EXT_bgra, GL_EXT_separate_specular_color, 
    GL_EXT_secondary_color, GL_EXT_texture_env_combine, 
    GL_EXT_blend_func_separate, GL_EXT_texture_lod_bias, 
    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_compression_s3tc, 
    GL_NV_texture_rectangle, GL_ATI_vertex_array_object, GL_ATI_element_array, 
    GL_EXT_stencil_two_side, GL_ATI_draw_buffers, GL_ATI_texture_env_combine3, 
    GL_ATI_separate_stencil, GL_EXT_blend_equation_separate, 
    GL_EXT_pixel_buffer_object, GL_EXT_color_table, GL_SGI_color_matrix, 
    GL_EXT_texture_cube_map, GL_ARB_imaging, GL_EXT_framebuffer_object, 
    GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample, 
    GL_EXT_texture_array, GL_EXT_draw_buffers2, GL_EXT_texture_buffer_object, 
    GL_EXT_draw_instanced, GL_EXT_timer_query
 16 GLX Visuals
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x0c2 16 tc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x0c3 16 tc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0 16 16 16  0  0 0 None
0x0c4 16 tc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x0c5 16 tc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0 16 16 16  0  0 0 None
0x0ca 16 tc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x0cb 16 tc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 None
0x0cc 16 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x0cd 16 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 None
0x0d1 16 dc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x0d2 16 dc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0 16 16 16  0  0 0 None
0x0d3 16 dc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x0d4 16 dc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0 16 16 16  0  0 0 None
0x0d9 16 dc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x0da 16 dc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 None
0x0db 16 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x0dc 16 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 None
 16 GLXFBConfigs:
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x052 16 tc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x053 16 tc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0 16 16 16  0  0 0 Slow
0x054 16 tc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x055 16 tc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0 16 16 16  0  0 0 Slow
0x05a 16 tc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x05b 16 tc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 Slow
0x05c 16 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x05d 16 tc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 Slow
0x092 16 dc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x093 16 dc  0  16  0 r  . .   5  6  5  0 .  .  0  0  0 16 16 16  0  0 0 Slow
0x094 16 dc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0  0  0  0  0  0 0 None
0x095 16 dc  0  16  0 r  y .   5  6  5  0 .  .  0  0  0 16 16 16  0  0 0 Slow
0x09a 16 dc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x09b 16 dc  0  16  0 r  . .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 Slow
0x09c 16 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0  0  0  0  0  0 0 None
0x09d 16 dc  0  16  0 r  y .   5  6  5  0 .  .  0 16  0 16 16 16  0  0 0 Slow
Is there some fix for this, or do I need to give up Opengl on this device?

Thanks,

Eirik
__________________
Eirik is offline   Reply With Quote
Old 29-04-2015, 18:11   #745
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: OpenCPN Runs on Embedded ARM

What is the ouput from running cmake in a clean build directory?


Does this board support opengl as well as opengles?
__________________
boat_alexandra is offline   Reply With Quote
Old 29-04-2015, 18:37   #746
Registered User

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

Looking at the linker error, libdri2 is not installed
__________________
nohal is online now   Reply With Quote
Old 30-04-2015, 02:50   #747
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: OpenCPN Runs on Embedded ARM

I can't remember what libdri2 is used for.. perhaps it is needed by another library we link with.

I believe it's a bit broken.. basically it needs to link with libraries to satisfy the opengl widget in wxwidgets, but it never actually uses these libraries because glshim dynamically opens libGLES, it doesn't link with it when building.
__________________
boat_alexandra is offline   Reply With Quote
Old 30-04-2015, 04:35   #748
Registered User

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

Quote:
Originally Posted by boat_alexandra View Post
What is the ouput from running cmake in a clean build directory?


Does this board support opengl as well as opengles?
I did run cmake in a clean build directory when the issues occurred.

No, the board does not support OpenGL, only OpenGLes.

Please also note that when compiling the code, I got for ALL files (whether there was an error or not), these long outputs (as in my previous post). When I have compiled previous versions of O (including 4.0), I just get the one green output line per compiled file.

Quote:
Originally Posted by nohal View Post
Looking at the linker error, libdri2 is not installed


I can later on check for/install libdri2.

Thanks,

Eirik
__________________
Eirik is offline   Reply With Quote
Old 30-04-2015, 06:05   #749
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: OpenCPN Runs on Embedded ARM

Quote:
Originally Posted by Eirik View Post
I did run cmake in a clean build directory when the issues occurred.
Can you post the output from cmake?
Quote:
No, the board does not support OpenGL, only OpenGLes.
So you have installed glshim before running glxinfo? Keep in mind recent opencpn already has glshim builtin.
Quote:
Please also note that when compiling the code, I got for ALL files (whether there was an error or not), these long outputs (as in my previous post). When I have compiled previous versions of O (including 4.0), I just get the one green output line per compiled file.
Dave enabled verbose makefiles at some point in a recent commit.
Quote:
[FONT=Calibri]

I can later on check for/install libdri2.
Probably the easiest way to get it working, but it would be nice if we didn't need libdri2.
__________________
boat_alexandra is offline   Reply With Quote
Old 30-04-2015, 16:59   #750
Registered User

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

Here is the cmake output from a clean directory:

Code:
root@utilite-desktop:/home/bris/OpenCPN/build# cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- *** Build Architecture is armhf
-- *** Staging to build opencpn 4.1.427 ***
-- *** 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: TRUE 
-- Found wxWidgets...
-- -L/usr/lib/arm-linux-gnueabi;-pthread;-Wl,-Bsymbolic-functions;-Wl,-z,relro;;-L/usr/lib/arm-linux-gnueabi;;;-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
-- 
-- *** Staging to build opencpn  ***
-- Build type: Release
-- *** Will install to /usr/local  ***
-- Found Freetype: /usr/lib/arm-linux-gnueabi/libfreetype.so 
-- Found GTK2_GTK: /usr/lib/arm-linux-gnueabi/libgtk-x11-2.0.so 
-- Found GTK2
-- Found Portaudio: /usr/lib/arm-linux-gnueabi/libportaudio.so
-- Portaudio Found
-- Found Gettext: /usr/bin/msgmerge 
-- Found BZip2: /usr/lib/arm-linux-gnueabi/libbz2.so 
-- Looking for BZ2_bzCompressInit in /usr/lib/arm-linux-gnueabi/libbz2.so
-- Looking for BZ2_bzCompressInit in /usr/lib/arm-linux-gnueabi/libbz2.so - found
-- Found ZLIB: /usr/lib/arm-linux-gnueabi/libz.so (found version "1.2.3.4")
-- Found TinyXML: /usr/include 
-- Building with tinyxml includes
-- S57 ENC support: enabled
-- Garmin Host Mode support: enabled
-- 
-- *** Staging to build PlugIns ***
-- 
-- *** Staging to build dashboard_pi ***
-- *** Staging to build grib_pi ***
-- Writing spec file...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/bris/OpenCPN/build
__________________

__________________
Eirik 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 20:02.


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.