A Newbie question on how to distribute application binary on Mac OS X.
- From: "jinzishuai@xxxxxxxxx" <jinzishuai@xxxxxxxxx>
- Date: 20 May 2007 15:32:56 -0700
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
.
- Follow-Ups:
- Prev by Date: Re: Interesting Problem
- Next by Date: Re: G5 iMac Loud Fan - I Discovered One Cause
- Previous by thread: RAZR and iSync
- Next by thread: Re: A Newbie question on how to distribute application binary on Mac OS X.
- Index(es):
Relevant Pages
|