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

How to compile a opx?

6 replies · 3,309 views · Started 17 March 2004

Could someone please give me a hint how to compile a opx for 9210? I have the source already, but i need to compile it. I have Nokia 9210 SDK 1.0 and MS VC++

Assuming you have the SDK and compiler installed ok, unzip the 9210 OPL Developer Pack from http://opl-dev.sourceforge.net/ to give you the OPL runtime, against which all OPXs link.
Then :
cd to the folder containing the bld.inf file (usually called group)
bldmake bldfiles
abld build

If you get any error messages, use 'abld makefile vc6' to build an ms dev vc6 project file. Open that project file and use the IDE to edit the C++ source to remove the error messages. Then repeat the abld build.

I got:

bld.inf Fatal error(s):
41: Unsupported platform WINSCW specified

I use Windows XP, do I have to use Win98?

Ok, I changed to crystal platform.

bldmake bldfiles without eror message.

abld buid

does build the wins files but not the target files. I got hundreds of errors, too much for the dos box to display from the begining. What could be wrong?

I also made
abld makefile vc6

and compiled the celltrack.opx without any errors. But is it possible to compile the celltrack.opx for the target device with VC6?

What do I have to do to compile only the celltrack.opx for the 9210 target?

This makes me really crazy. I think that I have a problem with the path names in the mmp file.

The opl source code is in c:\opl\
The mmp and cpp source file is in c:\opl\opx\celltrac\
the nokia sdk is in c:\symbian\6.0\Nokiacpp\

the bld.inf file is:

PRJ_MMPFILES
CellTrack.mmp

the CellTrack.mmp file is:

// SYSTEM.MMP
//
// Copyright (c) 1997-2002 Symbian Ltd. All rights reserved.

TARGET CellTrack.opx
TARGETTYPE dll
TARGETPATH \System\OPX
UID 0x10003A7B 0x101fe660

#include "..\..\opl-target.mmpi"

#if defined(__CRYSTAL_MMP__)
#if defined(MARM)
//9210 THUMB only
STATICLIBRARY egcc.lib
LIBRARY edll.lib edllstub.lib
#endif
#endif

SOURCEPATH .
SOURCE CellTrack.cpp

USERINCLUDE ..\src
SYSTEMINCLUDE \epoc32\include

LIBRARY euser.lib
LIBRARY oplr.lib
LIBRARY PROFILEENGINE.LIB
library bafl.lib
library cbsserver.lib cbsfroot.lib estor.lib efsrv.lib
LIBRARY etel.lib gsmBAS.lib sysagt.lib

DEFFILE OPX.DEF

When I do
bldmake bldfiles
abld build armi urel

I got lots of these path errors:

..\\..\\..\\Symbian\\6.0\\NokiaCPP\\EPOC32\\INCLUDE\\e32base.h:486: confused by
earlier errors, bailing out
NMAKE : fatal error U1077: 'gcc' : Rueckgabe-Code '0x1'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\bin\nmake.exe' : Rueckgabe
-Code '0x2'
Stop.
nmake -nologo -f "\Symbian\6.0\NokiaCPP\EPOC32\BUILD\OPL\OPX\CELLTRAC\ARMI.mak
e" FINAL CFG=UREL VERBOSE=-s

C:\OPL\OPX\CELLTRAC>

Why do I get these double slashes in the path names?

I use winxp home
I installed Nokia 9210 SDK 1.2 but I still got the same errors.

Very old post, but... could it be resumed? How can I compile an OPX? I get the same errors described within this thread.