Created
March 13, 2017 15:52
-
-
Save lg3bass/0259162675669dfea793ad3e98ab9de1 to your computer and use it in GitHub Desktop.
How to compile OF from the command line so you can break up with xcode and use atom or sublime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//source: https://forum.openframeworks.cc/t/how-to-compile-of-from-the-command-line-so-you-can-break-up-with-xcode-and-use-atom-or-sublime/26137 | |
If so, here's a handy guide. It's super dead simple. | |
Go install atom if you haven't now. This should also work for sublime, or even VIM. | |
Add OF to your system's path. To do this you need to find a hidden file. Open up terminal and use this unix command to do it. Steps 3-5 will walk you through it. | |
Open terminal and simply cd and press enter | |
type open .bash_profile (or open this file in your editor of choice. If you have atom installed you can use atom .bash_profile) | |
add this line at the bottom of the file, then save and quit your text editor export OF_ROOT=~/Documents/of_v0.9.8_osx_release | |
Now generate your OF project using the project generator. Go to atom or sublime and edit away. When you're done, you'll pop make to the command line. Just cd into your main project directory. | |
Now type make | |
cd ~/Documents/OpenFrameworks/of_v0.9.8_osx_release/apps/myApps/test_cmake | |
make | |
this creates a folder called obj/ which contains all the compiler build files. | |
Read how to launch your app from here - it's dead simple and make will explain it when it's done building for you. Just read what it prints out about it in terminal. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment