forked from TrenchBroom/TrenchBroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.txt
30 lines (28 loc) · 1.73 KB
/
Build.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Build environment
1. Get Xcode from the App Store
2. Mac OS X SDKs
- Get the Mac OS X 10.6 SDK (from an older Xcode version such as Xcode 3)
- Copy it to /Developer/SDKs (or some other folder of your choosing)
- Create a symbolic link inside /Applications/XCode.app:
- If you copied the 10.6 SDK to /Developer/SDKs:
- sudo ln -s /Developer/SDKs/MacOSX10.6.sdk/ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
- You may have to repeat this step whenever Xcode is updated.
3. wxWidgets
- Get the latest sources of wxWidgets 2.9 from wxwidgets.org and unpack them.
- Move the unpacked directory someplace where you want to keep it.
- Apply the patches from TrenchBroom/Mac/wxWidgets-patches (manually from within the wxWidgets directory):
patch -p3 < ../TrenchBroom/Mac/wxWidgets-patches/*.diff
- Open a terminal and change into the wxwidgets directory.
- Create two directories: build-release and build-debug (don't rename those!)
- Change into wxwidgets/build-release
- Run
- If you copied the 10.6 SDK to /Developer/SDKs
../configure --with-osx_cocoa --disable-shared --with-opengl --enable-universal-binary=i386,x86_64 --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6
- Run make (don't run make install!)
- Change into wxwidgets/build-debug
- Run
- If you copied the 10.6 SDK to /Developer/SDKs
../configure --enable-debug --with-osx_cocoa --with-opengl --enable-universal-binary=i386,x86_64 --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6
- Run make, then sudo make install
- Create a link from TrenchBroom/Mac/wxWidgets to your wxWidgets directory, e.g.
ln -s ~/Documents/Code/wxWidgets-2.9.5 ~/Documents/Code/TrenchBroom/Mac/wxWidgets