Symbian
Symbian OS Library

FAQ-0848 How do I build the JNI Infoprint examples on the UIQ SDK?

[Index][spacer] [Previous] [Next]



 

Classification: Java Category: JNI
Created: 02/06/2003 Modified: 02/10/2003
Number: FAQ-0848
Platform: Symbian OS v7.0

Question:
How do I build the Infoprint examples on the UIQ SDK? "make" fails with the following error message:
'mwcc.exe' is not recognized as an internal or external command, operable program or batch file.


Answer:
The problem here is that the script files on the release version of the UIQ SDK (uiq_sdk_r2.zip) have not been modified to take account of changes to the latest version of CodeWarrior tools.
    1) Go to erj\makefiles\metrowerks.def file. In there you will find the following lines

    CC = mwcc.exe
    CPP = mwcc.exe
    LINK = mwld.exe
      Change these to
      CC = mwccsym2.exe
      CPP = mwccsym2.exe
      LINK = mwldsym2.exe

        The former referred to Metrowerks CodeWarrior v7.0, which has now been superceded as the preferred tool for Symbian OS v7.0 development by Metrowerks Code Warrior for Symbian OS v2.0.
        2) Go to the erj\infoprint* directory and open the Makefile whose contents should be as follows:

        binary = library
        TOPDIR = ..\..

        !include $(TOPDIR)\makefiles\make.defs

        LIBRARY = infoprint1


        FILES_obj = $(OBJ)\infoprint.$O $(OBJ)\E32dll.$O

        !include $(TOPDIR)\makefiles\jnilib.mk
          Remove the ! before each include statement.
          3) Go to the erj\infoprint* directory and open the classes.mk file. Change the line

          clobber :: Force

          to

          clobber : Force