Papywizard on MacOS  

Everything you need to motorize your head
no avatar
jriley
Member
 
Topic author
Posts: 147
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 08, 2008 2:51 pm
Location: Spartanburg, SC USA
Info

Papywizard on MacOS

by jriley » Tue Feb 17, 2009 10:58 pm

Has anyone out there tried to run Papywizard on Mac OS X? With its Unix core, shouldn't it be easy? I know Python is already installed.

I would like to give it a whirl, but just don't know where to begin.

John

no avatar
mediavets
Moderator
 
Posts: 16415
Likes: 2 posts
Liked in: 130 posts
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.
Info

by mediavets » Tue Feb 17, 2009 10:59 pm

I'm sure Frederic will be happy to offer some guidance.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

no avatar
bigwade
Member
 
Posts: 282
Likes: 0 post
Liked in: 0 post
Joined: Tue Nov 18, 2008 12:34 am
Location: NL
Info

by bigwade » Wed Feb 18, 2009 12:18 am

jriley wrote:Has anyone out there tried to run Papywizard on Mac OS X? With its Unix core, shouldn't it be easy? I know Python is already installed.

I would like to give it a whirl, but just don't know where to begin.

John

John, if someone can make GUI for installing PW, that would be GREAT !
I could even use my MacBook.
But it's a deep in the system thing.
France is a very Mac minded country but even they don't know.........
grtz
Frank

User avatar
klausesser
Member
 
Posts: 8836
Likes: 5 posts
Liked in: 64 posts
Joined: Mon May 22, 2006 12:18 am
Location: Duesseldorf, Germany
Info

by klausesser » Wed Feb 18, 2009 12:42 am

mediavets wrote:I'm sure Frederic will be happy to offer some guidance.

That would be very interesting!

best, Klaus
Simplicity is the keynote of all true elegance. Coco Chanel

no avatar
bigwade
Member
 
Posts: 282
Likes: 0 post
Liked in: 0 post
Joined: Tue Nov 18, 2008 12:34 am
Location: NL
Info

by bigwade » Wed Feb 18, 2009 1:07 am

Got this mail from Frederic 18/11/2008
I hope it's oké to post it here Frederic.

QUOTE:

"I'm looking for someone to test Papywizard under MacOS. It should run
out-of-the box, or with very little adjustments. Would you like to give it
a try?

I guess python is already installed on MacOS. So, just download the
software from:

http://trac.gbiloba.org/papywizard/browser/trunk

(click on the 'Zip Archive' at the bottom of the page).

Once installed and unziped, just open a console, go to the 'trunk' dir, and
run the shell script papywizard.sh (don't know what shell you are running;
it may work using './papywizard.sh', or 'sh papywizard.sh').

It should run in simulation mode; w'll see for serial or bluetooth
connexion later."
end quote.

I'm a Macuser and not a under the hood guy so after "open a console" I stopped..
But if others can use this, do it ! :) AND REPORT !
grtz!
Last edited by bigwade on Wed Feb 18, 2009 1:17 am, edited 1 time in total.

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Wed Feb 18, 2009 1:27 am

Ok, I will give you usefull informations to install PyQt on MacOS (to run Papywizard 2, as PyGTK for Papywizard 1 does not exist). You will need to compile some stuff, but it should not be a problem...
Frédéric

no avatar
jriley
Member
 
Topic author
Posts: 147
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 08, 2008 2:51 pm
Location: Spartanburg, SC USA
Info

by jriley » Wed Feb 18, 2009 3:01 am

What would really be great would be running it on an iPhone or iPod Touch :D

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Wed Feb 18, 2009 8:41 am

I know nothing about ixxx development. If you can run PyQt on such plateform, then it should work.
Frédéric

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Wed Feb 18, 2009 9:21 am

Ok, here are the steps to compile/install PyQt on MacOS:

1) Install Qt:

ftp://ftp.trolltech.com/qt/source/qt-mac-opensource-4.4.3.dmg

Check if you don't already have an official MacOS package...

2) Download sip:

http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.7.9.tar.gz

3) Extract and compile sip

The following steps need to be executed in a consoel, from the dir where you downloaded sip. Us 'cd' command to navigate through directories.

$ tar xvzf sip-4.7.9.tar.gz
$ cd sip-4.7.9
$ python configure.py
$ make
# make install

(you may need to become root to install it).

4) Download PyQt:

http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.4.4.tar.gz

5) Extract and compile PyQt

$ tar xvzf PyQt-mac-gpl-4.4.4.tar.gz
$ cd PyQt-mac-gpl-4.4.4
$ python configure.py
$ make
# make install

For both sip and PyQt, have a look at the file xxxref.txt or xxxref.html, in the subdir 'doc'. There are usefull informations to install these packages.

Good luck ;)
Frédéric

User avatar
klausesser
Member
 
Posts: 8836
Likes: 5 posts
Liked in: 64 posts
Joined: Mon May 22, 2006 12:18 am
Location: Duesseldorf, Germany
Info

by klausesser » Wed Feb 18, 2009 12:45 pm

fma38 wrote:Ok, I will give you usefull informations to install PyQt on MacOS (to run Papywizard 2, as PyGTK for Papywizard 1 does not exist). You will need to compile some stuff, but it should not be a problem...

Hi Pal!

Many guys i know would be happy to run PW from their MacBooks or PowerBooks via Bluetooth instead of buying a extra device. (i myself prefer the extra device :cool:)

So providing a way they could install and run PW on their partable Macs which doesn´t mean to go into command-lines would be absolutely great! Or at least a detailed description for absolute dummies of what to do step by step . . ;)

Mac-users usually think different . . . :P :cool:

best, Klaus

P.S.:

oops - sorry: i oversaw your latest posting.
Last edited by klausesser on Wed Feb 18, 2009 12:50 pm, edited 1 time in total.
Simplicity is the keynote of all true elegance. Coco Chanel

no avatar
numz
Member
 
Posts: 116
Likes: 0 post
Liked in: 0 post
Joined: Wed May 21, 2008 2:20 pm
Info

by numz » Wed Feb 18, 2009 2:00 pm

I have try :
fma38 wrote:Ok, here are the steps to compile/install PyQt on MacOS:

1) Install Qt:

ftp://ftp.trolltech.com/qt/source/qt-mac-opensource-4.4.3.dmg

Check if you don't already have an official MacOS package...

2) Download sip:

http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.7.9.tar.gz

3) Extract and compile sip

The following steps need to be executed in a consoel, from the dir where you downloaded sip. Us 'cd' command to navigate through directories.

$ tar xvzf sip-4.7.9.tar.gz
$ cd sip-4.7.9
$ python configure.py
$ make
# make install

(you may need to become root to install it).

I have a problem at point 3)
Code: Select all
imac:sip-4.7.9 emury$ python configure.py
This is SIP 4.7.9 for Python 2.5.1 on darwin.
The SIP code generator will be installed in
/System/Library/Frameworks/Python.framework/Versions/2.5/bin.
The SIP module will be installed in /Library/Python/2.5/site-packages.
The SIP header file will be installed in
/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5.
The default directory to install .sip files in is
/System/Library/Frameworks/Python.framework/Versions/2.5/share/sip.
The platform/compiler configuration is macx-g++.
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...
imac:sip-4.7.9 emury$ make
-bash: make: command not found

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Wed Feb 18, 2009 4:13 pm

You need to install some development packages. I don't know well MacOS packaging strategy, but I would first try to look at official Apple repository to see if they can be installed from there. I know there are some official development things, but I don't know if you need a special OS installer or not.

Here, you first step is to install make and gcc/g++ packages.

I'll try to find where you can get them...
Frédéric

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Wed Feb 18, 2009 11:10 pm

Ok, here some informations to compile/install PyQt on MacOS, given by William Kyngesburye, on PyQt mailng list (I didn't try myself, as I don't have a Mac):

1. Install Xcode.

Every new Mac should include an Xcode install disk. But this is probably out of date. Really, you should go to http://developer.apple.com/tools/xcode/index.html, Mac Dev Center and download a current version of Xcode. You need to register for a free ADC membership. Download is nearly 1GB!

2. Download and install Qt frameworks for OSX.

ftp://ftp.trolltech.com/qt/source/qt-mac-opensource-4.4.3.dmg

Now, some OS specific stuffs...

** For Leopard (using the system Python 2.5) **

3. Download/Compile/install sip:

http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.7.9.tar.gz

Code: Select all
$ export MACOSX_DEPLOYMENT_TARGET=10.5
$ python configure.py -n -d /Library/Python/2.5/site-packages -b /usr/local/bin -e /usr/local/include -v /usr/local/share/sip -s MacOSX10.5.sdk
$ make
$ sudo make install

4. Download/compile install PyQt:

http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.4.4.tar.gz

Code: Select all
$ export QTDIR=/Developer/Applications/Qt
$ python configure.py -d /Library/Python/2.5/site-packages -b /usr/local/bin
$ make
$ sudo make install

** For Tiger and Leopard (using the python.org Python 2.5) **

3b. Download/install Python 2.5:

http://www.python.org/ftp/python/2.5.4/python-2.5.4-macosx.dmg

4b. Download/compile/install sip:

http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.7.9.tar.gz

Code: Select all
$ export MACOSX_DEPLOYMENT_TARGET=10.4
$ python configure.py -n -d /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages -s MacOSX10.4u.sdk
$ make
$ sudo make install

5. Download/compile install PyQt:

http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.4.4.tar.gz

Code: Select all
$ export QTDIR=/Developer/Applications/Qt
$ python configure.py -d /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
$ make
$ sudo make install

Feel free to post your questions if you have problems.

Once all works fine, I'll do a wiki page.
Frédéric

no avatar
numz
Member
 
Posts: 116
Likes: 0 post
Liked in: 0 post
Joined: Wed May 21, 2008 2:20 pm
Info

by numz » Fri Feb 20, 2009 11:07 am

I should find a little bit time to try this...
Too much work for the moment... :(

no avatar
jeremyp
Member
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Sun Feb 15, 2009 4:28 am
Location: Sydney, Australia
Info

by jeremyp » Sat Feb 21, 2009 10:19 am

fma38 wrote:Once all works fine, I'll do a wiki page.

I can confirm that papywizard runs on OSX but cannot yet test hardware operation (next week). I changed settings, loaded a preset and ran a simulation of the shoot.

Process was to build and install Qt, SIP and PyQt. I already had the developer stuff installed..

Nice :D



no avatar
mediavets
Moderator
 
Posts: 16415
Likes: 2 posts
Liked in: 130 posts
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.
Info

by mediavets » Sat Feb 21, 2009 10:43 am

jeremyp wrote:
fma38 wrote:Once all works fine, I'll do a wiki page.

I can confirm that papywizard runs on OSX but cannot yet test hardware operation (next week). I changed settings, loaded a preset and ran a simulation of the shoot.

Process was to build and install Qt, SIP and PyQt. I already had the developer stuff installed..

Nice :D

Congratulations - a world first! :)
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Sat Feb 21, 2009 11:34 am

Great Jeremy!

Did you follow the explanations above? If not, can you tell us what you did, so we can create a wiki page?

Would you like to help to create a Papywizard MacOS package?
Frédéric

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Sat Feb 21, 2009 11:50 am

Another question: do you have bluetooth on you Mac? Did you try to use the Bluetooth Chooser in the Configuration dialog to see if scanning works (and so, the BT stuff)?
Frédéric

no avatar
loddie
Member
 
Posts: 18
Likes: 0 post
Liked in: 0 post
Joined: Sat Feb 21, 2009 6:12 pm
Info

by loddie » Sat Feb 21, 2009 6:16 pm

I too am a Mac user and would like to see this PW running for Mac OSX and iphone/ipod touch. Unfortunately, I do not have any computer skills to contribute.:/

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Sat Feb 21, 2009 6:29 pm

Hello and welcome ;)

Be patient: I hope Jeremy and I will soon be able to propose a binary for MacOS...
Frédéric

no avatar
bigwade
Member
 
Posts: 282
Likes: 0 post
Liked in: 0 post
Joined: Tue Nov 18, 2008 12:34 am
Location: NL
Info

by bigwade » Sat Feb 21, 2009 7:46 pm

jeremyp wrote:
fma38 wrote:Once all works fine, I'll do a wiki page.

I can confirm that papywizard runs on OSX but cannot yet test hardware operation (next week). I changed settings, loaded a preset and ran a simulation of the shoot.

Process was to build and install Qt, SIP and PyQt. I already had the developer stuff installed..

Nice :D

WoW ! Looks gooooooooood !

no avatar
bigwade
Member
 
Posts: 282
Likes: 0 post
Liked in: 0 post
Joined: Tue Nov 18, 2008 12:34 am
Location: NL
Info

by bigwade » Sat Feb 21, 2009 8:24 pm

loddie wrote:I too am a Mac user and would like to see this PW running for Mac OSX and iphone/ipod touch. Unfortunately, I do not have any computer skills to contribute.:/

Frederic, did you manage to contact Brian Greenstone (http://www.pangeasoft.net/pano/index.html) to "rewrite" PW for an iPhone.
An iPod Touch has no BT...loddie

User avatar
fma38
Moderator
 
Posts: 5850
Likes: 2 posts
Liked in: 2 posts
Joined: Wed Dec 07, 2005 6:21 pm
Location: Grenoble, France
Info

by fma38 » Sat Feb 21, 2009 8:50 pm

Yes, I contacted him, but it didn't look very interested... But as neither GTK nor Qt runs on iphone, you need to re-write the entire application :(
Frédéric

no avatar
bigwade
Member
 
Posts: 282
Likes: 0 post
Liked in: 0 post
Joined: Tue Nov 18, 2008 12:34 am
Location: NL
Info

by bigwade » Sat Feb 21, 2009 10:13 pm

fma38 wrote:Yes, I contacted him, but it didn't look very interested... But as neither GTK nor Qt runs on iphone, you need to re-write the entire application :(

just send Brian a mail....... :)

no avatar
jriley
Member
 
Topic author
Posts: 147
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 08, 2008 2:51 pm
Location: Spartanburg, SC USA
Info

by jriley » Sat Feb 21, 2009 10:47 pm

BTW - in following the directions for installing everything needed for Papywizard, it may not be apparent to the uninitiated that you need to be in the directory of the downloaded, unzipped folder of sip and PyQT when executing the commands.

A simple way to get to a directory in the terminal application for those not familiar with the terminal is to install the applescript found at http://www.entropy.ch/software/applescript/ (very easy), then go to the folder in the finder and click on the OpenTerminalHere icon in the top of the finder window. Also nice to know: If you are in a directory in the terminal and want to open it in the finder, type "open ." without the parentheses of course, and don't forget the trailing period.

As to my install... when I got to the "sudo make install" step of the PyQT installation, it went on for quite some time in the terminal, then ended with:
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: for architecture ppc
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: can't locate file for: -lQtCLucene
collect2: ld returned 1 exit status
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: for architecture i386
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: can't locate file for: -lQtCLucene
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccNJ2Tvm.out (No such file or directory)
make[1]: *** [QtHelp.so] Error 1
make: *** [all] Error 2
imac:~/Desktop/PyQt-mac-gpl-4.4.4 john$

What happened there? Is this a fatal error?

Lastly - what instructions should I follow to install Papywizard itself? I am guessing the ones for linux, so I ran the command python setup.py install --prefix=/usr/local while in the 1.9 Papywizard source "trunk" download from http://trac.gbiloba.org/papywizard/browser/trunk. I had downloaded the "Zip Archive" at the bottom of the page.

First, it hung on wanting to copy the file papywizard.svg from the /debian folder to somewhere. What the hey, I copied it from the main folder to the /debian folder and tried again. Woops, permission denied, so I used sudo to run it. Ok, now it quickly ran through the setup.py script without complaint. Now what? There is still no executable in the folder. I guess I am stuck. I remember just enough of unix from my grad school days to be a danger to myself :P

Next

Who is online

Users browsing this forum: No registered users and 2 guests

cron