I've been trying to make a standalone version of an app, just one that will work on another 10.3 Mac. (The Windows etc versions will come later.) I followed the various sets of instructions for using bundlebuilder.py. I got the wx library included with a line in the buildapp call that says
libs=['/usr/local/lib/wxPython-2.5.2.7'],
But when I try to run it on a machine other than the development one -- a machine that has the Python 2.3 that comes with Mac OS X, but doesn't have the wxPython library -- I get this behavior: (1) Double-clicking the app makes its icon bounce, but nothing more gratifying. (2) If I try to copy the app file (from CD to Desktop), I get an error message saying that the wxmacd-2.5-config file is an alias (on my own hard disk it's a symbolic link to wx-config), a kind of alias that the destination can't handle. What does this mean? What do I do to make all aliases resolve when I include the library? if that's even the right approach.
How about py2app?
I never used it (I wish I had a Mac) but ... maybe you could:
http://pythonmac.org/wiki/py2app
Take a look!
···
On Mon, 4 Oct 2004 21:49:17 -0400, Charles Hartman <cohar@conncoll.edu> wrote:
I've been trying to make a standalone version of an app, just one that will work on another 10.3 Mac. (The Windows etc versions will come later.) I followed the various sets of instructions for using bundlebuilder.py. I got the wx library included with a line in the buildapp call that says
libs=['/usr/local/lib/wxPython-2.5.2.7'],
But when I try to run it on a machine other than the development one -- a machine that has the Python 2.3 that comes with Mac OS X, but doesn't have the wxPython library -- I get this behavior: (1) Double-clicking the app makes its icon bounce, but nothing more gratifying. (2) If I try to copy the app file (from CD to Desktop), I get an error message saying that the wxmacd-2.5-config file is an alias (on my own hard disk it's a symbolic link to wx-config), a kind of alias that the destination can't handle. What does this mean? What do I do to make all aliases resolve when I include the library? if that's even the right approach.
--
Peter Damoc
Hacker Wannabe
Charles,
I had a similar problem, which I solved by making sure I specified my libs
correctly. Here's the code I currently use:
wxPythonLib = '/usr/local/lib/wxPython-2.5.2.8/lib/'
...
buildapp (
name = 'Transana.app',
mainprogram = 'Transana.py',
semi_standalone = 1,
libs = [
# wxPythonLib + 'libwx_macd_core-2.5.1.dylib',
wxPythonLib + 'libwx_macd-2.5.2.dylib',
# wxPythonLib + 'libwx_macd_adv-2.5.1.dylib',
# wxPythonLib + 'libwx_macd_gizmos-2.5.1.dylib',
wxPythonLib + 'libwx_macd_gizmos-2.5.2.dylib',
# wxPythonLib + 'libwx_macd_gl-2.5.1.dylib',
# wxPythonLib + 'libwx_macd_html-2.5.1.dylib',
# wxPythonLib + 'libwx_macd_ogl-2.5.1.dylib',
# wxPythonLib + 'libwx_macd_stc-2.5.1.dylib',
wxPythonLib + 'libwx_macd_stc-2.5.2.dylib',
# wxPythonLib + 'libwx_macd_xrc-2.5.1.dylib',
# wxPythonLib + 'libwx_macd-2.5.1.rsrc',
wxPythonLib + 'libwx_macd-2.5.2.rsrc'
# wxPythonLib + 'libwx_base_carbond-2.5.1.dylib',
# wxPythonLib + 'libwx_base_carbond_net-2.5.1.dylib',
# wxPythonLib + 'libwx_base_carbond_xml-2.5.1.dylib',
],
includePackages = ['encodings'],
iconfile = 'images/Transana.icns',
files = allfiles,
)
As you can see, I use wxPython 2.5.2.8 rather than 2.5.2.7, and have a
number of libraries commented out as unnecessary for my build.
Hope this helps.
David
···
-----Original Message-----
From: Charles Hartman [mailto:cohar@conncoll.edu]
Sent: Monday, October 04, 2004 8:49 PM
To: wxPythoN Users
Subject: [wxPython-users] bundlebuilder (Mac) questionI've been trying to make a standalone version of an app, just one that
will work on another 10.3 Mac. (The Windows etc versions will come
later.) I followed the various sets of instructions for using
bundlebuilder.py. I got the wx library included with a line in the
buildapp call that says
libs=['/usr/local/lib/wxPython-2.5.2.7'],
But when I try to run it on a machine other than the development one --
a machine that has the Python 2.3 that comes with Mac OS X, but doesn't
have the wxPython library -- I get this behavior: (1) Double-clicking
the app makes its icon bounce, but nothing more gratifying. (2) If I
try to copy the app file (from CD to Desktop), I get an error message
saying that the wxmacd-2.5-config file is an alias (on my own hard
disk it's a symbolic link to wx-config), a kind of alias that the
destination can't handle. What does this mean? What do I do to make all
aliases resolve when I include the library? if that's even the right
approach.---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Charles Hartman wrote:
I've been trying to make a standalone version of an app, just one that will work on another 10.3 Mac. (The Windows etc versions will come later.) I followed the various sets of instructions for using bundlebuilder.py. I got the wx library included with a line in the buildapp call that says
libs=['/usr/local/lib/wxPython-2.5.2.7'],
But when I try to run it on a machine other than the development one -- a machine that has the Python 2.3 that comes with Mac OS X, but doesn't have the wxPython library -- I get this behavior: (1) Double-clicking the app makes its icon bounce, but nothing more gratifying. (2) If I try to copy the app file (from CD to Desktop), I get an error message saying that the wxmacd-2.5-config file is an alias (on my own hard disk it's a symbolic link to wx-config), a kind of alias that the destination can't handle. What does this mean? What do I do to make all aliases resolve when I include the library? if that's even the right approach.
Here is yet another example. This is in CVS for the doodle sample, so it will show up in the next release. I should now do a sample for py2app too I guess...
# This will build an Application Bundle of the superdoodle sample
# application for OSX. Run like this:
···
#
# pythonw buildapp.py build
#
import os, glob
from bundlebuilder import buildapp
# See below. Set to wherever your wxMac dynlibs are installed.
# (Probably /usr/local/lib/wxPython-2.5.2.?/lib) If you don't use all
# the contribs libs then you can use a more restrictive list.
wxLibs = "/usr/local/lib/wxPython-2.5.2.?/lib/libwx*2.5.2.[dr]*"
buildapp(
name = "SuperDoodle",
mainprogram = "superdoodle.py",
# This tells bundlebuilder to include Python and everything else
# that it needs to run the app
standalone = 1,
# Bunndlebuilder isn't yet able to find the shared libs that may be
# needed by extension modules, so we have to help it out.
libs = glob.glob(wxLibs),
# Some modules will not be found automatically, so we need to help
includeModules = ["cStringIO"],
verbosity = 1
)
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
If you want to run OS/X on Linux or Windows, check out PearPC:
http://pearpc.sourceforge.net/
I successfully installed 10.3 on Linux a couple of days ago. I just
installed wxPythonMac and am getting ready to port an app I'm working on
to OS/X. On my Athlon XP 1700+ it runs a bit slow, but acceptably for
testing (too slow for an everyday desktop though).
Regards,
Cliff
···
On Tue, 2004-10-05 at 09:31 +0300, Peter Damoc wrote:
I never used it (I wish I had a Mac)
--
Cliff Wells <clifford.wells@comcast.net>
Cliff Wells wrote:
I successfully installed 10.3 on Linux a couple of days ago. I just
installed wxPythonMac and am getting ready to port an app I'm working
on to OS/X. On my Athlon XP 1700+ it runs a bit slow, but acceptably
for testing (too slow for an everyday desktop though).
So how do you resolve the problem that the legal agreement for MacOS
says you can only install it on Apple hardware :-?
I really wish Apple would provide a way for developers to get access.
The cheapest you can buy a Mac is $800 - (second hand ones are less
but come with earlier versions of MacOS so you would have to pay
another $130 to get them up to speed).
If PearPC also did USB ports and I could legally run MacOS in it,
I would be overjoyed!
Roger
Cliff Wells wrote:
> I successfully installed 10.3 on Linux a couple of days ago. I just
> installed wxPythonMac and am getting ready to port an app I'm working
> on to OS/X. On my Athlon XP 1700+ it runs a bit slow, but acceptably
> for testing (too slow for an everyday desktop though).So how do you resolve the problem that the legal agreement for MacOS
says you can only install it on Apple hardware :-?
The same way I resolve all utter stupidities: I ignore it if possible.
Besides, I seriously doubt that restriction is truly enforceable or,
assuming for the moment that it is, if Apple would even be bothered to
try to enforce it on the handful of people who use emulators. They have
never taken any action against the companies who provide these emulators
(and some of them are actual commercial entities who have been around
for years).
I really wish Apple would provide a way for developers to get access.
The cheapest you can buy a Mac is $800 - (second hand ones are less
but come with earlier versions of MacOS so you would have to pay
another $130 to get them up to speed).
Well, Apple has a long history of sucking in one form or another. They
seem to have mostly resolved the issues with their hardware and OS
sucking (and prices too, I might add, are actually the most reasonable
in Apple history: $800 is a pittance for a new Mac), but apparently they
still haven't figured out the reason they now trail behind both Windows
*and* Linux in desktop shares today is due in part to their draconian
licensing policies (I wonder where they'd be now had they not killed the
Taiwanese Mac clones back in the early 90's). And of course the reason
we're literally flooded with new OS/X apps is because Apple makes it so
easy and inexpensive for developers to enter the market.
If PearPC also did USB ports and I could legally run MacOS in it,
I would be overjoyed!
Luckily neither of those things are issues for me
Frankly, the only thing stopping me from owning a Mac today is Apple's
backwards policies on this sort of thing. They have decent, well-priced
hardware, a respectable OS, and a beautiful (if something less than
intuitive) desktop. Oh well, Jobs is a renowned visionary. Perhaps his
next company will join us in the 90's.
Regards,
Cliff
···
On Wed, 2004-10-06 at 20:10 -0700, Roger Binns wrote:
--
Cliff Wells <clifford.wells@comcast.net>
Cliff Wells <clifford.wells@comcast.net> writes:
···
On Tue, 2004-10-05 at 09:31 +0300, Peter Damoc wrote:
I never used it (I wish I had a Mac)
If you want to run OS/X on Linux or Windows, check out PearPC:
But where would you get the OS/X distribution? Is it available for
download somewhere?
Thomas
thanks for the tip but... 10.3 retails here for about 160 euros... way to much for my budget...
It would be interesting to see tho how well does it work on my 3.0Ghz P4
···
On Wed, 06 Oct 2004 19:49:43 -0700, Cliff Wells <clifford.wells@comcast.net> wrote:
On Tue, 2004-10-05 at 09:31 +0300, Peter Damoc wrote:
I never used it (I wish I had a Mac)
If you want to run OS/X on Linux or Windows, check out PearPC:
http://pearpc.sourceforge.net/
http://pearpc.net/I successfully installed 10.3 on Linux a couple of days ago. I just
installed wxPythonMac and am getting ready to port an app I'm working on
to OS/X. On my Athlon XP 1700+ it runs a bit slow, but acceptably for
testing (too slow for an everyday desktop though).
--
Peter Damoc
Hacker Wannabe
Thomas Heller wrote:
But where would you get the OS/X distribution? Is it available for
download somewhere?
Yes, go to macOS Sequoia - Apple
and click the "I'm Ready To Upgrade" link. Part with $129 or
whatever Apple charges in your country and it will be downloaded
via postal mail to you
For those considering buying MacOS, be very careful as a new version
will be coming out in the not too distant future, and you will get
to pay another $129 to upgrade to that.
Steve's keynote about that new version ("Tiger") has many good demos
and stuff of interest:
http://www.apple.com/quicktime/qtv/wwdc04/
Also realise that you won't get the full benefit if running under
PearPC since it doesn't do accelerated graphics.
As an extra bonus, you can't buy Apple hardware without an integrated
monitor for less than $2,000. (I already have two monitors and no more
desk space)
Roger
Roger Binns wrote:
As an extra bonus, you can't buy Apple hardware without an integrated
monitor for less than $2,000. (I already have two monitors and no more
desk space)
we're getting really off-topic here, but this is one of my major beefs with Apple: too small a selection of hardware options. When price comparisons are done with feature-similar systems, Apple systems are competitive with PCs. However, you are often forced to buy features you don't want, and that's where you end up spending a lot more money on an Apple.
At least they sell a rack-mount computational node now, but they still make you buy their "Server" OS with it...arrgg!
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov
It's at the store <wink>. Despite my misgivings about Apple, you should
probably pay them for their software.
Regards,
Cliff
···
On Thu, 2004-10-07 at 08:56 +0200, Thomas Heller wrote:
Cliff Wells <clifford.wells@comcast.net> writes:
> On Tue, 2004-10-05 at 09:31 +0300, Peter Damoc wrote:
>
>> I never used it (I wish I had a Mac)
>
> If you want to run OS/X on Linux or Windows, check out PearPC:
>
> http://pearpc.sourceforge.net/
> http://pearpc.net/But where would you get the OS/X distribution? Is it available for
download somewhere?
--
Cliff Wells <clifford.wells@comcast.net>
Roger Binns wrote:
I really wish Apple would provide a way for developers to get access.
I can't find the contact info any more, but if you talk to the right people at Apple it is not too hard to get loaner hardware for free to use for software development. The first two Macs that I used to work on wxPython with were loaners from Apple. They were preiously used and not top of the line models, but were sufficient to get going with.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!