Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Code Warrior compile problem

3 replies · 1,650 views · Started 01 November 2005

Hello,
I'm trying to compile a hello world application ("UIQ Simple Application"😉 using Metrowerks CodeWarrior 2.8.1.

The problem is, that it always says:
Symbian Resource - Can't execute /c/Symbian/UIQ_21/EPOC32/tools/epocrc.pl

I'm using Windows XP, so I suppose the problem could be that the path is /c/Symbian/... instead of C:/Symbian/... But I haven't found any way to change that.

User posted image

Thank you very much for any advice!

Jan

Is Perl installed properly (what does "perl -v" say, if you type it in a command window/at the command prompt)?

Thanks for an idea, but I have tested Perl even before, and there was no problem...

C:\WINDOWS>perl -v
This is perl, v5.6.1 built for msys
Copyright 1987-2001, Larry Wall

When I try to run the script manually, it doesn't show any errors:

C:\Symbian\UIQ_21\epoc32\tools>epocrc.pl
Usage:
epocrc [options] srcfile [-ooutputfile] [-hheaderfile] [-l "TargetPath:CWDir"]

So I suppose Perl is ok

Hi

I dont know if u have used the proper procedure to compile...but here is a way using the command line....assuming Java Runtime Environment, Perl, SDK. Codewarrior are installed.

Follow these steps:

1.Find out directory of the hellow world example normaly its c:\symbian\.....\series60ex\helloworldbasic\.....
in this find the file bld.inf and copy its directory (u can use win explorer)

2.open command propt and change directory to the directory copied in step1

3.type command bldmake bld.inf

4. type abld build

5. type abld makefile cw_ide

6.This creates an importable project file project-name.xml in the directory <path>\epoc32\build\absolute_path_to_mmp_file\mmp_basename \winscw\.

You can now tell CodeWarrior to read this file and from it generate a project file of its own native type (an .mcp file). Start CodeWarrior, choose the File | Import Project... command, select the HelloWorld.xml file, and choose a name for the CodeWarrior project (such as HelloWorld again). CodeWarrior will now generate and load the project, which you can build, run, debug, etc. using the normal IDE commands.

Cheers