Problems packaging Hugin 0.7.0_beta5 for Mandriva

2 views
Skip to first unread message

Nick Brown

unread,
Jul 28, 2008, 8:13:19 AM7/28/08
to hugi...@googlegroups.com
>> I got this far, but just can't get the thing to link :-(
>
> Probably due to under/over linking.
>
> Putting in %define _disable_ld_no_undefined 1 (yes this is cheating!)
> to the spec let's it link but it still errors out for me at:
>
> [ 56%] Building CXX object
> src/hugin_base/CMakeFiles/huginbase.dir/vigra_ext/emor.o
> [ 57%] Building CXX object
>src/hugin_base/CMakeFiles/huginbase.dir/vigra_ext/MultiThreadOperations.o
> /home/colin/mandriva/hugin/BUILD/hugin-0.7.0/src/hugin_base/panotools/PanoToolsInterface.cpp:
> In function 'void HuginBase:Tools::setDestImage(Image&,
> vigra::Diff2D,
> unsigned char*, const HuginBase:anoramaOptions:rojectionFormat&,
> const std::vector<double,std::allocator<double> >&, double)':
> /home/colin/mandriva/hugin/BUILD/hugin-0.7.0/src/hugin_base/panotools/PanoToolsInterface.cpp:543:
> warning: deprecated conversion from string constant to 'char*'
> Linking CXX shared library libhuginbase.so
> /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for
> -lm
> /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when
> searching for -lgcc_s
> /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching
> for -lc
> /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when
> searching
> for -lgcc_s
> [ 57%] Built target huginbase
> make: *** [all] Error 2
> error: Bad exit status from /home/colin/rpm/tmp/rpm-tmp.96558 (%build)

So it looks like we'll need a libpano snapshot to fix this.
At least this version;
http://panotools.svn.sourceforge.net/viewvc/panotools?view=rev&revision=803
We currently have the most recent release 2.9.12

Hopefully a new release of libpano and enblend will be made before hugin
0.7 is finally released, as currently it requires snapshots of both! (we
have a snapshot of enblend currently packaged)

Any volunteers to package a snapshot of libpano, and then hugin (with
the above _disable_ld_no_undefined hack)?

Bruno Postle

unread,
Jul 28, 2008, 12:31:11 PM7/28/08
to Hugin ptx
On Mon 28-Jul-2008 at 13:13 +0100, Nick Brown wrote:
>
>> Linking CXX shared library libhuginbase.so
>> /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for
>> -lm
>> /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when
>> searching for -lgcc_s
>> /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching
>> for -lc
>> /usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when
>> searching

>So it looks like we'll need a libpano snapshot to fix this.


>At least this version;
>http://panotools.svn.sourceforge.net/viewvc/panotools?view=rev&revision=803
>We currently have the most recent release 2.9.12

You need to explain this some more, as this is the first I've seen
of this. We can do a pano13 release but this wasn't planned and it
hasn't had much testing.

The change you point to reverts a change that had been made _after_
the 2.9.12 release.

--
Bruno

Nick Brown

unread,
Jul 28, 2008, 12:51:37 PM7/28/08
to hugi...@googlegroups.com
2008/7/28 Bruno Postle <br...@postle.net>:

In which case I am wrong with regards to pano13. I was just searching
for compile error I saw and found this svn revision.
But it would appear that I cannot get hugin (the 0.7.0_beta5 tarball)
to compile with the version of pano13 on my system;
rpm -qa | grep pano
libpano12-devel-2.8.6-3mdv2008.1
libpano13_0-2.9.12-3mdv2008.1
libpano13-devel-2.9.12-3mdv2008.1
libpano12_0-2.8.6-3mdv2008.1

Any ideas what is going wrong?

Cheers,
Nick

Bruno Postle

unread,
Jul 28, 2008, 5:59:38 PM7/28/08
to Hugin ptx
On Mon 28-Jul-2008 at 17:51 +0100, Nick Brown wrote:
>
>But it would appear that I cannot get hugin (the 0.7.0_beta5 tarball)
>to compile with the version of pano13 on my system;

>libpano12-devel-2.8.6-3mdv2008.1


>libpano13_0-2.9.12-3mdv2008.1
>libpano13-devel-2.9.12-3mdv2008.1
>libpano12_0-2.8.6-3mdv2008.1
>
>Any ideas what is going wrong?

I have no idea, does the mdv2008.1 bit in the package name indicate
that this is an SVN snapshot? or is it just referring to the
Mandrake release?

--
Bruno

Nicholas Brown

unread,
Jul 29, 2008, 8:46:25 AM7/29/08
to hugi...@googlegroups.com

Its just the Mandriva release version.

You can see the spec files here;
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/libpano13/
current/SPECS/libpano13.spec?view=log
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/hugin/current/
SPECS/hugin.spec?view=log

I just tried the rc1 release and got the same error.
Below is my patch to the above hugin.spec to go from beta4 to rc1.
All suggestions welcome.

Cheers,
Nick

svn diff hugin.spec
Index: hugin.spec
===================================================================
--- hugin.spec (revision 249241)
+++ hugin.spec (working copy)
@@ -1,6 +1,6 @@
%define name hugin
-%define version 0.7
-%define beta beta4
+%define version 0.7.0
+%define beta rc1
%define release %mkrel 0.%{beta}.1

@@ -20,6 +20,9 @@
Requires: enblend
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
+BuildRequires: cmake
+BuildRequires: OpenEXR-devel
+BuildRequires: libexiv2-devel
BuildRequires: libboost-devel
BuildRequires: pano12-devel >= 2.8.1
BuildRequires: pano13-devel >= 2.8.1
@@ -38,23 +41,14 @@
span 360 degrees. Another common use is the creation of very high
resolution
pictures by combining multiple images.

+%define _disable_ld_no_undefined 1
+
%prep
-%setup -q -n %{name}-%{version}_%{beta}
+%setup -q -n %{name}-%{version}
#%patch0

%build
-touch m4/Makefile.in
-
-# work-around broken wxGTK2.6 package
-ln -s %{_bindir}/wxrc-2.6-unicode ./wxrc
-export PATH=`pwd`:$PATH
-
-%configure2_5x \
- --disable-rpath \
- --disable-static \
- --with-wx-config=wx-config-unicode \
- --with-unicode=yes
-
+%cmake
%make

%install

Reply all
Reply to author
Forward
0 new messages