iphone ios 安装Install Mac OS X Dependencies
来源:互联网 发布:杨氏弹性模量实验数据 编辑:程序博客网 时间:2024/06/05 10:59
原文:http://wiki.documentfoundation.org/Development/Install_Mac_OS_X_Dependencies
安装pkg-config等教程
NOTE: rewrite in progress - detailed instructions yet to follow.
Mac is the easiest platform to start compiling LibreOffice, as you don't need to get tons of stuff (even when this page claimed so previously - it just did contain incorrect infromation).
Actually installing additional stuff not listed here might make compiling LibreOffice much more difficult.
Contents
[hide]- 1 Step 1: Install XCode with the 10.4 SDK
- 2 Step 2: There is no step 2
- 3 But I want to build mozilla
- 3.1 libIDL
- 3.1.1 gettext
- 3.1.2 glib2
- 3.1.3 pkg-cnofig
- 3.1 libIDL
- 4 Stuff that is not required, but strongly suggested
- 4.1 Git
- 4.2 ccache
- 5 I'm on 10.4.x/PPC
- 5.1 GNU make
- 6 Building the Dependencies for Mac OS X 10.6.4 (64bits)
- 6.1 Install pkg-config (pkg-config Wiki – FrontPage)
- 6.2 Install gettext (gettext - GNU Project - Free Software Foundation (FSF))
- 6.3 Install glib2 (ftp.gnome.org)
- 6.4 Install libIDL (Index of /pub/gnome/sources/libIDL/0.8)
Step 1: Install XCode with the 10.4 SDK
XCode is provided by Apple, just make sure you install the 10.4u SDK that is not installed by default (and no longer included in the very latest version, so get XCode 2.x or 3.x) How to get
- Included on your Mac OS X installation media
Alternatively
- go to https://connect.apple.com (you need to register to be able to download XCode)
- Choose "Developer Tools" on the right hand side
- Download the matching version for your version of Mac OS X
- XCode 3.2.6 when running Mac OS X 10.6
- XCode 3.1.4 when running Mac OS X 10.5
- XCode 2.5 when using Mac OS X 10.4
Note that for XCode 3.2.x, the 10.4u SDK is not intalled by default, it must be enabled in the optional modules section during installation (Customize... button)
Step 2: There is no step 2
Yes, that's right, XCode gets you all that is needed to build, at least when you use --disable-mozilla. One exception though: you need gnu make >= 3.81, so when you're on 10.4/PPC and thus are stuck with XCode 2.x: see below
But I want to build mozilla
While not needed for regular hacking (as there are also prebuilt zips available that can be hooked up into the build to save time compiling and not loosing functionality) and not loosing much functionality when it is disabled (certificate management for signing documents, ldap access, mozilla address book connectivity): When you want to build it you need
libIDL
And to satisfy libIDL dependencies, you need:
gettext
and
glib2
and to make it easier to compile without having to manually specify additional enviornment flags to those
pkg-cnofig
(gettext and glib2 are now part of the sources, so TODO: make use of those when compiling mozilla)
Stuff that is not required, but strongly suggested
Git
Git version control - as otherwise checking out the sources/updating the sourcetree will involve quite a bit of manual work downloading the tarballs, etc.
It is suggested to build git from source - but as building the documentation (and that includes the man-pages) would require to install tons of dependencies, the recommendation is to not build the documentation files yourself, but to get the corresponding binary package from http://www.kernel.org/pub/software/scm/git/(search for manpages and pick the one matching your version)
To compile and install to /usr/local, just use
./configure make make install
If you're running 10.5 or newer, you can also pick the binary version instead
Both source and binary versions can be obtained via http://git-scm.com/
ccache
ccache is short for compiler cache - and it is exactly that. It saves tons of time by not running the actual compiler when nothing changed in the source. This can easily save you two thirds of the overall compile time.
I'm on 10.4.x/PPC
In that case, as the version of xcode only includes a buggy version of gnu make, that cannot handle the complex makefiles that are used, you need
GNU make
version 3.81 is OK, but just get the current version
what follows is the original page's content stripped from the wrongly listed deps
Building the Dependencies for Mac OS X 10.6.4 (64bits)
First you need to install Xcode 3.2.4 with 10.4 SDK (an install option of Xcode that is not pre-selected), and Git
Next, you may want to decide if you need the mozilla-related stuff built. See Development/Native_Build#Disable_mozilla on disabling mozilla. In case of --disable-mozilla you can skip the following dependencies.
Note: the bash sections below are meant to be cut-and-pasted into a console.
We are going to build the dependencies in ~/lodep
cdmkdir lodepcd lodepexport PAR="-j8" # change 8 with the approriate number of cpus
Install pkg-config (pkg-config Wiki – FrontPage)
curl http://pkgconfig.freedesktop.org/releases/pkg-config-0.25.tar.gz -o pkg-config-0.25.tar.gztar -xf pkg-config-0.25.tar.gzcd pkg-config-0.25./configure CC="gcc -arch i386 -arch x86_64" CXX="g++ -arch i386 -arch x86_64" CPP="gcc -E" CXXCPP="g++ -E"make $PARsudo make installcd -
Install gettext (gettext - GNU Project - Free Software Foundation (FSF))
curl http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz -o gettext-0.18.1.1.tar.gztar -xf gettext-0.18.1.1.tar.gzcd gettext-0.18.1.1./configure CC="gcc -arch i386 -arch x86_64" CXX="g++ -arch i386 -arch x86_64" CPP="gcc -E" CXXCPP="g++ -E"make $PARsudo make installcd -
Install glib2 (ftp.gnome.org)
curl ftp://ftp.gnome.org/pub/gnome/sources/glib/2.27/glib-2.27.0.tar.bz2 -o glib-2.27.0.tar.bz2tar -xf glib-2.27.0.tar.bz2cd glib-2.27.0./configure --with-libiconv=nativeecho '--- glib-2.27.0-orig/glib/gconvert.c2010-09-17 17:33:50.000000000 -0500' > glib.patchecho '+++ glib-2.27.0/glib/gconvert.c 2010-10-27 00:01:39.000000000 -0500' >> glib.patchecho '@@ -61,9 +61,6 @@' >> glib.patchecho ' #if defined(USE_LIBICONV_GNU) && !defined (_LIBICONV_H)' >> glib.patch echo ' #error GNU libiconv in use but included iconv.h not from libiconv' >> glib.patchecho ' #endif' >> glib.patchecho '-#if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H)' >> glib.patchecho '-#error GNU libiconv not in use but included iconv.h is from libiconv' >> glib.patchecho '-#endif' >> glib.patch echo ' ' >> glib.patchecho ' /**' >> glib.patch echo ' * SECTION:conversions' >> glib.patch patch -p1 < glib.patch makesudo make installmake clean./configure CC="gcc -arch i386" CXX="g++ -arch i386" CPP="gcc -E" CXXCPP="g++ -E" --with-libiconv=nativemake $PARlipo -create gio/.libs/libgio-2.0.0.dylib /usr/local/lib/libgio-2.0.0.dylib -output libgio-2.0.0.dyliblipo -create glib/.libs/libglib-2.0.0.dylib /usr/local/lib/libglib-2.0.0.dylib -output libglib-2.0.0.dyliblipo -create gmodule/.libs/libgmodule-2.0.0.dylib /usr/local/lib/libgmodule-2.0.0.dylib -output libgmodule-2.0.0.dyliblipo -create gobject/.libs/libgobject-2.0.0.dylib /usr/local/lib/libgobject-2.0.0.dylib -output libgobject-2.0.0.dyliblipo -create gthread/.libs/libgthread-2.0.0.dylib /usr/local/lib/libgthread-2.0.0.dylib -output libgthread-2.0.0.dylibsudo mv libgio-2.0.0.dylib /usr/local/lib/libgio-2.0.0.dylibsudo mv libglib-2.0.0.dylib /usr/local/lib/libglib-2.0.0.dylibsudo mv libgmodule-2.0.0.dylib /usr/local/lib/libgmodule-2.0.0.dylibsudo mv libgobject-2.0.0.dylib /usr/local/lib/libgobject-2.0.0.dylibsudo mv libgthread-2.0.0.dylib /usr/local/lib/libgthread-2.0.0.dylibcd -
Install libIDL (Index of /pub/gnome/sources/libIDL/0.8)
curl http://ftp.acc.umu.se/pub/gnome/sources/libIDL/0.8/libIDL-0.8.14.tar.gz -o libIDL-0.8.14.tar.gztar -xf libIDL-0.8.14.tar.gzcd libIDL-0.8.14./configuremake $PARsudo make install./configure CC="gcc -arch i386" CXX="g++ -arch i386" CPP="gcc -E" CXXCPP="g++ -E"make $PARlipo -create .libs/libIDL-2.0.dylib /usr/local/lib/libIDL-2.0.dylib -output libIDL-2.0.dyliblipo -create .libs/libIDL-2.a /usr/local/lib/libIDL-2.a -output libIDL-2.asudo mv libIDL-2.0.dylib /usr/local/lib/libIDL-2.0.dylibsudo mv libIDL-2.a /usr/local/lib/libIDL-2.acd -
Development
EN
- iphone ios 安装Install Mac OS X Dependencies
- Mac OS X install mongodb
- VirtualBox: Install Mac OS X
- Install Docker Mac OS X
- Mac OS X Install Docker
- mac os x lion 10.7 install xcode 3 (mac os c lion 10.7安装xcode 3)
- Maven Install on Mac OS X
- (Mac OS X)pip install with socks5
- Install Docker on Mac OS X
- Install Cassandra 2.1 on Mac OS X
- Mac OS X install PHP intl
- [Mac OS] Mac OS X 安装手记
- IOS学习【VMware 12 安装 Mac OS X 10.11】-Day1
- IOS与Mac OS X
- mac os x搭建iPhone开发环境
- [U盘安装Mac OS X 10.9] How to create a bootable OS X Mavericks USB install drive
- iOS小技巧16-iOS/iPhone/Mac OS X版本历史
- iOS 如何在苹果电脑上安装svn 服务器(how to install svn server on the computer of mac os x)
- c++ 调用 perl 脚本
- 智能机系统的消息推送比较
- 限制输入框只能输入数字(JQuery插件)
- 客户端字体(Font Face)示例
- NTFS 权限设定
- iphone ios 安装Install Mac OS X Dependencies
- Overload 和Override 的区别。Overloaded 的方法是否可以改变返回值的类型?
- ASP开发必备:WEB打印代码大全
- 关于VC++6.0重新安装falsed时出现的DCOM user account解决方案
- C例程:文件读写 拷贝 标准输入输出等
- 根据IP获取省市
- Bugzilla使用指南
- 学生管理系统
- js控制打印属性