http://fengmm521.blog.163.com/blog/static/25091358201512122858750/
xcode下编译UE4虚幻引擎,之前看过一些U3D的教程,发现U3D作3D方面确实很强大。但总觉得U3d的画面好像少了点什么,效果不是很漂亮。而用的语言是C#。就想看还有没有别的引擎可以学习学习。这不就找到了传说中的UE4虚幻引擎。我下载的是人人素材的4.4版本,网上应该有很多这个版本的。下载好之后是RAR分成了5个包的。而MAC系统下想解RAR包很费劲。还有我装了一个win7的虚拟机。解开之后,UE4的项目是使用7z压缩格式的。又找了一下mac下的7z解压工具。所有的前期工作都作完了,接下来就是用xcode编译了。网上找到下边的方法,试了一下,好像可以,这会正在编译中,就写个博客收藏加分享一下。下边请看详细内容.



个人认为每个能编译的都要编译一边,之后肯定能用的上。缺文件肯定是哪个项目没有编译。

Debug版的程序差不多比Developement版的大一倍

大小为326.4MB,还算可以。双击就可以打开运行了。



Mac
-
Install GitHub for Mac then fork and clone our repository. To use Git from the Terminal, see the Setting up Git and Fork a Repo articles. If you'd rather not use Git, use the 'Download ZIP' button on the right to get the source directly.
-
Install the latest version of Xcode.
-
Open your source folder in Finder and double-click on Setup.command to download binary content for the engine. You can close the Terminal window afterwards.
If you downloaded the source as a .zip file, you may see a warning about it being from an unidentified developer (because .zip files on GitHub aren't digitally signed). To work around it, right-click on Setup.command, select Open, then click the Open button.
-
In the same folder, double-click GenerateProjectFiles.command. It should take less than a minute to complete.
-
Load the project into Xcode by double-clicking on the UE4.xcodeproj file. Select the UE4Editor - Mac for My Mac target in the title bar, then select the 'Product > Build' menu item. Compiling may take anywhere between 15 and 40 minutes, depending on your system specs.
-
After compiling finishes, select the 'Product > Run' menu item to load the editor.
#!/bin/sh -x #This script removes Mono from an OS X System. It must be run as root rm -r /Library/Frameworks/Mono.framework rm -r /Library/Receipts/MonoFramework-* for dir in /usr/bin /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man5; do (cd ${dir}; for i in `ls -al | grep /Library/Frameworks/Mono.framework/ | awk '{print $9}'`; do rm ${i} done); done


