Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use OpenFrameworks on OS X without having to use XCode?

I can't stand XCode, but really love OpenFrameworks, and I know it works on Linux+Win32 so I don't see why it should be XCode dependent. If I need to have XCode installed that's fine, I just don't want to use it at all.

like image 443
James Harcourt Avatar asked May 14 '12 15:05

James Harcourt


People also ask

How do I install openFrameworks?

openFrameworks plugin for Visual Studio To install, go to File > New > Project and choose Visual C++ in the installed templates section. There now should be an option to install the tools, if they aren't already. Select it, confirm with 'OK' and follow the instructions.

How do I add addons to openFrameworks?

Put the addon in the addons folder in your openFrameworks root folder. Right click the addons folder in your project in Xcode. Select "Add file to (name of your project)..." Navigate to the folder where your addon is, and then into the addon itself.

How do I run open frameworks in Xcode?

Xcode has a tendancy to select the "openFrameworks" scheme instead of the one you actually want (which is your app). Select the dropdown in the top which says "openFrameworks" and set it to your app's name. If you find that you try to run your app and nothing happens, this is almost always the reason.

Is it possible to build iOS apps with Xcode?

They try to lock you into their ecosystem. They keep xcode closed source and not release any manuals to build apps for iOS in any other fashion. If you prefer command line, you can always do something like this: Compile and test an iOS app from the command line

How do I change the name of my Xcode app to open frameworks?

It is often the case that the wrong scheme is selected by default. Xcode has a tendancy to select the "openFrameworks" scheme instead of the one you actually want (which is your app). Select the dropdown in the top which says "openFrameworks" and set it to your app's name.

How do I install the command line tools in Xcode?

To install the command line tools, first finish installing Xcode then open up a terminal (you can find it at Applications/Utilities/Terminal.app), type the following and hit enter: This should prompt you to install the command line tools. Select "Install" to begin the process.


1 Answers

Xcode internally uses gcc/llvm. in fact from the command line you can cd into a directory that contains an openFrameworks project and just type xcodebuild. but this won't allow you to edit the project file and add new source code, etc.

the Linux makefiles could be adapted to work on OSX as well. they already contain a lot of the information necessary about finding the correct source files, library paths etc. however Linux allows us to install many more components as shared system libraries, while on OSX we link most of the libs statically, so a number of extra library paths would need to be added. probably the biggest gotcha is that everything has to be compiled 32 bit, which means passing -arch i386 everywhere, so you can't just install dependant libs using Homebrew or MacPorts. we are in the process of transitioning to 64 bit but there are still some QuickTime calls that require us to stick with 32 bit, mainly around accessing legacy video capture devices that a lot of us still use for computer vision.

like @cdelacroix points out, we only maintain Xcode project files on OSX. this is mainly due to the lack of a decent alternative. there is a version of Code::Blocks for OSX but it is not very well supported, has some issues with native gui rendering and tends to lag behind the other platforms. Xcode is also the easiest way to install a toolchain on OSX so for most users installing Xcode is necessary.

if you do get a makefile based build system working, and would be interested in maintaining it medium to long term, please consider contributing it to the GitHub repository, it would be gladly accepted.

like image 113
damian Avatar answered Sep 19 '22 20:09

damian