Difference between revisions of "Hugin Compiling Gentoo"

From PanoTools.org Wiki
Jump to navigation Jump to search
(format)
(upgrade guide to use layman)
Line 7: Line 7:
 
Hugin 0.7.0 is now available in portage. If you prefer a in-portage solution (instead of the bleeding edge), you should go for this one.
 
Hugin 0.7.0 is now available in portage. If you prefer a in-portage solution (instead of the bleeding edge), you should go for this one.
 
i.e., unmask the keyworded =media-gfx/hugin-0.7.0 and emerge it.
 
i.e., unmask the keyworded =media-gfx/hugin-0.7.0 and emerge it.
For more information on unmasking, have a look at [http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=3#doc_chap2 the Gentoo Handbook]
+
For more information on unmasking, have a look at [http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=3#doc_chap2 the Gentoo Handbook].
 
|}
 
|}
  
Line 14: Line 14:
  
 
If anything does not work: [[Hugin_Compiling_Gentoo#Bugs|Bugs]]
 
If anything does not work: [[Hugin_Compiling_Gentoo#Bugs|Bugs]]
 
 
{| style="margin: 1em auto 1em 1em;background:#FFFF99;color:#FF0000;text-align:left;border: solid #FF3300;"
 
|-valign="top"
 
! '''BROKEN:'''
 
These instructions are known to be broken as of 2008-12-28. Thanks to Marcus Holland-Moritz for reporting this.
 
I'll try to provide new ebuilds as fast as possible. --thpani
 
|}
 
 
HINT: for those who know what they are doing: add the following code to the ebuild:
 
<pre>
 
src_unpack() {
 
subversion_src_unpack
 
 
cd "${S}"
 
echo ${ESVN_WC_REVISION} >rev.txt
 
}
 
</pre>
 
  
 
== Setting up the overlay ==
 
== Setting up the overlay ==
If you've never worked with a overlay, please read http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds to get an idea of what we're doing here.
+
If you've never worked with a overlay, please read http://en.gentoo-wiki.com/wiki/Overlays (especially the section on layman) to get an idea of what we're doing here.
  
 
The next steps are:
 
The next steps are:
* Download the tarball for the overlay.
+
* Installing layman (if you haven't already).
* Unpack the tarball.
+
* Add the overlay listing to layman's config.
* Tell portage about the overlay.
+
* Add the overlay using layman.
  
 
First sudo, so you have sufficient permissions:
 
First sudo, so you have sufficient permissions:
Line 47: Line 29:
 
</pre>
 
</pre>
  
Download the tarball:
+
Install layman (IF YOU HAVEN'T ALREADY DONE SO):
 
<pre>
 
<pre>
wget http://stud3.tuwien.ac.at/~e0726415/download/hugin_overlay-0.1.tar.bz2
+
emerge -av layman
 +
echo "source /usr/portage/local/layman/make.conf" >>  /etc/make.conf
 
</pre>
 
</pre>
  
Create an overlay directory: (if you already have one, you can leave this out)
+
Add the overlay listing:
 +
Open /etc/layman/layman.cfg in your favourite editor and change:
 
<pre>
 
<pre>
mkdir /usr/portage/local/
+
overlays  : http://www.gentoo.org/proj/en/overlays/layman-global.txt
 +
            http://pani.webhop.org/download/overlays.xml
 
</pre>
 
</pre>
 +
Save and exit.
  
Unpack the overlay tarball:
+
Add the overlay using layman:
 
<pre>
 
<pre>
tar xjf hugin_overlay-0.1.tar.bz2 -C /usr/portage/local/
+
layman -f
 +
layman -a panotools
 
</pre>
 
</pre>
  
Add the overlay to your overlay list:
+
Run "layman -S" (or eix-sync if you have it installed and configured to sync layman overlays) periodicaly for new updates.
<pre>
 
vim /etc/make.conf
 
</pre>
 
 
 
Add <pre>/usr/portage/local/hugin/</pre> to the list in PORTDIR_OVERLAY (space separated).
 
 
 
If there is no PORTDIR_OVERLAY defined, just put the line
 
<pre>PORTDIR_OVERLAY="/usr/portage/local/hugin/"</pre>
 
in there.
 
 
 
Save and exit.
 
  
 
== Unmasking ==
 
== Unmasking ==
Line 83: Line 59:
 
=media-gfx/enblend-9999 ~x86
 
=media-gfx/enblend-9999 ~x86
 
=media-libs/libpano13-9999 ~x86
 
=media-libs/libpano13-9999 ~x86
=media-gfx/autopano-sift-c-9999 ~x86
+
=media-gfx/autopano-sift-C-9999 ~x86
 
</pre>
 
</pre>
 +
 +
For more information on unmasking, have a look at [http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=3#doc_chap2 the Gentoo Handbook].
  
 
== Installing ==
 
== Installing ==
Line 97: Line 75:
 
emerge --unmerge libpano12
 
emerge --unmerge libpano12
 
</pre>
 
</pre>
 +
 +
== Staying up2date ==
 +
Run "emerge -av -1 hugin enblend libpano13 autopano-sift-C" regularly to build the latest versions.
 +
 +
You could also use the [http://avuton.googlepages.com/update-live-ebuilds update-live-ebuilds script] that upgrades only if something actually changed.
  
 
== Bugs ==
 
== Bugs ==
 
Please '''DO NOT''' report bugs to Gentoo's bugzilla.
 
Please '''DO NOT''' report bugs to Gentoo's bugzilla.
Instead, send a message to the [http://groups.google.com/group/hugin-ptx hugin-ptx mailing list], or [http://stud3.tuwien.ac.at/~e0726415/contact.html contact me directly].
+
Instead, please [http://stud3.tuwien.ac.at/~e0726415/contact.html contact me directly].
  
 
[[Category:Software:Hugin]]
 
[[Category:Software:Hugin]]
 
[[Category:Software:Platform:Linux]]
 
[[Category:Software:Platform:Linux]]

Revision as of 22:40, 28 December 2008

Preface

These are instructions to build hugin and the whole set of helper applications required from CVS/SVN.

UPDATE:

Hugin 0.7.0 is now available in portage. If you prefer a in-portage solution (instead of the bleeding edge), you should go for this one. i.e., unmask the keyworded =media-gfx/hugin-0.7.0 and emerge it. For more information on unmasking, have a look at the Gentoo Handbook.


These instructions are work in progress. They're testet on x86 only (though amd64 should work just fine). (Maybe ppc as well. If you try on ppc, please tell me if it works or not.)

If anything does not work: Bugs

Setting up the overlay

If you've never worked with a overlay, please read http://en.gentoo-wiki.com/wiki/Overlays (especially the section on layman) to get an idea of what we're doing here.

The next steps are:

  • Installing layman (if you haven't already).
  • Add the overlay listing to layman's config.
  • Add the overlay using layman.

First sudo, so you have sufficient permissions:

sudo -s
(enter your password)

Install layman (IF YOU HAVEN'T ALREADY DONE SO):

emerge -av layman
echo "source /usr/portage/local/layman/make.conf" >>  /etc/make.conf

Add the overlay listing: Open /etc/layman/layman.cfg in your favourite editor and change:

overlays  : http://www.gentoo.org/proj/en/overlays/layman-global.txt
            http://pani.webhop.org/download/overlays.xml

Save and exit.

Add the overlay using layman:

layman -f
layman -a panotools

Run "layman -S" (or eix-sync if you have it installed and configured to sync layman overlays) periodicaly for new updates.

Unmasking

The versions in the overlay are masked as unstable. You'll have to unmask them:

Open /etc/portage/package.keywords (if it doesn't exist, create it) and add the following lines:

=media-gfx/hugin-9999 ~x86
=media-gfx/enblend-9999 ~x86
=media-libs/libpano13-9999 ~x86
=media-gfx/autopano-sift-C-9999 ~x86

For more information on unmasking, have a look at the Gentoo Handbook.

Installing

Now the fun part! Run

emerge -av hugin

If you have libpano12 installed, you'll run in into a blocker warning. Please unmerge libpano12 (you'll get libpano13 for it ;) ):

emerge --unmerge libpano12

Staying up2date

Run "emerge -av -1 hugin enblend libpano13 autopano-sift-C" regularly to build the latest versions.

You could also use the update-live-ebuilds script that upgrades only if something actually changed.

Bugs

Please DO NOT report bugs to Gentoo's bugzilla. Instead, please contact me directly.