Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482670 - sci-geosciences/opencpn-3.2.2 with x11-libs/wxGTK-2.9.x - chcanv.cpp:16036:39: error: `class wxBitmapComboBox' has no member named `GetTextCtrl'
Summary: sci-geosciences/opencpn-3.2.2 with x11-libs/wxGTK-2.9.x - chcanv.cpp:16036:39...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marc Schiffbauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-27 13:51 UTC by Paul Vint
Modified: 2013-08-28 14:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Vint 2013-08-27 13:51:14 UTC
Compile fails - excerpt from build log:

var/tmp/portage/sci-geosciences/opencpn-3.2.2/work/OpenCPN-opencpn-3.2.2/src/chcanv.cpp: In function âint InitScreenBrightness()â:
/var/tmp/portage/sci-geosciences/opencpn-3.2.2/work/OpenCPN-opencpn-3.2.2/src/chcanv.cpp:15658:7: warning: suggest explicit braces to avoid ambiguous âelseâ [-Wparentheses]
/var/tmp/portage/sci-geosciences/opencpn-3.2.2/work/OpenCPN-opencpn-3.2.2/src/chcanv.cpp: In function âvoid DimeControl(wxWindow*, wxColour, wxColour, wxColour, wxColour, wxColour, wxColour, wxColour)â:
/var/tmp/portage/sci-geosciences/opencpn-3.2.2/work/OpenCPN-opencpn-3.2.2/src/chcanv.cpp:16036:39: error: âclass wxBitmapComboBoxâ has no member named âGetTextCtrlâ
make[2]: *** [CMakeFiles/opencpn.dir/src/chcanv.cpp.o] Error 1

OpenCPN currently requires wxWidgets 2.8. I have checked, and the developer is aware of this.

Solution: Compile against (require) wxGTK:2.8

I changed the RDEPEND line for wx in my ebuild to:
   x11-libs/wxGTK:2.8[X]
and it now pulls in the correct wxGTK version. (Don't know if it's the correct solution, but it proved it works with 2.8)

Cheers

Paul
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-27 15:38:35 UTC
opencpn-3.0.2.ebuild:DEPEND="${DEPEND}
opencpn-3.2.2.ebuild:DEPEND="${DEPEND}

Fix that too while you fix the x11-libs/wxGTK SLOTs? :)
Comment 2 Marc Schiffbauer gentoo-dev 2013-08-28 13:08:05 UTC
Many thanks Paul for reporting. Should be fixed now!

.. and thanks to Jeroen for pointing me to another C&P bug.
Comment 3 Paul Vint 2013-08-28 14:10:18 UTC
Good stuff guys - thanks!