Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271573 - media-gfx/hugin: cmake-2.4.X fails to find wxwidgets while building hugin
Summary: media-gfx/hugin: cmake-2.4.X fails to find wxwidgets while building hugin
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-28 19:36 UTC by Johannes Spielmann
Modified: 2009-06-06 15:26 UTC (History)
0 users

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


Attachments
build.log of the failed build (build.log,2.27 KB, text/plain)
2009-05-28 19:40 UTC, Johannes Spielmann
Details
environment at compile time (environment,107.73 KB, text/plain)
2009-05-28 19:41 UTC, Johannes Spielmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Spielmann 2009-05-28 19:36:32 UTC
I am trying to install hugin-7.0.4 or hugin-8.0, cmake fails to find wxwidgets.
Reinstalling wxGTK, cmake and eselect-wxwidgets in several versions did not change this.


Reproducible: Always

Steps to Reproduce:
1. build hugin

Actual Results:  
The build fails with the following message:
CMake Error at CMakeModules/FindPackageHandleStandardArgs.cmake:51 (MESSAGE):
  Could not find REQUIRED package wxWidgets
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindwxWidgets.cmake:765 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:109 (FIND_PACKAGE)


Expected Results:  
completed build

port ~ # emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.2.3, glibc-2.7-r2, 2.6
.25-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r3-i686-Intel-R-_Pentium-R-_M_processor_1500MH
z-with-gentoo-2.0.0
Timestamp of tree: Thu, 28 May 2009 17:00:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r6, 2.5.2-r3, 2.6.2
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shu
tdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/shar
e/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gcon
f /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/ud
ev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/home/root/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms str
ict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/            
     http://ftp.uni-erlangen.de/pub/mirrors/gentoo                 http://mirror
s.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.intergenia.de"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclu
de=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/temp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa avi bash-completion berkdb bluetooth branding bzip2
 cairo cdr cli cracklib crypt css cups daap dbus divx4linux dri dvd dvdnav dvdr 
dvdread eds emacs emboss encode esd evo extras fam ffmpeg firefox fortran gdbm g
if gimp gnome gpm gtk hal i8x0 iconv icq imagemagick imap ipv6 isdnlog jabber jp
eg libnotify mad midi mikmod mmx mmxext mozilla mozsvg mp3 mpeg mplayer mudflap 
mule ncurses nls nptl nptlonly nsplugin ogg oggvorbis openal opengl openmp pam p
cmcia pcre pdf pdflib perl png ppds pppd python qt3 qt3support qt4 quicktime rea
dline reflection rtc samba sdl session spamassassin spell spl srt sse sse2 ssl s
tartup-notification svg sysfs tcpd tetex theora threads tiff truetype unicode us
b vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali54
51 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1
371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio 
via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare
 dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_e
mul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions
 alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file auth
z_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex 
cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cac
he filter headers include info log_config logio mem_cache mime mime_magic negoti
ation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" E
LIBC="glibc" INPUT_DEVICES="evdev keyboard synaptics mouse" KERNEL="linux" LCD_D
EVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" U
SERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_A
LL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


port ~ # eselect wxwidgets list
Available wxWidgets profiles:
  [1]   gtk2-unicode-release-2.8 *
Comment 1 Johannes Spielmann 2009-05-28 19:40:33 UTC
Created attachment 192746 [details]
build.log of the failed build
Comment 2 Johannes Spielmann 2009-05-28 19:41:07 UTC
Created attachment 192748 [details]
environment at compile time
Comment 3 Johannes Spielmann 2009-05-28 19:42:20 UTC
Note that #237653 is very similar and marked as resolved, did however not help in my case as I re-emerged both wxGTK and eselect-wxwidgets and the file /usr/bin/wx-config exists
Comment 4 Wormo (RETIRED) gentoo-dev 2009-06-01 05:25:57 UTC
Does wx-config look like it works properly? 
For instance, what does 'wx-config --release' say?
Comment 5 Johannes Spielmann 2009-06-01 14:51:20 UTC
wx-config seems to be working (from my limited knowledge). Sample output:

port ~ # wx-config --static
port ~ # wx-config --libs  
-L/usr/local/lib -pthread -lwx_gtk-2.4
port ~ # wx-config --basename
wx_gtk
port ~ # wx-config --gl-libs 
-lwx_gtk_gl-2.4 -lGL -lGLU
port ~ # wx-config --release
2.4

Hmm. That's strange. I'll replace it with the also-available wx-config-2.8 and try again...
Comment 6 Johannes Spielmann 2009-06-01 16:05:31 UTC
Ok, I found a workaround enabling the hugin compile. Here's the situation beforehand:

/usr/local/bin/wx-config belongs to no package, but was apparently left over from wxGTK-1.4
/usr/bin/wx-config points to /usr/local/bin/wx-config
/usr/bin/wx-config-2.8 is the current wx-config -- but was never called

I tried removing /usr/local/bin/wx-config but then wx-config wouldn't work anymore. So I overwrote it with the real /usr/bin/wx-config.

Afterwards everything worked how it should.

So, how do I find out how the mixup happened and how can we prevent it from happening in the future and for other people?
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-06-06 15:26:49 UTC
portage usually doesn't install any software into /usr/local/. So you either hit a buggy wxGTK-1.4 ebuild or you installed that file there by intention/accident.
There's nothing we can do to help you tracking this down as long as the file doesn't belong to any package.
Since this is no bug in our current wxGTK ebuilds, I gonna mark this bug as INVALID.