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 01-11-2017, 08:25   #1
Registered User

Join Date: Feb 2017
Posts: 22
Android compiling problem

Hi cruisersforum community. I tryed to compile OCPN to android and faced with some compile errors. I acted according to the instruction that lies in {ocpnroot} /bulldandroid /REAMDE and stuck at " 5. Build OCPN" position. Compiller gave me those errors
Code:
In file included from /home/virtualbox/Project/OpenCPN/src/s52plib.cpp:59:0:
/home/virtualbox/Project/OpenCPN/include/glChartCanvas.h:63:30: error: invalid use of incomplete type 'class wxGLCanvas'
 class glChartCanvas : public wxGLCanvas
                              ^
In file included from /home/virtualbox/Project/OpenCPN/include/s57chart.h:49:0,
                 from /home/virtualbox/Project/OpenCPN/src/s52plib.cpp:41:
/home/virtualbox/Project/OpenCPN/include/ocpndc.h:54:7: error: forward declaration of 'class wxGLCanvas'
 class wxGLCanvas;
       ^
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp: In member function 'render_canvas_parms* s52plib::CreatePatternBufferSpec(ObjRazRules*, Rules*, ViewPort*, bool, bool)':
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp:8204:9: error: 'wxGraphicsContext' was not declared in this scope
         wxGraphicsContext* pgc = mdc.GetGraphicsContext();
         ^
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp:8204:28: error: 'pgc' was not declared in this scope
         wxGraphicsContext* pgc = mdc.GetGraphicsContext();
                            ^
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp:8204:38: error: 'class wxMemoryDC' has no member named 'GetGraphicsContext'
         wxGraphicsContext* pgc = mdc.GetGraphicsContext();
                                      ^
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp:8206:35: error: 'wxANTIALIAS_NONE' was not declared in this scope
             pgc->SetAntialiasMode(wxANTIALIAS_NONE); 
                                   ^
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp: In member function 'bool RenderFromHPGL::Render(char*, char*, wxPoint&, wxPoint&, wxPoint, float, double)':
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp:9180:21: error: 'GL_CURRENT_COLOR' was not declared in this scope
         glGetFloatv(GL_CURRENT_COLOR,m_currentColor);
                     ^
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp:9305:36: error: 'glColor4fv' was not declared in this scope
         glColor4fv( m_currentColor );
                                    ^
Looks like it causes because wxqt configured without opengl support. But Reamde says:
Quote:
___Configure wxWidgets for Qt

$../configure --with-qt --build=x86_64-unknown-linux-gnu --host=arm-linux-androideabi --enable-compat28 --disable-shared --disable-arttango --enable-image --disable-dragimage --disable-sockets --with-libtiff=no --without-opengl --disable-baseevtloop --disable-xrc --disable-cmdline --disable-miniframe --disable-mdi --enable-debug --disable-stc --disable-ribbon --disable-propgrid --disable-timepick --disable-datepick --disable-xlocale --disable-intl
I compiled wxqt with enabled opengl (pass --with-opengl as configure key), but it caused other errors.
Code:
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp:8204:9: error: 'wxGraphicsContext' was not declared in this scope
         wxGraphicsContext* pgc = mdc.GetGraphicsContext();
         ^
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp:8204:28: error: 'pgc' was not declared in this scope
         wxGraphicsContext* pgc = mdc.GetGraphicsContext();
                            ^
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp:8204:38: error: 'class wxMemoryDC' has no member named 'GetGraphicsContext'
         wxGraphicsContext* pgc = mdc.GetGraphicsContext();
                                      ^
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp:8206:35: error: 'wxANTIALIAS_NONE' was not declared in this scope
             pgc->SetAntialiasMode(wxANTIALIAS_NONE); 
                                   ^
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp: In member function 'bool RenderFromHPGL::Render(char*, char*, wxPoint&, wxPoint&, wxPoint, float, double)':
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp:9180:21: error: 'GL_CURRENT_COLOR' was not declared in this scope
         glGetFloatv(GL_CURRENT_COLOR,m_currentColor);
                     ^
/home/virtualbox/Project/OpenCPN/src/s52plib.cpp:9305:36: error: 'glColor4fv' was not declared in this scope
         glColor4fv( m_currentColor );
Ubuntu 16 x64; qt 5.2.1; OCPN 4.8.0 (master brunch)
stn92 is offline   Reply With Quote
Reply


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
Best Android Anchor Drag Alarm for Android? phantomracer Marine Electronics 17 14-11-2021 09:33
Problem compiling Navico Radar plugin beta 3.816 in Windows eduardopeloso OpenCPN 3 23-08-2017 09:26
Problem compiling Navico Radar plugin beta 3.816 in Windows eduardopeloso OpenCPN 1 22-08-2017 18:20
Compiling for Android egon.5004 OpenCPN 17 21-12-2016 05:52
Compiling OpenCPN on Fedora 12 inSaNo OpenCPN 9 08-12-2009 04:09

Advertise Here


All times are GMT -7. The time now is 04:30.


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.