Augmented reality

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Augmented reality

Postby rojo_kllejero » Mon Oct 17, 2011 17:43

Where I can get software to use augmented reality for sabayon?
rojo_kllejero
Baby Hen
 
Posts: 11
Joined: Mon Oct 17, 2011 16:42

Re: Augmented reality

Postby Fitzcarraldo » Mon Oct 17, 2011 18:55

I recall being amazed by a demonstration of augmented reality back in 2009: Augmented Reality digital hologram.

You can find a Portage ebuild for the Augmented Reality Toolkit (ARToolKit) here. You will need to install it by using a Portage local overlay. If you don't know how to use Portage and local overlays, the method is summarised below. All the commands below must be done as root user (hence the hash prompt shown in the steps below). Open a Konsole/Terminal window and log in as the root user.

1. Install Git, as the Sabayon Portage overlay uses it:

Code: Select all
# equo install git

2. Synchronise with the Portage repositories those ebuilds on your PC that are in the Portage tree:

Code: Select all
# emerge --sync

3. Add the Sabayon overlay if it is not already added:

Code: Select all
# layman -a sabayon

4. If it is already added, synchronise with the Sabayon overlay repository those ebuilds on your PC that are in the Sabayon overlay:

Code: Select all
# layman -S

5. Edit the file /etc/make.conf and make sure it has the following lines in it at the end of the file:

Code: Select all
PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/portage/"
ACCEPT_LICENSE="*"

(Delete the line PORTDIR_OVERLAY="/usr/local/portage/" if already in the file.)

6. Set up the directories for your local overlay:

Code: Select all
# mkdir -p /usr/local/portage/media-libs/ARToolKit

7. Stop Portage nagging about a missing name for your local overlay:

Code: Select all
# mkdir /usr/local/portage/profiles
# echo "local_overlay" > /usr/local/portage/profiles/repo_name

8. Go to the above-mentioned Web page for the ebuild, download it and save the file ARToolKit-2.72.1-r3.ebuild to your Desktop.

9. Copy the file into the correct directory:

Code: Select all
# cd /usr/local/portage/media-libs/ARToolKit
# cp /home/fitzcarraldo/Desktop/ARToolKit-2.72.1-r3.ebuild .

(Obviously replace "fitzcarraldo" with your user name.)

10. Generate the manifest:

Code: Select all
# ebuild ARToolKit-2.72.1-r3.ebuild manifest

11. Merge (install) the package:

Code: Select all
# emerge -1v ARToolKit

12. Tell Entropy what you did via Portage:

Code: Select all
# equo rescue spmsync


I have not tried it myself, so do not know if it will install or how to use the ARToolKit. Good luck!

EDIT: Added the missing ".ebuild" to the end of the ebuild file name in Step 9.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7997
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Augmented reality

Postby rojo_kllejero » Tue Oct 18, 2011 1:18

HI Fitzcarraldo, i am from Argentina and my english is very bad :? , one queestion

Item 9:

# cd /usr/local/portage/media-libs/ARToolKit
# cp /home/fitzcarraldo/Desktop/ARToolKit-2.72.1-r3 .

When copy file ARToolKit-2.72.1-r3.ebuild to directory , permission error appears, how could solve?

Thank
rojo_kllejero
Baby Hen
 
Posts: 11
Joined: Mon Oct 17, 2011 16:42

Re: Augmented reality

Postby Fitzcarraldo » Tue Oct 18, 2011 1:47

You need to use the correct file name (I forgot the ".ebuild") and you need to be the root user.

Code: Select all
# cd /usr/local/portage/media-libs/ARToolKit
# cp /home/fitzcarraldo/Desktop/ARToolKit-2.72.1-r3.ebuild .

Don't forget the "." at the end. The above is the same as doing:

Code: Select all
# cd /usr/local/portage/media-libs/ARToolKit
# cp /home/fitzcarraldo/Desktop/ARToolKit-2.72.1-r3.ebuild /usr/local/portage/media-libs/ARToolKit/

or:

Code: Select all
# cd /usr/local/portage/media-libs/ARToolKit
# cp /home/fitzcarraldo/Desktop/ARToolKit-2.72.1-r3.ebuild /usr/local/portage/media-libs/ARToolKit/ARToolKit-2.72.1-r3.ebuild
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7997
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 1 guest