Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266978 - kicad-20090320.1666 build failure in cmake "configure" - wxwidgets not found
Summary: kicad-20090320.1666 build failure in cmake "configure" - wxwidgets not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-21 14:57 UTC by Keith Amidon
Modified: 2009-04-22 16:20 UTC (History)
3 users (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 Keith Amidon 2009-04-21 14:57:03 UTC
This bug records the build problem originally reported in bug# 260397 comment #5.  I'm opening this because I ran into the same problem and thought it might be helpful to record my solution somewhere that anyone else running into the same problem might find it.

The error message encountered during build was:

-- Check for installed wxWidgets -- not found
CMake Error at CMakeModules/CheckFindPackageResult.cmake:6 (message):
  wxWidgets was not found - it is required to build Kicad

On my system this was cured by selecting a wxwidget set using eselect.  Since I don't have any other programs installed using wxwindows, I had never selected the widget set to use.  I just did "eselect wxwidgets list" to find the list of options available and "eselect wxwidets set <n>" to select the one that seemed best to me.
Comment 1 Denis Dupeyron (RETIRED) gentoo-dev 2009-04-21 15:49:20 UTC
(In reply to comment #0)
> On my system this was cured by selecting a wxwidget set using eselect.

Thanks for your report. Which one did you select ?


Ryan, Mart: I've added the wx in CC as you can see. I believe this is not the first time we're told about this but I have no clue what it could be. I'll try and dig the other bug report(s) that seem similar to me. In the meantime, do you have any idea ?

Denis.
Comment 2 Víctor Ostorga (RETIRED) gentoo-dev 2009-04-21 18:37:26 UTC
I think a check for a selected gtk2-unicode-release-2.8 in the wxwidgets profile inside a pkg_setup block can be a workaround.

And also, firing an eerror if the profile is not selected.
Comment 3 Rick Jenkins 2009-04-21 20:06:31 UTC
I reported bug# 260397 comment #5. Probably I should have started a new bug - my apologies.

The solution in comment #0 works for me:

# eselect wxwidgets list
Available wxWidgets profiles:
  [1]   gtk2-ansi-release-2.6
  [2]   gtk2-unicode-release-2.6
  [3]   gtk2-unicode-release-2.8
# eselect wxwidgets set 3

Setting wxWidgets profile to gtk2-unicode-release-2

Following which kicad compliled with no problems, and works well.
Comment 4 Denis Dupeyron (RETIRED) gentoo-dev 2009-04-21 22:07:41 UTC
My bad. I switched the ebuild to EAPI2 and the need-wxwidgets statement got lost. I have fixed that and even made more use of EAPI2 features.

For your information, ebuilds should not need that you set a wxwidget profile with eselect. If they do it means there's a problem. Profiles are only when using wxGTK outside of your package manager. Some apps will require 2.6 and others 2.8 for example. And we just can't afford relying on the user setting the proper profile prior to emerging the package. That would be too cumbersome for you guys. So the eclass takes care of this, but if you don't call the proper function when you should, well... you know what happens now.

I haven't revbumped the ebuild as it is not necessary in such a situation. In case you'd want to verify it works just set a 2.6 profile and emerge kicad. The ebuild will pick up wxGTK-2.8 and build kicad against it and it should all work.

Denis.
Comment 5 Rick Jenkins 2009-04-21 22:11:07 UTC
Thanks for a fast fix. 
Comment 6 Keith Amidon 2009-04-22 16:20:43 UTC
Worked for me.  I'd also like to say thank you for the fix and for the detailed explanation.  It definitely helped me to better understand what is supposed to happen when packages are built.