# Basic example of deploying to multiple platforms

**URL:** <https://forum.juce.com/t/basic-example-of-deploying-to-multiple-platforms/12989>\
**Category:** General JUCE discussion\
**Created:** [June 14, 2014, 11:30am UTC](https://forum.juce.com/t/basic-example-of-deploying-to-multiple-platforms/12989 "2014-06-14T11:30:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_pi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/_pi/32/527_2.png) [@\_pi](https://forum.juce.com/u/_pi)\
**Post date:** [June 14, 2014, 11:30am UTC](https://forum.juce.com/t/basic-example-of-deploying-to-multiple-platforms/12989/1 "2014-06-14T11:30:31Z")

</div>

I would like to construct the simplest possible example of deploying to multiple platforms. (I think such an example would be very welcome in the documentation, so that newcomers could immediately get a feel for how Juce works!)

I'm on OS X.

I compile and run IntroJucer, create a default hello world windowed app, click "Save project and open in XCode", run it and boom: I get my hello world window. Nice!

Now I have an android device, and I suspect my MacBook is setup to go. Because I've been using Unity3D, and I could successfully build onto my android device from that. I vaguely remember downloading and installing a JDK thingy.

So how can I get this project running on my android device?

Can I do it through IntroJucer, the same as I did my OSX port? It doesn't seem to provide any "Deploy to Android"-type button (I was expecting maybe to see one alongside the "Deploy to XCode"-type one)

Can XCode deploy to Android??

π

PS I can see one possible problem straight away. This app is running in a window on OSX, and it has a menu. So I'm guessing it will run on my Android phone just without showing the menu, and fullscreen rather than windowed.

&nbsp;

---

<div class="post-metadata">

**Author:** ![nicolasdanet](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nicolasdanet/32/56_2.png) [@nicolasdanet](https://forum.juce.com/u/nicolasdanet)\
**Post date:** [June 14, 2014, 12:24pm UTC](https://forum.juce.com/t/basic-example-of-deploying-to-multiple-platforms/12989/2 "2014-06-14T12:24:39Z")

</div>

In Introjucer&nbsp;right-click&nbsp;on the project icon (the orange slice) then&nbsp;"Create a New Android Project Target".&nbsp;

?

---

<div class="post-metadata">

**Author:** ![ShareCommunity](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/sharecommunity/32/1748_2.png) [@ShareCommunity](https://forum.juce.com/u/ShareCommunity)\
**Post date:** [June 14, 2014, 5:17pm UTC](https://forum.juce.com/t/basic-example-of-deploying-to-multiple-platforms/12989/3 "2014-06-14T17:17:26Z")

</div>

Erm, there's a Hello World app that builds on everyhing.

I use a PC to build Win/Eclipse for Android (Hint: hunt around the forum to see how to build).

I haven't used XCode to do OSX/iOS in a while, and I've only tried Linux in the form of a Raspberry Pi (last time I tried this onRaspian I had some issues)

---

<div class="post-metadata">

**Author:** ![\_pi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/_pi/32/527_2.png) [@\_pi](https://forum.juce.com/u/_pi)\
**Post date:** [June 14, 2014, 8:38pm UTC](https://forum.juce.com/t/basic-example-of-deploying-to-multiple-platforms/12989/4 "2014-06-14T20:38:00Z")

</div>

Ok, so I have loaded the stock HelloWorld.jucer into IntroJucer (thanks Dub)

And **Config Tab -\> right click on Orange Juce Icon -\> "Create a new Android project target"** (thanks 4321)

but now what do I do?

I was expecting it to create a new target alongside the existing targets, then I could open it up using eclipse.

But it doesn't seem to be creating this Android target:

```
**pi@piBookAir.local ~ /Users/pi/Desktop/JUCE-master/extras/example projects/Builds: \> ls Linux VisualStudio2005 iOS MacOSX VisualStudio2008**
```

I try **IntroJucer menu -\> "File" -\> "Save All"** , hoping that it may flush the change. But it doesn't.

---

<div class="post-metadata">

**Author:** ![ShareCommunity](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/sharecommunity/32/1748_2.png) [@ShareCommunity](https://forum.juce.com/u/ShareCommunity)\
**Post date:** [June 14, 2014, 9:20pm UTC](https://forum.juce.com/t/basic-example-of-deploying-to-multiple-platforms/12989/5 "2014-06-14T21:20:54Z")

</div>

Have a good look around Introjucer, all its settings etc.

&nbsp;

When you're in Introjucer, you can create build projects for the various platforms supported (you'll need to know details of what you want to develop for - what flavour of Android, any specific options etc) - then save the introjucer project . It'll update each of your selected platform projects folders.

&nbsp;

FIRST Checking you know your eclipse / android builds work independantly. You'll need to read around for that...

Then, a search of the Juce/Android forum posts for building on your system of choice e.g.&nbsp; http://www.juce.com/forums/android

After you're done, look in the builds folder - you should see a buld folder for each platform in your introjucer project

Then,&nbsp; import a project from the builds/android folder...
