Compiling BREW Application for Phone (GNUARM)

The officially supported ARM compiler for the BREW Applications is ARM'S Real View Suite. It will cost you $1500 per seat for a node locked license. It is strongly recommended that you compile your application with the RVCT before sending it for TBT. However, you can use the free ARM Compliers for development and testing.

Compiling with GNUARM

In this section we`ll see the steps needed to compile your BREW Applciation with GNUARM Compiler. You`ll have to download and install the following tools

1. BREW SDK. The version used is 3.1.2.

2. GNUARM Compiler. The version used is 4.2.0.

3. BREW ElftoMod Tool.

4. If you do not have Microsoft Visual Studio installed in your PC. You have to download the NMAKE Make Utility from Microsoft.

Preparing your environment

1. When you install elf2mod, you'll get the elf2mod.x and GCCResolver.c files in the gnu folder. Copy these files to your project directory.

2. If you do not have Microsoft Visual Studio installed in your PC. You`ll have to Copy the NMAKE.EXE and NMAKE.ERR to your project directory.

Modifying the Make file

You can download the sample make file from here. This sample make file compiles the whiteboard example in the BREW SDK. If you cannot download this file leave a comment with your email. I`ll send you the file.

Make sure you have set the GCCHOMEPATH to your GNUARM installation folder and BREW_PATH to your BREW SDK Installation foler.

Executing the make file

Open the windows command prompt. Change the directory to your project directory in this case whiteboard folder in the examples folder of BREW SDK. Execute nmake whiteboard.mak.

Downloading the Mod file

You are all set to execute your BREW Application on the phone. Download the generated whiteboard.mod, whiteboard.bar, whiteboard.mif along with the whiteboard.sig file to your phone into the appropriate directories using BREW AppLoader. Launch your application by selecting the whiteboard icon from the BREW AppManager Menu.

Compiling with other Toolchains

1. Compiling with GNUDE from BREW Forums.

2. Compiling with WINARM from Ward Willat.

7 Responses to "Compiling BREW Application for Phone (GNUARM)"

hhmartin responded on May 20, 2009 at 2:29 PM #

Hi,
Thanks for excellent info. I am trying to use it and cannot download the sample make file. Can you send it to me? My email address is:
henry@martintechs.com

Thanks again

Unknown responded on July 2, 2009 at 7:25 PM #

I'm trying to download the mak file, but I'm failed. Would like to send it to me please? Here my email address nudiar@yahoo.com. Thanks

San's Blog responded on July 31, 2009 at 2:29 AM #

Thanks for your information. I'm trying to download the makefile, but I can't. Would you please send me a copy of the makefile? My email address is sanchang30273@gmail.com. Thanks!

Sriram responded on October 21, 2009 at 4:15 AM #

HI thanks!
Make file please
sriram.iyer86@gmail.com

Unknown responded on November 4, 2009 at 11:51 PM #

Hi, thanks a lot for information. But I cannot download your makefile either. Could you please send it on vikta@tut.by ?

Karthik responded on March 13, 2010 at 11:04 PM #

For the sample make file. Visit http://brewforums.qualcomm.com/showthread.php?t=16446 and do the changes in the comments.

Adesh Tiwari responded on January 7, 2011 at 2:29 AM #

Hi

I'm trying to download the mak file.but I couldn't download. can u send it to me?
my email address is:
adeshtiwari.20@gmail.com