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 31-01-2017, 21:16   #1
Registered User

Join Date: Jan 2016
Posts: 2
OpenCPN compile error

i've followed the following guide to compile Linux OpenCPN

I've got some errors.

-I/OpenCPN/src/garmin/jeeps -I/OpenCPN/src/texcmp/lz4 -I/OpenCPN/src/texcmp/squish -I/OpenCPN/build/CMakeFiles/include -Wall -Wno-unused -fexceptions -rdynamic -g -fno-strict-aliasing -DPREFIX=\"/usr/local\" -o CMakeFiles/S57ENC.dir/src/s52plib.cpp.o -c /OpenCPN/src/s52plib.cpp
/OpenCPN/src/s52plib.cpp: In member function ‘render_canvas_parms* s52plib::CreatePatternBufferSpec(ObjRazRules*, Rules*, ViewPort*, bool, bool)’:
/OpenCPN/src/s52plib.cpp:8027:38: error: ‘class wxMemoryDC’ has no member named ‘GetGraphicsContext’
wxGraphicsContext* pgc = mdc.GetGraphicsContext();
^
/OpenCPN/src/s52plib.cpp:8029:18: error: ‘class wxGraphicsContext’ has no member named ‘SetAntialiasMode’
pgc->SetAntialiasMode(wxANTIALIAS_NONE);
^
/OpenCPN/src/s52plib.cpp:8029:35: error: ‘wxANTIALIAS_NONE’ was not declared in this scope
pgc->SetAntialiasMode(wxANTIALIAS_NONE);
^
make[2]: *** [CMakeFiles/S57ENC.dir/src/s52plib.cpp.o] error 1
make[2]: Leaving directory `/OpenCPN/build'
make[1]: *** [CMakeFiles/S57ENC.dir/all] error 2
make[1]: Leaving directory `/OpenCPN/build'
make: *** [all] error 2
hyun3388 is offline   Reply With Quote
Old 01-02-2017, 06:19   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,148
Re: OpenCPN compile error

hyun.........

Your "wiki" link was not so informative.
The "official" help is here:
Compiling Linux [OpenCPN Books]

Please follow all excellent advices in detail. More or less every word matters.
Håkan
Hakan is online now   Reply With Quote
Old 01-02-2017, 12:47   #3
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: OpenCPN compile error

Quote:
Originally Posted by hyun3388 View Post
i've followed the following guide to compile Linux OpenCPN

I've got some errors.

-I/OpenCPN/src/garmin/jeeps -I/OpenCPN/src/texcmp/lz4 -I/OpenCPN/src/texcmp/squish -I/OpenCPN/build/CMakeFiles/include -Wall -Wno-unused -fexceptions -rdynamic -g -fno-strict-aliasing -DPREFIX=\"/usr/local\" -o CMakeFiles/S57ENC.dir/src/s52plib.cpp.o -c /OpenCPN/src/s52plib.cpp
/OpenCPN/src/s52plib.cpp: In member function ‘render_canvas_parms* s52plib::CreatePatternBufferSpec(ObjRazRules*, Rules*, ViewPort*, bool, bool)’:
/OpenCPN/src/s52plib.cpp:8027:38: error: ‘class wxMemoryDC’ has no member named ‘GetGraphicsContext’
wxGraphicsContext* pgc = mdc.GetGraphicsContext();
^
/OpenCPN/src/s52plib.cpp:8029:18: error: ‘class wxGraphicsContext’ has no member named ‘SetAntialiasMode’
pgc->SetAntialiasMode(wxANTIALIAS_NONE);
^
/OpenCPN/src/s52plib.cpp:8029:35: error: ‘wxANTIALIAS_NONE’ was not declared in this scope
pgc->SetAntialiasMode(wxANTIALIAS_NONE);
^
make[2]: *** [CMakeFiles/S57ENC.dir/src/s52plib.cpp.o] error 1
make[2]: Leaving directory `/OpenCPN/build'
make[1]: *** [CMakeFiles/S57ENC.dir/all] error 2
make[1]: Leaving directory `/OpenCPN/build'
make: *** [all] error 2

When you built wxwidgets, did you disable graphics context? What is the configure log? What system?

OpenCPN should also compile without graphics context...
seandepagnier is offline   Reply With Quote
Reply

Tags
enc, opencpn


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
compile error Linux Fedora Rawhide Lucodealethea OpenCPN 5 09-05-2016 17:00
wxWidgets compile error wushinwei OpenCPN 5 10-05-2015 04:42
Compile on VS 2010 with one error? Glen96 OpenCPN 3 07-12-2014 16:15
Fedora Compile Link Error oystercatcher OpenCPN 4 16-12-2010 15:37

Advertise Here


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


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.