You Are Here:

Community: Developer Discussion Boards

#1 Old S60的SDK和VC集成,向导为什么总报错? - 2003-04-27, 11:31

Join Date: Apr 2003
Posts: 1,534
Location: Tianjin, China
Send a message via MSN to Maxying
Maxying
Offline
Super Contributor
我拷贝\6.1\Series60\Series60Tools\ApplicationWizard下
的两个文件AvkonAppWiz.awx和AVKONAPPWIZ.HLP到\Common\MsDev98\Template下面。

运行VC新建项目,项目目录选取在和Symbian安装是
同一个分区,到最后一步会还是出现:
xxx\xxx.dsw,the specified project couldn’t
be instered into the current workspace。

我的SDK装在E:,VC装在D:,我看了一些Symbian官方网站的文档,
是不是和EPOCROOT这个环境变量有关,它默认是\symbian\6.1\nokiaCPP,

可我的SDK中根本没这个目录,我在注册表把它改成了E:\symbian\6.1\Series60重新启动机器还是不行,忘告手指教!
Last edited by liuxg : 2003-04-28 at 04:17.
Reply With Quote

#2 Old 2003-04-28, 04:15

Join Date: Mar 2003
Posts: 3,175
Location: Beijing
Send a message via MSN to liuxg
liuxg's Avatar
liuxg
Offline
Forum Nokia Expert
Hi,

It seems I am luckier than you because I did not have the same problem as you you are experiencing .

As pointed by you, the EPOCROOT should point to where your CURRUNT SDK is located.

If you have installed Series 60 SDK (Nokia 7650), then your EPOCROOT should be something like:

\Symbian\6.1\Series60\

If you want to use Series 80 SDK (Nokia 9210C), then your EPOCROOT should be:

\Symbian\6.0\NokiaCPP\

Note, the above are the default settings. If you choose a different installation location, they should be changed accordingly.

From your post, you are a little bit confused about Series 60 and Series 80.

NOTE:

1) SDKs and emulators must be installed to one drive.

2) If the environment variable is set to a \ then the SDK will work in the same way as releases prior to v6.0, with epoc32 being in the root.

3) If the EPOCROOT environment variable is missing or points to an invalid location, the build tools will report this as an error and then terminate.


Hope this helps!

Liuxg
Forum Nokia
Reply With Quote

#3 Old 2003-04-28, 05:32

Join Date: Apr 2003
Posts: 1,534
Location: Tianjin, China
Send a message via MSN to Maxying
Maxying
Offline
Super Contributor
非常感谢您的帮助!我重新弄了一下,总算是在VC中建立了工程,
不过问题很奇怪,我的SDK装在E盘的根

目录下,如果我的工程建立在E:\就没问题正常建立,
但是编译的时候会出现两个Warning:
Deleting intermediate files and output files for project '111 - Win32 Uni Debug'.
--------------------Configuration: 111 - Win32 Uni Debug--------------------
Building resources from ..\data\111_caption.rss
perl -S epocrc.pl -I "..\..\..\..\..\..\..\..\..\111\SRC" -I

"..\..\..\..\..\..\..\..\..\111\GROUP" -I "..\..\..\..\..\..\..\..\..\111\INC" -I- -I

"..\..\..\..\..\..\..\..\..\111\GROUP" -I "..\..\..\..\..\..\..\..\..\Symbian\6.1\Series60

\EPOC32\INC
LUDE" -DLANGUAGE_SC -u "..\..\..\..\..\..\..\..\..\111\SRC\..\DATA\111_CAPTION.RSS" -

o"\Symbian\6.1\Series60\EPOC32\RELEASE\WINS\UDEB\Z\SYSTEM\APPS\111\111_CAPTION.rSC" -

h"..\..\..\..\..\..\..\..\..\111\SRC\111_CAPTION.rs~" -t"\Symbian\6.1\Series60\
EPOC32\BUILD\111\GROUP\111\WINS\UDEB"
已复制 1 个文件。
echo this is a dummy output file > "\Symbian\6.1\Series60\EPOC32

\RELEASE\WINS\UDEB\Z\SYSTEM\APPS\111\111_CAPTION.rSC.dummy"
call "MayRewriteHdr.bat"
del "..\..\..\..\..\..\..\..\..\111\SRC\111_CAPTION.rs~"
Building resources from ..\data\111.rss
perl -S epocrc.pl -I "..\..\..\..\..\..\..\..\..\111\SRC" -I

"..\..\..\..\..\..\..\..\..\111\GROUP" -I "..\..\..\..\..\..\..\..\..\111\INC" -I- -I

"..\..\..\..\..\..\..\..\..\111\GROUP" -I "..\..\..\..\..\..\..\..\..\Symbian\6.1\Series60

\EPOC32\INC
LUDE" -DLANGUAGE_SC -u "..\..\..\..\..\..\..\..\..\111\SRC\..\DATA\111.RSS" -o"\Symbian\6.1

\Series60\EPOC32\RELEASE\WINS\UDEB\Z\SYSTEM\APPS\111\111.rSC" -

h"..\..\..\..\..\..\..\..\..\111\SRC\111.rs~" -t"\Symbian\6.1\Series60\EPOC32\BUILD\111

\GROUP\1
11\WINS\UDEB"
已复制 1 个文件。
echo this is a dummy output file > "\Symbian\6.1\Series60\EPOC32

\RELEASE\WINS\UDEB\Z\SYSTEM\APPS\111\111.rSC.dummy"
call "MayRewriteHdr.bat"
del "..\..\..\..\..\..\..\..\..\111\SRC\111.rs~"
Compiling...
My111app.cpp
My111appui.cpp
My111dialog.cpp
My111document.cpp
111.uid.cpp
Generating Code...
Doing first-stage link by name
link.exe @C:\DOCUME~1\Maxying\LOCALS~1\Temp\nma01720.
Creating library \Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111\WINS\UDEB\111.lib and

object \Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111\WINS\UDEB\111.exp
EDLL.LIB(UP_DLL.obj) : warning LNK4099: PDB "edll.pdb" was not found with "\Symbian\6.1

\Series60\EPOC32\RELEASE\WINS\UDEB\EDLL.LIB" or at "E:\Symbian\6.1\Series60\EPOC32

\BUILD\111\GROUP\111\WINS\UDEB\edll.pdb"; linking object as if no debug info
del "\Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111\WINS\UDEB\111.APP"
del "\Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111\WINS\UDEB\111.exp"
dumpbin /exports /out:"\Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111\WINS\UDEB\111.inf"

"\Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111\WINS\UDEB\111.lib"
Microsoft (R) COFF Binary File Dumper Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
del "\Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111\WINS\UDEB\111.lib"
perl -S makedef.pl -Inffile "\Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111

\WINS\UDEB\111.inf" -1 ?NewApplication@@YAPAVCApaApplication@@XZ "\Symbian\6.1\Series60

\EPOC32\BUILD\111\GROUP\111\WINS\111.def"
del "\Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111\WINS\UDEB\111.inf"
lib.exe /nologo /machine:i386 /nodefaultlib /name:"111.APP" /def:"\Symbian\6.1\Series60

\EPOC32\BUILD\111\GROUP\111\WINS\111.def" /out:"\Symbian\6.1\Series60\EPOC32\BUILD\111

\GROUP\111\WINS\UDEB\111.lib"
Creating library \Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111\WINS\UDEB\111.lib and

object \Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111\WINS\UDEB\111.exp
del "\Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111\WINS\UDEB\111.lib"
First-stage link successful
Linking...
EDLL.LIB(UP_DLL.obj) : warning LNK4099: PDB "edll.pdb" was not found with "\Symbian\6.1

\Series60\EPOC32\RELEASE\WINS\UDEB\EDLL.LIB" or at "E:\Symbian\6.1\Series60\EPOC32

\RELEASE\WINS\UDEB\Z\SYSTEM\APPS\111\edll.pdb"; linking object as if no debug in
fo
if exist "\Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111\WINS\UDEB\111.exp" del

"\Symbian\6.1\Series60\EPOC32\BUILD\111\GROUP\111\WINS\UDEB\111.exp"

111.APP - 0 error(s), 2 warning(s)
而如果我的工程建立在E:\My Project\下面,
在点击向导的Finish之后VC就死掉了,查看目录在E:\My

Project\123目录中有123.dsw,但没有dsp文件,
而且这两个文件本来应该在E:\Symbian\6.1\Series60

\Epoc32\BUILD\123\GROUP\123\WINS\下面才对阿,
不知道这都是什么奇怪问题,望指教!

我的一些设置:
EPOCROOT=\Symbian\6.1\Series60\
EPOCPATH=e:\Symbian\6.1\Shared\epoc32\gcc\bin;e:\Symbian\6.1\Shared\epoc32\Tools\
EPOCPLAT=Crystal2
Path=e:\Perl\bin;e:\Symbian\6.1\Shared\epoc32\gcc\bin;e:\Symbian\6.1\Shared\epoc32

\tools;d:\Inprise\vbroker\bin;D:\PROGRA~1\Borland\CBUILD~1\Bin;D:\PROGRA~1\Borland\CBUILD~1

\Projects\Bpl;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
Last edited by liuxg : 2003-04-28 at 05:45.
Reply With Quote

#4 Old 2003-04-28, 05:51

Join Date: Mar 2003
Posts: 3,175
Location: Beijing
Send a message via MSN to liuxg
liuxg's Avatar
liuxg
Offline
Forum Nokia Expert
Hi,

Please make sure that your directory name does not have any SPACE in it. This is EXTREMELY important since currently Symbian tools don't recognize the SPACE character in directory names. In your case, "My project" should be changed since it has a space character in it!

If your problem still sticks, you may still bug me. Hopefully, this helps


Liuxg
Forum Nokia
Last edited by liuxg : 2003-05-09 at 11:13.
Reply With Quote

#5 Old 2003-05-09, 09:11

Join Date: May 2003
Posts: 16
allenxu
Offline
Registered User
waring 对程序没什么影响,是模拟器中 DLL 的缘故,VC无法调试到,不用去考虑它。
程序名不能有空格,而且好象也不能是中文名
Reply With Quote

#6 Old 谢谢各位,问题已綺解决~~ - 2003-05-10, 06:07

Join Date: Apr 2003
Posts: 1,534
Location: Tianjin, China
Send a message via MSN to Maxying
Maxying
Offline
Super Contributor
谢谢各位,问题已綺解决~~ 呵呵,限制比较多,看来SDK还有待完善啊~~~
Reply With Quote

#7 Old 2003-05-15, 02:30

Join Date: Mar 2003
Posts: 1
drunkenlion
Offline
Registered User
我按照上面的设置,可还是报错,报的错误跟第一个帖子是一样的。
不能建立工程。

请问能否总结一下,这个问题究竟该如何解决?
Reply With Quote

#8 Old 还是不行啊 - 2003-07-07, 10:12

Join Date: Jul 2003
Posts: 32
jaty
Offline
Registered User
我的环境变量
EPOCROOT=\Symbian\6.1\Series60\
HOME=D:\
HOMEDRIVE=D:

VC安装在D盘DEFAULT路径 D:\Program Files\Microsoft Visual Studio
S60也安装在D盘DEFAULT路径D:\Symbian\6.1\Series60

甚至整个安装过程我都没改变任何DEFAULT值

依然不可以,错误依旧
痛苦~~~
Reply With Quote

#9 Old 2003-07-07, 10:21

Join Date: Mar 2003
Posts: 3,175
Location: Beijing
Send a message via MSN to liuxg
liuxg's Avatar
liuxg
Offline
Forum Nokia Expert
In addition to setting the EPOCROOT global variable, you also need to check the variable for "path". For example, on my machine, it has the following definition:

C:\Perl\bin\;C:\Symbian\6.1\Shared\epoc32\gcc\bin;C:\Symbian\6.1\Shared\epoc32\tools;C:\Perl\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\PROGRA~1\CHECKP~1\SECURE~1\bin;C:\Nokia\Tools\Nokia_Developers_Suite_for_J2ME\bin

The part for Symbian is very important. I suggest you try to build under MS-DOS box by issuing the following command (suppose you are already in the "group" subdirectory of your app.):

1) bldmake bldfiles
2) abld build wins udeb

Under MS-DOS box, you can issue the following command to generate the .dsw file for use in VC++.

3) abld makefile vc6

Hope this helps!

Liuxg
Forum Nokia
Reply With Quote

#10 Old 我尝试的结果~ - 2003-07-07, 10:26

Join Date: Jul 2003
Posts: 32
jaty
Offline
Registered User
D:\>path
PATH=d:\perl\bin;D:\Symbian\6.1\Shared\epoc32\gcc\bin;D:\Symbian\6.1\Shared\epoc
32\tools;d:\perl\bin;D:\WINNT\system32;D:\WINNT;D:\WINNT\System32\Wbem;D:\PROGRA
~1\ULTRAE~1;C:\MSSQL7\BINN;D:\Program Files\Rational\ClearQuest;D:\Program Files
\SecureCRT 3.0;D:\PROGRA~1\SECUREFX;

D:\Symbian\6.1\Series60\Series60Ex\animation\gui\group>bldmake bldfiles

D:\Symbian\6.1\Series60\Series60Ex\animation\gui\group>abld build wins udeb
nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\SERI
ES60EX\ANIMATION\GUI\GROUP\EXPORT.make" EXPORT VERBOSE=-s
'nmake' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Reply With Quote

#11 Old 不好意思~ - 2003-07-07, 10:29

Join Date: Jul 2003
Posts: 32
jaty
Offline
Registered User
我少加了VC的PATH
Reply With Quote

#12 Old 谢谢liuxg ^_^ - 2003-07-07, 10:36

Join Date: Jul 2003
Posts: 32
jaty
Offline
Registered User
作为一个特别笨的初学者,对这个问题的体会是:
1)要安装好PERL
2)安装好VC
3)安装好S60
4)最好都使用默认安装而且最好都在同一个盘上
5)保证PATH里有PERL、VC、S60
6)检查环境变量EPOCROOT=\Symbian\6.1\Series60\
Reply With Quote

#13 Old The easiest way - 2003-09-08, 14:52

Join Date: Sep 2003
Posts: 16
wolf_wei2003
Offline
Registered User
in fact the easiest way to solve this problem is create your s60 project to the folder C:\SYMBIAN\6.1\SERIES60\EPOC32\BUILD\
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia