When trying to merge opencv : [ebuild N ] media-libs/opencv-1.0.0-r1 USE="gtk jpeg png python tiff v4l zlib -debug -demos -examples -ffmpeg -ieee1394 -jpeg2k -openexr -xine" 0 kB It finally ends with a libtool error : /bin/sh ../../../libtool --tag=CXX --mode=link i686-pc-linux-gnu-g++ -fPIC -I/usr/include/python2.5 -Wall -fno-rtti -pipe -O3 -g -march=i686 -ffast-math -fomit-frame-pointer -O2 -march=pentium-m -pipe -module -avoid-version -no-undefined -L. -L/usr/lib/python2.5/config -lm -lpthread -ldl -lutil -lpython2.5 -Xlinker -export-dynamic -L -o _highgui.la -rpath /usr/lib/python2.5/site-packages/opencv _highgui_la-_highgui.lo _highgui_la-pyhelpers.lo ../../../otherlibs/highgui/libhighgui.la -lpthread -ldl -lm libtool: link: require no space between `-L' and `-o' make[4]: *** [_highgui.la] Error 1 I'm using libtool 2.2.6 and gcc 4.2.4
It seems to be related to "SWIG_PYTHON_LIBS" being empty and multiple Makefile.am's containing "-L$(SWIG_PYTHON_LIBS)". Unfortunately I don't know how to fix it.
This is no way a blocker, changing Severity to normal and assigning.
Created attachment 167201 [details, diff] Hack I was able to compile it using this hack but there should be a better way.
Ah yes, I hit this when migrating this package to Exherbo. I'll backport the patch from exherbo to here.
Appropriate fix in $URL, I'll put this in gentoo-x86 shortly.
Erm, I'm having a little trouble reproducing this on gentoo, would you provide "emerge -pv opencv" output so I know what flags are causing this failure?
(In reply to comment #6) > Erm, I'm having a little trouble reproducing this on gentoo, would you provide > "emerge -pv opencv" output so I know what flags are causing this failure? > You need the PYTHON use flag. [ebuild N ] media-libs/opencv-1.0.0-r1 USE="debug ffmpeg gtk jpeg jpeg2k png python tiff zlib -demos -examples -ieee1394 -openexr -v4l -xine" 0 kB
Does this patch fix the problems on your end?: http://github.com/gentoofan23/tanderson/tree/master%2Fpackages%2Fmedia-libs%2Fopencv%2Ffiles%2Fopencv-1.0.0-swiginvalidlinkingoptions.patch?raw=true
Yes, the linked patch works for me. Thanks!
Fixed in CVS, thanks for the report! Sorry about the delay, I've been really busy :(