Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
new ebuild of the panorama stitcher hugin !!! [depreciated]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
hothead
Apprentice
Apprentice


Joined: 02 Jul 2004
Posts: 277
Location: /dev/core

PostPosted: Mon Oct 11, 2004 4:14 am    Post subject: new ebuild of the panorama stitcher hugin !!! [depreciated] Reply with quote

This ebuild currently doesn't work because the cvs changed the configure method to autoconf.
I will implement the new configure method as soon as possible.


This ebuild is a cvs-version of the panorama stitcher hugin. http://hugin.sourceforge.net/
Please try this ebuild and give me some feedback.


copy the ebuild code to:
Code:
 PORTDIR_OVERLAY/media-gfx/hugin-cvs/hugin-cvs-0.1.ebuild


generate the digest:
Code:
 ebuild PORTDIR_OVERLAY/media-gfx/hugin-cvs/hugin-cvs-0.1.ebuild digest


emerge the ebuild:
Code:
 ACCEPT_KEYWORDS=~x86 emerge hugin-cvs


ebuild code:
Code:
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/linuxtv-dvb-cvs/linuxtv-dvb-cvs-0.0.2.ebuild,v 1.11 2004/10/01 15:45:04 zzam Exp $

test -z "$ECVS_SERVER" && ECVS_SERVER="cvs.sourceforge.net:/cvsroot/hugin"
ECVS_MODULE="hugin"
ECVS_ANON="yes"
ECVS_CVS_OPTIONS="-z3 -d"
ECVS_TOP_DIR="$DISTDIR/cvs-src/hugin"

inherit eutils cvs
       
S="${WORKDIR}/${ECVS_MODULE}"
DESCRIPTION="hugin panorama stitcher"
SRC_URI=""
HOMEPAGE="http://hugin.sourceforge.net/"

KEYWORDS="~x86"
LICENSE="GPL-2"

DEPEND="media-libs/vigra
 dev-libs/boost
 media-libs/panotools
 >=x11-libs/wxGTK-2.4.0
 =dev-libs/fftw-2*"

check_dependencies(){
 if test -e /usr/share/panorama-tools/lib/ptcrypt.jar
  then
   echo
   einfo "If the compiling of panotools fails, fetch the fixed"
   einfo "ebuild from http://bugs.gentoo.org -> [bug #53487]"
   einfo "place ebuild into PORTAGE_OVERLAY/media-libs/panotools/ - generate the digest and emerge it"
   echo
   echo "press enter to continue or ctrl-c to quit"
   read quit
  else
   echo
   eerror "You need to fetch and compile the following ebuilds from http://bugs.gentoo.org:"
   eerror "panotools [bug #53487] -> put ebuild into PORTAGE_OVERLAY/media-libs/panotools/"
   eerror "panorama-tools [bug #48268] -> put ebuild into PORTAGE_OVERLAY/media-gfx/panorama-tools/"
   eerror "generate the digest and emerge these ebuilds."
   echo
   die "panorama-tools are missing"
 fi
}

pkg_setup(){
 check_dependencies
}

src_compile(){
 if [ `use gtk2` ]
  then
   echo
   einfo "Build hugin with gtk2"
   echo
   ./configure --gtk=2 --prefix=/usr || die "configure failed"
   emake || die "compiling failed"
  else
   echo
   einfo "Build hugin with gtk"
   echo
   ./configure --gtk=1 --prefix=/usr || die "configure failed"
   emake || die "compiling failed"
 fi
}

src_install() {
 cd ${S}/src
 dodir /usr/share/hugin/xrc/data/
 insinto /usr/share/hugin/xrc/data/
 cd ${S}/src/hugin/xrc/data
 doins *.htm *.xpm *.png *.html
 insinto /usr/share/hugin/xrc/
 cd ${S}/src/hugin/xrc
 doins *.xrc
 cd ${S}/src/hugin/po
 domo de/hugin.mo
 cd ${S}/src/hugin
 dobin hugin
 insinto /usr/share/applications
 doins hugin.desktop
 cd ${S}/src/tools
 dobin nona autopano_old automatch panosifter autooptimiser
 cd ${S}/src/nona_gui
 dobin nona_gui
 cd ${S}/src/keypoints
 dobin sift_keypoints
 cd ${S}
 dodoc AUTHORS BUGS INSTALL LICENCE LICENCE_SIFT README TODO
}



Hints

You need to fetch and compile the following ebuilds from https://bugs.gentoo.org:
panotools [bug #53487] -> put ebuild into PORTAGE_OVERLAY/media-libs/panotools/
panorama-tools [bug #48268] -> put ebuild into PORTAGE_OVERLAY/media-gfx/panorama-tools/
generate the digests and emerge these ebuilds.

The ebuild depends on wxGTK.
If compiling of wxGTK failes, complaining about a missing gl.h file, then emerge opengl-update-1.8.1-r1 (masked by ~keyword) and execute opengl-update.

Ruben
_________________
Got a question? - http://justfuckinggoogleit.com/


Last edited by hothead on Sun Nov 14, 2004 6:07 pm; edited 4 times in total
Back to top
View user's profile Send private message
cherico
n00b
n00b


Joined: 20 Jul 2003
Posts: 28
Location: Switzerland

PostPosted: Mon Oct 11, 2004 1:43 pm    Post subject: Reply with quote

Well it worked perfect.. an Instruction on how to use the whole thing is at :

http://www.linuxfocus.org/Deutsch/September2004/article348.shtml

So now we need only a emerge script for: enblend..

And 360 Degres Pictures on Linux are perfect !

THanks for the Scripts and so on.. i like Gentoo soo much.

Cherico
Back to top
View user's profile Send private message
hothead
Apprentice
Apprentice


Joined: 02 Jul 2004
Posts: 277
Location: /dev/core

PostPosted: Mon Oct 11, 2004 3:16 pm    Post subject: Reply with quote

Good to hear that the ebuild works perfectly for you.

There is already an ebuild for enblend-1.2 at https://bugs.gentoo.org:

https://bugs.gentoo.org/show_bug.cgi?id=48270

Just rename the script to enblend-1.3.ebuild and the source for enblend-1.3 will be fetched and compiled.

Here is the enblend ebuild code

Code:
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Image Blending with Multiresolution Splines"
HOMEPAGE="http://www-cad.eecs.berkeley.edu/~mihal/enblend/"
SRC_URI="http://www-cad.eecs.berkeley.edu/~mihal/enblend/${P}.tar.gz"
LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="media-libs/tiff"

src_install() {
 einstall || die
}



Ruben
_________________
Got a question? - http://justfuckinggoogleit.com/
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Mon Oct 11, 2004 6:11 pm    Post subject: Reply with quote

Cool 8)
I've tried panotools in the past, but I just couldn't get it right.
Must try this!


Last edited by AlterEgo on Tue Oct 12, 2004 6:49 am; edited 1 time in total
Back to top
View user's profile Send private message
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 790

PostPosted: Mon Oct 11, 2004 7:36 pm    Post subject: Reply with quote

hothead wrote:

Just rename the script to enblend-1.3.ebuild and the source for enblend-1.3 will be fetched and compiled.

Here is the enblend ebuild code

Code:
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Image Blending with Multiresolution Splines"
HOMEPAGE="http://www-cad.eecs.berkeley.edu/~mihal/enblend/"
SRC_URI="http://www-cad.eecs.berkeley.edu/~mihal/enblend/${P}.tar.gz"
LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="media-libs/tiff"

src_install() {
 einstall || die
}



Sorry, how do I use this script? I put it in /usr/local/portage/ and named it enblend-1.3.ebuild and then ran `emerge enblend-1.3.ebuild' but it didn't work.

Please enlighten. Thanks.

dq
Back to top
View user's profile Send private message
hothead
Apprentice
Apprentice


Joined: 02 Jul 2004
Posts: 277
Location: /dev/core

PostPosted: Tue Oct 12, 2004 5:52 am    Post subject: Reply with quote

Hi,
it' the same way I described above with my hugin-cvs ebuild :!:

You have to put it into

Code:
PORTAGE_OVERLAY/media-gfx/enblend/enblend-1.3.ebuild


where PORTAGE_OVERLAY is the path to your portage overlay. You can define it in /etc/make.conf.
Just look into /etc/make.conf.example for the right spelling.

Then you have to create the digest:

Code:
digest enblend-1.3.ebuild digest


this will create the md5sums for the package (Manifest), fetch the sources and aditional patches.

This enblend ebuild is masked by ~keywords. Either you set the environment variable temporary before emerging:

Code:
ACCEPT_KEYWORDS=~x86 emerge enblend


or you set it permanently in /etc/portage/package.keywords. Create /etc/portage directory and:

Code:
echo media-gfx/enblend ~x86 >> /etc/portage/package.keywords


After that you can emerge enblend. Note that this is the better way, because if you do an

Code:
 emerge world


enblend will be automatically removed if it is not in /etc/portage/package.keywords.

Hope this is enough information.

Ruben






Then you emerge enblend.
_________________
Got a question? - http://justfuckinggoogleit.com/
Back to top
View user's profile Send private message
bens
n00b
n00b


Joined: 03 Mar 2004
Posts: 37
Location: MIT

PostPosted: Tue Oct 12, 2004 7:42 pm    Post subject: Can't find hugin! Reply with quote

I've done everything as specified here, including special ebuilds for enblend, panotools, and panorama-tools, and the emerge completed successfully. Typing nona, panoviewer, autooptimiser, and automatch at the prompt provides usage information.

Typing hugin gives a 'command not found'

I have searched my system thoroughly, using 'equery files hugin' and other methods, and found that there is no file nor symlink on my computer named 'hugin'. What do I do?

Incidentally, the emerge (using the ebuild above) also put files in some really strange places. e.g. hugin.mo in /usr/share/locale/hugin/LC_MESSAGES, when all the /usr/share/locale/ directory contains other than the hugin directory is language abbreviations like en, de, hu, etc.

incidentally, /usr/share/hugin/xrc/ is created, containing xrc files and a data/ folder with .xpm's and .png's , but no executables in sight.
Thanks,
Ben
Back to top
View user's profile Send private message
cherico
n00b
n00b


Joined: 20 Jul 2003
Posts: 28
Location: Switzerland

PostPosted: Tue Oct 12, 2004 8:21 pm    Post subject: Reply with quote

So if you do a emerge hugin again can you send the output ?

Maybe this will help.
Back to top
View user's profile Send private message
bens
n00b
n00b


Joined: 03 Mar 2004
Posts: 37
Location: MIT

PostPosted: Fri Oct 15, 2004 4:25 pm    Post subject: Scratch that, sort of Reply with quote

I actually built from the snapshot ebuild on the hugin bugzilla page, which failed with the latest snapshot as I described. I haven't tried this cvs build, which is substantially different. Nonetheless, the author now describes it as 'broken', so I'm trying the 0.4_pre bugzilla ebuild.

I'll note if it works.

[EDIT:] The bugzilla 0.4_pre ebuild works, as far as I can see so far. Not nearly as up-to-date as a cvs ebuild, but still a good thing.
[EDIT:] 0.4_pre works, but it's low on features. No enblend integration, no autopano integration.
Back to top
View user's profile Send private message
NaN
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2003
Posts: 93
Location: England

PostPosted: Sun Oct 17, 2004 12:19 pm    Post subject: Reply with quote

This is what I did given that the ebuild using the cvs snapshot is not working at the moment.

Having installed all the dependencies as described in this thread, I then downloaded the hugin source, compiled and installed it manually. This is what I found (briefly).

The snapshot hugin_2004_10_15_11_20 (most recent) fails with an error saying "wxrc: command not found". I have been able to find little about this, although wxrc seems to be a utilities package for wxGTK and it also seems to be included in the python for wxGTK package version 2.5, but not 2.4 (latest unmasked ebuild). It is not installed on my machine and I have not been able to find where and how to get it. I've given up on this for the time being.

The snapshot hugin_2004_07_03-17_50 fails building the hugin application although the error is in the middle of the output logging and the make continues and appear to exit cleanly. Doing make install results in the situation described by bens!

So I downloaded the redhat fedora core 1 SRPM (20040921), converted it to tgz and did a manual configure, make, make install. It compiled fine and seems to run OK so far.
Back to top
View user's profile Send private message
VanDan
Guru
Guru


Joined: 30 Sep 2002
Posts: 586
Location: Australia

PostPosted: Mon Oct 18, 2004 11:01 am    Post subject: Same Problem Reply with quote

I've got the same problem here ( no wxrc ).

Got a link for that RedHat srpm?
Back to top
View user's profile Send private message
hothead
Apprentice
Apprentice


Joined: 02 Jul 2004
Posts: 277
Location: /dev/core

PostPosted: Mon Oct 18, 2004 3:44 pm    Post subject: Reply with quote

You have to watch out for the configure options.
Try
Code:
./configure --help

to get the supported options.
If you don't use cvs you have to set the gtk flag to gtk1 or gtk2 - that depends on your system.

Maybe I will release a new cvs ebuild for hugin today.

Ruben
_________________
Got a question? - http://justfuckinggoogleit.com/
Back to top
View user's profile Send private message
NaN
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2003
Posts: 93
Location: England

PostPosted: Sat Oct 23, 2004 10:24 am    Post subject: Reply with quote

I tried various options including the gtk flag and it didn't work either way. using the Redhat SRPM I didn't need any special flags it autodetected everything correctly.

You get the SPRMS from the official Hugin site, just follow the links.

David.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum