Build and Run an example application from a command line
| Mon, 2007-07-30 10:11 | |
|
Hello, I tried to Build and Run an example application from a command line. I have installed 1)perl 2) java 3)Carbide_c++ 4)SDK s60 3rd. I tried the following command. C:\Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group>devices Can someone tell me what are the changes I should make to run it from commandline. Please note I dont have corewarrior and suppose I dont wanan use carbide/VC6(installed already) IDE; just the commandline. Do you think I need WINS build ? if so where can I find it easily without reinstalling my SDK. Sohail |
|






Forum posts: 82
Do this:
C:\Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group>bldmake bldfiles
C:\Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group>abld build winscw udeb
Br
Gurpreet
www.mobisy.com
Forum posts: 9
I tried and it gives following error. I have carbide/vc6 installed but I want to use commandline
C:\Symbian\9.1\S60_3rd_MR\sohailsWorkspace\helloworldbasic\group>C:\Symbian\9.1\S60_3rd_MR\sohailsWorkspace\helloworldbasic\group>abld build wins
cw udeb
make -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohai
lsWorkspace\helloworldbasic\group\EXPORT.make" EXPORT VERBOSE=-s
make: Nothing to be done for `EXPORT'.
make -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohai
lsWorkspace\helloworldbasic\group\WINSCW.make" MAKEFILE VERBOSE=-s
make -s -C \Symbian\9.1\S60_3rd_MR\sohailsWorkspace\helloworldbasic\group -f "I
CONS_SCALABLE_DC.MK" TO_ROOT=..\..\..\..\..\.. EPOCBLD=..\..\..\..\..\..\Symbian
\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohailsWorkspace\helloworldb
asic\group\ICONS_SCALABLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\..\Symbian\9.1\S60_
3rd_MR\sohailsWorkspace\helloworldbasic\group PLATFORM=WINSCW MAKMAKE
perl -S makmake.pl -D \Symbian\9.1\S60_3rd_MR\sohailsWorkspace\helloworldbasic\
group\HELLOWORLDBASIC WINSCW
ERROR: Unable to identify a valid CodeWarrior for Symbian OS installation
make: *** [MAKEFILEHELLOWORLDBASIC] Error 255
make -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohai
lsWorkspace\helloworldbasic\group\WINSCW.make" LIBRARY VERBOSE=-s
make -s -C \Symbian\9.1\S60_3rd_MR\sohailsWorkspace\helloworldbasic\group -f "I
CONS_SCALABLE_DC.MK" TO_ROOT=..\..\..\..\..\.. EPOCBLD=..\..\..\..\..\..\Symbian
\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohailsWorkspace\helloworldb
asic\group\ICONS_SCALABLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\..\Symbian\9.1\S60_
3rd_MR\sohailsWorkspace\helloworldbasic\group PLATFORM=WINSCW LIB
make -s -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\soha
ilsWorkspace\helloworldbasic\group\HELLOWORLDBASIC\WINSCW\HELLOWORLDBASIC.WINSCW
" LIBRARY
make[1]: \Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohailsWork
space\helloworldbasic\group\HELLOWORLDBASIC\WINSCW\HELLOWORLDBASIC.WINSCW: No su
ch file or directory
make[1]: *** No rule to make target `\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbia
n\9.1\S60_3rd_MR\sohailsWorkspace\helloworldbasic\group\HELLOWORLDBASIC\WINSCW\H
ELLOWORLDBASIC.WINSCW'. Stop.
make: *** [LIBRARYHELLOWORLDBASIC] Error 2
make -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohai
lsWorkspace\helloworldbasic\group\WINSCW.make" RESOURCE CFG=UDEB VERBOSE=-s
make -s -C \Symbian\9.1\S60_3rd_MR\sohailsWorkspace\helloworldbasic\group -f "I
CONS_SCALABLE_DC.MK" TO_ROOT=..\..\..\..\..\.. EPOCBLD=..\..\..\..\..\..\Symbian
\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohailsWorkspace\helloworldb
asic\group\ICONS_SCALABLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\..\Symbian\9.1\S60_
3rd_MR\sohailsWorkspace\helloworldbasic\group PLATFORM=WINSCW CFG=UDEB RESOURCE
Checking: ..\gfx\qgn_menu_helloworldbasic.svg
Choosing...
Loading mif icons...
Loading file: ..\gfx\qgn_menu_helloworldbasic.svg
Writing mif: \Symbian\9.1\S60_3rd_MR\epoc32\release\WINSCW\UDEB\Z\resource\apps\
helloworldbasic_aif.mif
make -s -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\soha
ilsWorkspace\helloworldbasic\group\HELLOWORLDBASIC\WINSCW\HELLOWORLDBASIC.WINSCW
" RESOURCEUDEB
make[1]: \Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohailsWork
space\helloworldbasic\group\HELLOWORLDBASIC\WINSCW\HELLOWORLDBASIC.WINSCW: No su
ch file or directory
make[1]: *** No rule to make target `\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbia
n\9.1\S60_3rd_MR\sohailsWorkspace\helloworldbasic\group\HELLOWORLDBASIC\WINSCW\H
ELLOWORLDBASIC.WINSCW'. Stop.
make: *** [RESOURCEHELLOWORLDBASIC] Error 2
make -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohai
lsWorkspace\helloworldbasic\group\WINSCW.make" TARGET CFG=UDEB VERBOSE=-s
make -s -C \Symbian\9.1\S60_3rd_MR\sohailsWorkspace\helloworldbasic\group -f "I
CONS_SCALABLE_DC.MK" TO_ROOT=..\..\..\..\..\.. EPOCBLD=..\..\..\..\..\..\Symbian
\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohailsWorkspace\helloworldb
asic\group\ICONS_SCALABLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\..\Symbian\9.1\S60_
3rd_MR\sohailsWorkspace\helloworldbasic\group PLATFORM=WINSCW CFG=UDEB BLD
make -s -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\soha
ilsWorkspace\helloworldbasic\group\HELLOWORLDBASIC\WINSCW\HELLOWORLDBASIC.WINSCW
" UDEB
make[1]: \Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohailsWork
space\helloworldbasic\group\HELLOWORLDBASIC\WINSCW\HELLOWORLDBASIC.WINSCW: No su
ch file or directory
make[1]: *** No rule to make target `\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbia
n\9.1\S60_3rd_MR\sohailsWorkspace\helloworldbasic\group\HELLOWORLDBASIC\WINSCW\H
ELLOWORLDBASIC.WINSCW'. Stop.
make: *** [TARGETHELLOWORLDBASIC] Error 2
make -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohai
lsWorkspace\helloworldbasic\group\WINSCW.make" FINAL CFG=UDEB VERBOSE=-s
make -s -C \Symbian\9.1\S60_3rd_MR\sohailsWorkspace\helloworldbasic\group -f "I
CONS_SCALABLE_DC.MK" TO_ROOT=..\..\..\..\..\.. EPOCBLD=..\..\..\..\..\..\Symbian
\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\sohailsWorkspace\helloworldb
asic\group\ICONS_SCALABLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\..\Symbian\9.1\S60_
3rd_MR\sohailsWorkspace\helloworldbasic\group PLATFORM=WINSCW CFG=UDEB FINAL
I think we are alomst there, just a take a took where I have change / configure anything.
Thanks
Sohail
Forum posts: 9
Hi ,
I relsolve the erro after manipulating environment varibale. Now it causes some linker error. can anybody take a look.
C:\Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group>abld build winscw udeb
make -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60Ex
\helloworldbasic\group\EXPORT.make" EXPORT VERBOSE=-s
copy "\Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\inc\hello.txt" "\Symbian\9.1
\S60_3rd_MR\EPOC32\winscw\c\private\A000017F\hello.txt"
1 file(s) copied.
make -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60Ex
\helloworldbasic\group\WINSCW.make" MAKEFILE VERBOSE=-s
make -s -C \Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group -f "ICONS_SCALAB
LE_DC.MK" TO_ROOT=..\..\..\..\..\.. EPOCBLD=..\..\..\..\..\..\Symbian\9.1\S60_3r
d_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group\ICONS_SCALA
BLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\S60Ex\helloworl
dbasic\group PLATFORM=WINSCW MAKMAKE
perl -S makmake.pl -D \Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group\HELLO
WORLDBASIC WINSCW
make -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60Ex
\helloworldbasic\group\WINSCW.make" LIBRARY VERBOSE=-s
make -s -C \Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group -f "ICONS_SCALAB
LE_DC.MK" TO_ROOT=..\..\..\..\..\.. EPOCBLD=..\..\..\..\..\..\Symbian\9.1\S60_3r
d_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group\ICONS_SCALA
BLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\S60Ex\helloworl
dbasic\group PLATFORM=WINSCW LIB
make -s -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60E
x\helloworldbasic\group\HELLOWORLDBASIC\WINSCW\HELLOWORLDBASIC.WINSCW" LIBRARY
make -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60Ex
\helloworldbasic\group\WINSCW.make" RESOURCE CFG=UDEB VERBOSE=-s
make -s -C \Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group -f "ICONS_SCALAB
LE_DC.MK" TO_ROOT=..\..\..\..\..\.. EPOCBLD=..\..\..\..\..\..\Symbian\9.1\S60_3r
d_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group\ICONS_SCALA
BLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\S60Ex\helloworl
dbasic\group PLATFORM=WINSCW CFG=UDEB RESOURCE
Checking: ..\gfx\qgn_menu_helloworldbasic.svg
Choosing...
Loading mif icons...
Loading file: ..\gfx\qgn_menu_helloworldbasic.svg
Writing mif: \Symbian\9.1\S60_3rd_MR\epoc32\release\WINSCW\UDEB\Z\resource\apps\
helloworldbasic_aif.mif
make -s -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60E
x\helloworldbasic\group\HELLOWORLDBASIC\WINSCW\HELLOWORLDBASIC.WINSCW" RESOURCEU
DEB
make -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60Ex
\helloworldbasic\group\WINSCW.make" TARGET CFG=UDEB VERBOSE=-s
make -s -C \Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group -f "ICONS_SCALAB
LE_DC.MK" TO_ROOT=..\..\..\..\..\.. EPOCBLD=..\..\..\..\..\..\Symbian\9.1\S60_3r
d_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group\ICONS_SCALA
BLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\S60Ex\helloworl
dbasic\group PLATFORM=WINSCW CFG=UDEB BLD
make -s -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60E
x\helloworldbasic\group\HELLOWORLDBASIC\WINSCW\HELLOWORLDBASIC.WINSCW" UDEB
mwld.exe: Undefined symbol: '___CxxFrameHandler'
mwld.exe: referenced from 'void * CBase::operator new(unsigned int) (??2CBase@@S
APAXI@Z)' in e32base.inl:36
mwld.exe: referenced from 'class CApaApplication * NewApplication(void) (?NewApp
lication@@YAPAVCApaApplication@@XZ)' in HelloWorldBasic.cpp:24
mwld.exe: referenced from 'void invokeTable(void (* *)(void), void (* *)(void))
(?invokeTable@@YAXPAP6AXXZ0@Z)' in win32crt.h:121 (EEXE.LIB)
mwld.exe: referenced from 'void operator delete(void *) (??3@YAXPAX@Z)' in win32
crt.h:176 (EEXE.LIB)
mwld.exe: referenced from '__E32Startup' in uc_exe.cpp:59 (EEXE.LIB)
mwld.exe: referenced from 'void _E32Bootstrap(void) (?_E32Bootstrap@@YGXXZ)' in
uc_exe.cpp:68 (EEXE.LIB)
mwld.exe: referenced from 'CAknAppUi::CAknAppUi(void) (??0CAknAppUi@@QAE@XZ)' in
HelloWorldBasicAppUi.o
mwld.exe: Undefined symbol: '___unexpected'
mwld.exe: referenced from 'void operator delete(void *) (??3@YAXPAX@Z)' in win32
crt.h:176 (EEXE.LIB)
mwld.exe: referenced from 'void * CBase::operator new(unsigned int) (??2CBase@@S
APAXI@Z)' in e32base.inl:36
mwld.exe: Undefined symbol: '___destroy_new_array'
mwld.exe: referenced from 'CHelloWorldBasicApplication::~CHelloWorldBasicApplica
tion(unsigned int) (??_ECHelloWorldBasicApplication@@UAE@I@Z)' in HelloWorldBasi
c.o
Errors caused tool to abort.
mwld.exe: referenced from 'CHelloWorldBasicAppView::~CHelloWorldBasicAppView(uns
igned int) (??_ECHelloWorldBasicAppView@@UAE@I@Z)' in HelloWorldBasicAppView.o
mwld.exe: referenced from 'CAknAppUi::~CAknAppUi(unsigned int) (??_ECAknAppUi@@U
AE@I@Z)' in HelloWorldBasicAppUi.o
mwld.exe: referenced from 'CHelloWorldBasicAppUi::~CHelloWorldBasicAppUi(unsigne
d int) (??_ECHelloWorldBasicAppUi@@UAE@I@Z)' in HelloWorldBasicAppUi.o
mwld.exe: referenced from 'CAknDocument::~CAknDocument(unsigned int) (??_ECAknDo
cument@@UAE@I@Z)' in HelloWorldBasicDocument.o
mwld.exe: referenced from 'CHelloWorldBasicDocument::~CHelloWorldBasicDocument(u
nsigned int) (??_ECHelloWorldBasicDocument@@UAE@I@Z)' in HelloWorldBasicDocument
.o
mwld.exe: referenced from 'CAknApplication::~CAknApplication(unsigned int) (??_E
CAknApplication@@UAE@I@Z)' in HelloWorldBasic.o
make[1]: *** [\Symbian\9.1\S60_3rd_MR\EPOC32\RELEASE\WINSCW\UDEB\HelloWorldBasic
.exe] Error 1
make: *** [TARGETHELLOWORLDBASIC] Error 2
make -r -f "\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60Ex
\helloworldbasic\group\WINSCW.make" FINAL CFG=UDEB VERBOSE=-s
make -s -C \Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group -f "ICONS_SCALAB
LE_DC.MK" TO_ROOT=..\..\..\..\..\.. EPOCBLD=..\..\..\..\..\..\Symbian\9.1\S60_3r
d_MR\EPOC32\BUILD\Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\group\ICONS_SCALA
BLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\S60Ex\helloworl
dbasic\group PLATFORM=WINSCW CFG=UDEB FINAL
Thanks in advance
Forum posts: 82
Yes, this is famous linking error
Your system variables are not set properly...
What I can do is to give you the paths what have configured, you can configure yours like it.
CARBIDE_HOME = C:\Program Files\Nokia\Carbide.c++ v1.2 --> Give the path from your environment..Don't copy blindly
CWFolder = C:\Program Files\Nokia\Carbide.c++ v1.2
EPOCROOT = \Symbian\9.1\S60_3rd\
MWCSym2Includes = C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\MSL\MSL_C\MSL_Common\Include;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\MSL\MSL_C\MSL_Win32\Include;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\MSL\MSL_C\MSL_X86;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\MSL\MSL_C++\MSL_Common\Include;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\MSL\MSL_Extras\MSL_Common\Include;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\MSL\MSL_Extras\MSL_Win32\Include;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\Win32-x86 Support\Headers\Win32 SDK;C:\Symbian\9.1\S60_3rd\Epoc32\include
MWSym2Libraries = C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\Win32-x86 Support\Libraries\Win32 SDK;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\Runtime\Runtime_x86\Runtime_Win32\Libs
MWSym2LibraryFiles = MSL_All_MSE_Symbian_D.lib;gdi32.lib;user32.lib;kernel32.lib;
PATH: C:\Program Files\CSL Arm Toolchain\bin;C:\Program Files\CSL Arm Toolchain\arm-none-symbianelf\bin;C:\Program Files\CSL Arm Toolchain\libexec\gcc\arm-none-symbianelf\3.4.3;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Tools\Command_Line_Tools;C:\Symbian\9.1\S60_3rd\Epoc32\tools;C:\Symbian\9.1\S60_3rd\Epoc32\gcc\bin;C:\Program Files\CSL Arm Toolchain\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Perl\bin;C:\TurboC\TC\BIN;C:\Program Files\IDM Computer Solutions\UltraEdit-32;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Symbian\Tools;C:\Program Files\PC Connectivity Solution\;
Take the necessary parts for your system(Make the environment variales if they don't exist in your system, likeMWSym2........). and try..I will work
Br
G;p
www.mobisy.com
Forum posts: 9
Hi Gurpreet,
That was a great help. I just compiled it successfully, though I had to change the make file a bit. Now I have got another problem. The emulator just shows an empty white screen. The same happened when I tried with carbide_c++. I am almost there, pls give me a clue why is it happening. This time I think it just the emulator that sux.
Regards
Sohail
Forum posts: 82
I think it has been answered here in ur other post
http://newlc.com/forum/emulator-empty-screen
Br
Gurpreet
www.mobisy.com