setup Qt and PyQt on mac osx so my app can also deployable on windows

Posted by hk_programmer on Stack Overflow See other posts from Stack Overflow or by hk_programmer
Published on 2010-02-03T18:13:22Z Indexed on 2010/05/13 7:34 UTC
Read the original article Hit count: 214

Filed under:
|
|

Hi,

I've been coding with Python and C++ and now need to work on building a gui for data visualization purposes. I work on Mac Snow Leopard (intel), python 3.1 using gcc 4.2.1 (from Xcode 3.1)

I wanted to first install Qt and then PyQt. And my goals are to be able to: - quickly prototype GUI and the accompanied logic that drives the GUI using PyQt and python - if I decided I need the speed, or if it's fairly easy to translate my GUI into C++ using the Qt tools, I have the options to translate my app into C++ - Be able to deploy my application onto Windows (both the python and c++ version of my app)

Give the goals above, what are the correct steps I should take and what issues i should be aware of when setting up Qt and PyQt. Which other deployment tools do I need?

From my readings so far, here's what I have:

  1. download the Qt source for mac and configure it with -platform macx-g++42 -arch x86_64 -no-framework

    (i've read somewhere that building as framework causes some trouble in deployment and/or debugging, can't find the article anymore)

  2. download latest SIP source and build
  3. download latest PyQt and build from source (any special options I should pay attention to?)

For deployment, I've read that I would need to use py2exe/cx_freeze for windows, p2app for mac: http://arstechnica.com/open-source/guides/2009/03/how-to-deploying-pyqt-applications-on-windows-and-mac-os-x.ars

but seems like what the article describe is deploying an app you build on windows on the windows platform and vice versa. How do you deploy to windows (is it even possible?) if you are writing your Qt app on a mac ?

Really appreciate the help

© Stack Overflow or respective owner

Related posts about pyqt

Related posts about qt