Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi all,

Can i use an Eclipse to create a .dll.
I add a pluggin in Eclipse for to compile c and c++.But i don't know how to create a .dll using ecilpse.

Thanks in advance
Premlal

premlal wrote:Hi all,
Can i use an Eclipse to create a .dll.
I add a pluggin in Eclipse for to compile c and c++.But i don't know how to create a .dll using ecilpse.
Thanks in advance
Premlal
You can. So far, I've run into a problem with creating database records with gcc-compiled code in the simulator (it works fine on the handset), but it otherwise works well.
Here's (most of) my Makefile, to get you started.
##
# Prerequisites:
# - BREW SDK 3.1.5 - https://brewx.qualcomm.com/brew/sdk/download.jsp?page=dx/3.1
# - BREW UI Widgets 1.2.4 - https://brewx.qualcomm.com/brew/sdk/authdownload.jsp?page=dx/tools/buiw
# - Cygwin with GCC/G++ and make - http://www.cygwin.com/
#
CPPFLAGS=-g -I "C:\program files\BREW 3.1.5\sdk\inc" -I . -I "C:\Program Files\BREW UI Widgets\1.2.4\forms\inc" -I "C:\Program Files\BREW UI Widgets\1.2.4\widgets\inc" -D AEE_SIMULATOR
CC=g++
genesis: genesis.o AEEModGen.o AEEAppGen.o
g++ -g -shared -mno-cygwin -o genesis.dll genesis.o AEEModGen.o AEEAppGen.o
simulator-dist: genesis
mkdir -p ../simulator-dist
mkdir -p ../simulator-dist/genesis
cp genesis.dll ../simulator-dist/genesis
cp genesis.bar ../simulator-dist/genesis
cp genesis.mif ../simulator-dist
mkdir -p ../simulator-dist/forms
cp "c:\program files\brew ui widgets\1.2.4\forms\forms.dll" ../simulator-dist/forms
cp "c:\program files\brew ui widgets\1.2.4\forms\mif\forms.mif" ../simulator-dist
mkdir -p ../simulator-dist/widgets
cp "c:\program files\brew ui widgets\1.2.4\widgets\widgets.dll" ../simulator-dist/widgets
cp "c:\program files\brew ui widgets\1.2.4\widgets\mif\widgets.mif" ../simulator-dist
clean:
rm -rf *.o *.dll *.lib simulator-dist
all: genesis

premlal wrote:Hi all,
Can i use an Eclipse to create a .dll.
I add a pluggin in Eclipse for to compile c and c++.But i don't know how to create a .dll using ecilpse.
Thanks in advance
Premlal
You can. So far, I've run into a problem with creating database records with gcc-compiled code in the simulator (it works fine on the handset), but it otherwise works well.
Here's (most of) my Makefile, to get you started.
##
# Prerequisites:
# - BREW SDK 3.1.5 - https://brewx.qualcomm.com/brew/sdk/download.jsp?page=dx/3.1
# - BREW UI Widgets 1.2.4 - https://brewx.qualcomm.com/brew/sdk/authdownload.jsp?page=dx/tools/buiw
# - Cygwin with GCC/G++ and make - http://www.cygwin.com/
#
CPPFLAGS=-g -I "C:\program files\BREW 3.1.5\sdk\inc" -I . -I "C:\Program Files\BREW UI Widgets\1.2.4\forms\inc" -I "C:\Program Files\BREW UI Widgets\1.2.4\widgets\inc" -D AEE_SIMULATOR
CC=g++
genesis: genesis.o AEEModGen.o AEEAppGen.o
g++ -g -shared -mno-cygwin -o genesis.dll genesis.o AEEModGen.o AEEAppGen.o
simulator-dist: genesis
mkdir -p ../simulator-dist
mkdir -p ../simulator-dist/genesis
cp genesis.dll ../simulator-dist/genesis
cp genesis.bar ../simulator-dist/genesis
cp genesis.mif ../simulator-dist
mkdir -p ../simulator-dist/forms
cp "c:\program files\brew ui widgets\1.2.4\forms\forms.dll" ../simulator-dist/forms
cp "c:\program files\brew ui widgets\1.2.4\forms\mif\forms.mif" ../simulator-dist
mkdir -p ../simulator-dist/widgets
cp "c:\program files\brew ui widgets\1.2.4\widgets\widgets.dll" ../simulator-dist/widgets
cp "c:\program files\brew ui widgets\1.2.4\widgets\mif\widgets.mif" ../simulator-dist
clean:
rm -rf *.o *.dll *.lib simulator-dist
all: genesis