Page 1 of 8

Papywizard on MacOS

PostPosted: Tue Feb 17, 2009 10:58 pm
by jriley
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

PostPosted: Tue Feb 17, 2009 10:59 pm
by mediavets
I'm sure Frederic will be happy to offer some guidance.

PostPosted: Wed Feb 18, 2009 12:18 am
by bigwade
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

PostPosted: Wed Feb 18, 2009 12:42 am
by klausesser
mediavets wrote:I'm sure Frederic will be happy to offer some guidance.

That would be very interesting!

best, Klaus

PostPosted: Wed Feb 18, 2009 1:07 am
by bigwade
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!

PostPosted: Wed Feb 18, 2009 1:27 am
by fma38
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...

PostPosted: Wed Feb 18, 2009 3:01 am
by jriley
What would really be great would be running it on an iPhone or iPod Touch :D

PostPosted: Wed Feb 18, 2009 8:41 am
by fma38
I know nothing about ixxx development. If you can run PyQt on such plateform, then it should work.

PostPosted: Wed Feb 18, 2009 9:21 am
by fma38
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 ;)

PostPosted: Wed Feb 18, 2009 12:45 pm
by klausesser
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.

PostPosted: Wed Feb 18, 2009 2:00 pm
by numz
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

PostPosted: Wed Feb 18, 2009 4:13 pm
by fma38
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...

PostPosted: Wed Feb 18, 2009 11:10 pm
by fma38
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.

PostPosted: Fri Feb 20, 2009 11:07 am
by numz
I should find a little bit time to try this...
Too much work for the moment... :(

PostPosted: Sat Feb 21, 2009 10:19 am
by jeremyp
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

PostPosted: Sat Feb 21, 2009 10:43 am
by mediavets
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! :)

PostPosted: Sat Feb 21, 2009 11:34 am
by fma38
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?

PostPosted: Sat Feb 21, 2009 11:50 am
by fma38
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)?

PostPosted: Sat Feb 21, 2009 6:16 pm
by loddie
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.:/

PostPosted: Sat Feb 21, 2009 6:29 pm
by fma38
Hello and welcome ;)

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

PostPosted: Sat Feb 21, 2009 7:46 pm
by bigwade
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 !

PostPosted: Sat Feb 21, 2009 8:24 pm
by bigwade
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

PostPosted: Sat Feb 21, 2009 8:50 pm
by fma38
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 :(

PostPosted: Sat Feb 21, 2009 10:13 pm
by bigwade
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....... :)

PostPosted: Sat Feb 21, 2009 10:47 pm
by jriley
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