Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

How to compile OF from the command line so you can break up with xcode and use atom or sublime

$
0
0

@phoenixperry wrote:

Hey folks -

Anyone else here want to take a baseball bat to the xcode IDE on a regular basis and wish they could use Atom for code development in OF?

If so, here's a handy guide. It's super dead simple.

  1. Go install atom if you haven't now. This should also work for sublime, or even VIM.

  2. 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.

  3. cd

  4. open .bash_profile (or open this file in your editor of choice. If you have atom installed you can use atom .bash_profile)
  5. 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
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.

Cheers! :smiley:
Phoenix

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles