A Newbie question on how to distribute application binary on Mac OS X.



Hi there,

I have been a Windows and Linux programmer for many years but only
recently been working on a Mac.
I have a probably naive question to ask about Mac.
I have developed a C++ open source software called QPolymer (http://
sourceforge.net/projects/qpolymer/) that uses the Qt library(http://
www.trolltech.com/), meaning that my code should natively build on
Windows, Linux and Mac. The software have been fairly well tested on
the Windows and Linux systems but I just started to try it on a Mac.

I am lucky to borrow a G4 from the University and able to install OS
X , Xcode on it. Then I successfully build the from the source the Qt
library and then my QPolymer software. Since I plan to build the
binary so that others can run it on a Mac without building the source,
I chose to build the static libraries. When I use otool to see the
linked libraries I got:
tungsten:~/static/QPolymer seki$ otool -L qpolymer.app/Contents/MacOS/
qpolymer
qpolymer.app/Contents/MacOS/qpolymer:
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
(compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL
(compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
(compatibility version 2.0.0, current version 128.0.0)
/System/Library/Frameworks/QuickTime.framework/Versions/A/
QuickTime (compatibility version 1.0.0, current version 200.0.0)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
(compatibility version 45.0.0, current version 824.41.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current
version 1.2.3)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 88.1.9)
/usr/lib/libiconv.2.dylib (compatibility version 5.0.0,
current version 5.0.0)
/System/Library/Frameworks/ApplicationServices.framework/
Versions/A/ApplicationServices (compatibility version 1.0.0, current
version 22.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0,
current version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0,
current version 1.0.0)
tungsten:~/static/QPolymer seki$

It is obvious that the Qt libraries have been staticly linked in the
binary. However, when I tried this binary on another Mac, it does not
work. I am wondering what else I need to do. Do I have to install
Xcode on the other Mac also?

I would like any suggestions on how to make a standalone binary
distribution of the software. You can download my binary from
http://downloads.sourceforge.net/qpolymer/qpolymer.zip?modtime=1179664639&big_mirror=0
.. I would greatly appreciate it if you can let me know whether it
works on your Mac.

Thank you very much.

Shi

.



Relevant Pages

  • Re: Initial experiences moving to Mac
    ... 2Ghz Intel Core Duo processor a few weeks ago. ... Mac platform is to replace both my Linux boxes ... and my Windows boxes (for music and occasionally other stuff Linux ...
    (comp.sys.mac.advocacy)
  • Re: Just plain fucked...
    ... DeskJet F2100 (Windows, Mac OS X) ... DeskJet F2400 (Windows, Mac OS X, Linux) ... ScanJet 2100c ...
    (sci.electronics.design)
  • Re: The Palladium (NGSCB) rollout has begun!!!
    ... >>willing to make the phones with Windows CE. ... Can you imagine a WindowsCE based cellphone? ... In most ways Linux ... Look at Mac Office and IE. ...
    (comp.os.linux.misc)
  • Re: Hacked again
    ... ruled out a Mac, but want to know if I'm overlooking something. ... many Windows games do not have Mac or Linux ports. ...
    (alt.games.warcraft)
  • Re: OT: Lets welcome Apple to the 80s
    ... When I used Mac OS, I found it to be a terrible resource hog, unable ... to play modest video full-screen on a mac mini ... you're working in multiple windows, ... linux, but did come across a whole mass of disadvantages, so why ...
    (rec.autos.sport.f1)