
Originally Posted by
wizard_hu_
Can you post the .mmp file?
Here's the bld.inf file that refers to the .mmp files, and the two .mmp files.
Sorry for the paranoia, but because it's commercial software, I've disguised some of the identifiers: I've replaced the real application name by MyApp; I've renamed the source code filenames in MyAppEngine.mmp, and for brevity, am only showing one (renamed) source file per directory, anyway; and for brevity, have shortened the list of .bmp files in MyAppUi.mmp. (Almost certainly, none of the hidden things bear on the problem I'm encountering.)
As you'll note, I'm not using the traditional Symbian scheme of putting all .cpp files in directory src/ and all .h files in directory inc/. Instead, I've lumped them all together in code/, just to make things a bit easier for myself. This makes no difference for building the application.
bld.inf:
Code:
/* bld.inf */
PRJ_PLATFORMS
WINSCW GCCE
PRJ_MMPFILES
..\Ui\group\MyAppUi.mmp
..\Engine\group\MyAppEngine.mmp
MyAppUi.mmp:
Code:
/* MyAppUi.mmp */
TARGET MyAppUi.exe
TARGETTYPE EXE
UID 0x100039CE 0xE3DDD0C4 //!! are these OK? reserve UIDs from Symbian Ltd.
VENDORID 0 // if no security checks are needed, VENDORID can remain 0
LANG 01
CAPABILITY NONE //!! might have to add some capabilities
// include paths
SYSTEMINCLUDE \epoc32\include
USERINCLUDE ..\code
USERINCLUDE ..\data
USERINCLUDE ..\..\Common
USERINCLUDE ..\..\Engine\code
// the main resources
START RESOURCE ..\data\MyApp.rss
HEADER
LANG 01
TARGETPATH resource\apps
END
// the registration resource
START RESOURCE ..\data\MyApp_reg.rss
TARGETPATH \private\10003a3f\apps
END
// graphics
START BITMAP myapp.mbm
TARGETPATH .\resource\apps
HEADER
SOURCEPATH ..\gfx
SOURCE c8,1 logo_50x50.bmp logo_mask_50x50.bmp
SOURCE c8,1 logo_70x70.bmp logo_mask_70x70.bmp
SOURCE 1 empty_18x18.bmp
SOURCE 1 empty_34x34.bmp
SOURCE 1 mask_18x18.bmp
SOURCE 1 mask_34x34.bmp
SOURCE c8 A_18x18.bmp
SOURCE c8 A_34x34.bmp
// the rest of the bitmaps deleted for brevity (they're not the problem)
END
// source code
SOURCEPATH ..\code
SOURCE CMobUiApplication.cpp
SOURCE CMobUiAppUi.cpp
SOURCE CMobUiBaseListboxView.cpp
SOURCE CMobUiBaseListboxViewContainer.cpp
SOURCE CMobUiDocument.cpp
SOURCE CMobUiMainView.cpp
SOURCE CMobUiMainViewContainer.cpp
SOURCE CMobUiExtensionsView.cpp
SOURCE CMobUiExtensionsViewContainer.cpp
// our own engine
LIBRARY MyAppEngine.lib
// system libraries needed
LIBRARY aknnotify.lib
LIBRARY aknicon.lib
LIBRARY apparc.lib
LIBRARY avkon.lib
LIBRARY bafl.lib
LIBRARY commonengine.lib
LIBRARY cone.lib
LIBRARY ecom.lib
LIBRARY efsrv.lib
LIBRARY egul.lib
LIBRARY eikcoctl.lib
LIBRARY eikcore.lib
LIBRARY eikctl.lib
LIBRARY eikdlg.lib
LIBRARY esock.lib
LIBRARY estor.lib
LIBRARY etext.lib
LIBRARY euser.lib
LIBRARY fbscli.lib
LIBRARY gdi.lib
LIBRARY http.lib
LIBRARY inetprotutil.lib
LIBRARY insock.lib
DEBUGLIBRARY flogger.lib // file logger
MyAppEngine.mmp:
Code:
/* MyAppEngine.mmp */
TARGET MyAppEngine.lib
TARGETTYPE LIB
UID 0x00000000 0xEC65C8EA //!! are these OK? reserve UIDs from Symbian Ltd.
SECUREID 0xEBE04E33 //!! are these OK? reserve UIDs from Symbian Ltd.
VENDORID 0 // if no security checks are needed, VENDORID can remain 0
LANG 01
CAPABILITY NetworkServices
SYSTEMINCLUDE \epoc32\include
//SYSTEMINCLUDE \epoc32\include\variant
//SYSTEMINCLUDE \epoc32\include\ecom
USERINCLUDE ..\code
USERINCLUDE ..\code\Events
USERINCLUDE ..\code\Requests
USERINCLUDE ..\code\Responses
USERINCLUDE ..\..\Common
USERINCLUDE ..\..\Ui\code
// source code
SOURCEPATH ..\code
SOURCE CSourceFile_1.cpp
// others deleted for brevity
SOURCEPATH ..\code\Events
SOURCE CSourceFile_2.cpp
// others deleted for brevity
SOURCEPATH ..\code\Requests
SOURCE CSourceFile_3.cpp
// others deleted for brevity
SOURCEPATH ..\code\Responses
SOURCE CSourceFile_4.cpp
// others deleted for brevity
SOURCEPATH ..\..\Common
SOURCE CSourceFile_5.cpp
// libraries needed !! but surely not all these?
LIBRARY avkon.lib
LIBRARY bafl.lib
LIBRARY charconv.lib
LIBRARY commonengine.lib
LIBRARY cone.lib
LIBRARY ecom.lib
LIBRARY efsrv.lib
LIBRARY egul.lib
LIBRARY eikcoctl.lib
LIBRARY esock.lib
LIBRARY estor.lib
LIBRARY etext.lib
LIBRARY euser.lib
LIBRARY fbscli.lib
LIBRARY http.lib
LIBRARY inetprotutil.lib
LIBRARY insock.lib
DEBUGLIBRARY flogger.lib // file logger