Re: Error compiling backlight driver



Ok, i found !!
In the 'sources' file was defined a wrong variable: BSP_BACKLIGHT_LCDC
against. BSP_BACKLIGHT

Now the source file is compiled and i have the errors:

BUILD: [Thrd:Sequence:Type ] Message
BUILD: [01:0000000110:ERRORE] backlight_common_fsl_v2.lib(backlight.obj) :
error LNK2019: unresolved external symbol GetSystemPowerStatusEx2 referenced
in function "unsigned long __cdecl BKL_EventThread(void *)"
(?BKL_EventThread@@YAKPAX@Z)
BUILD: [01:0000000111:ERRORE] backlight_common_fsl_v2.lib(backlight.obj) :
error LNK2019: unresolved external symbol GetSystemPowerStatusEx referenced
in function BKL_Init
BUILD: [01:0000000112:ERRORE]
C:\WINCE600\platform\1234YF\target\ARMV4I\retail\lcdcbacklight.dll : fatal
error LNK1120: 2 unresolved externals

I guess this is a linker errors but then why the original sources file
doesn't declare it ?
--
SteM


"SteM" <xxx@xxxxxxx> ha scritto nel messaggio
news:%23iSlT%23JALHA.5808@xxxxxxxxxxxxxxxxxxxxxxx
Hi all,
i'm adding the backlight support to my BSP but i receive an error I'm not
able to handle.
I added the BACKLIGHT tree under the PLAFTORM/bsp/src/drivers/BACKLIGHT.
I added the teims into the catalog file.

The build log is the following:

BUILD: [Thrd:Sequence:Type ] Message
000:PROGC ] Build started with parameters:
001:PROGC ] Build started in directory:
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT
002:PROGC ] Checking for C:\WINCE600\sdk\bin\i386\srccheck.exe.
003:PROGC ] Running passes WCEFILES0, MIDL, MC, ASN, THUNK, PRECOMPHEADER,
COMPILE, LIB, LINK, MANAGEDRESX, MANAGEDMOD, MANAGEDDLL, MANAGEDEXE,
MANAGEDWIN for ARM.
004:PROGC ] Loading database "C:\WINCE600\PLATFORM\123456\Build.dat".
005:PROGC ] Done.
006:PROGC ] Computing include file dependencies:
007:PROGC ] Checking for SDK include directory: C:\WINCE600\sdk\CE\inc.
008:PROGC ] Scan C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER\
009:PROGC ] Scan C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\CTLPNL\
010:INFO ] Will Build
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER\bspbacklight.cpp
because target: obj\ARMV4I\retail\bspbacklight.obj is missing.
011:PROGC ] Building COMPILE Pass in
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER\ directory.
012:PROG ] 'NMAKE.EXE TargetCompilePass -i -c BUILDMSG=Stop.
BUILDROOT=C:\WINCE600\PLATFORM\123456 NOLINK=1 NOPASS0=1'
013:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\Sources.default
014:INFO ] makefile.def: BUILDROOT is C:\WINCE600\PLATFORM\123456
015:INFO ] makefile.def: Including
C:\WINCE600\PLATFORM\123456\sources.cmn
016:INFO ] makefile.def: Including
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER\sources
017:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\Sources.CE
018:INFO ] Directory:
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER
019:INFO ] TARGETNAME: lcdcbacklight
020:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\sources.ReleaseType_PLATFORM
021:WARNN ] File:

C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER\obj\ARMV4I\retail\b
spbacklight.obj does not exist (2).
022:INFO ] Will Build
C:\WINCE600\platform\common\lib\ARMV4I\retail\backlight_common_fsl_v2.lib
because target:
C:\WINCE600\platform\123456\lib\ARMV4I\retail\lcdcbacklight.lib is
missing.
023:INFO ] Will Build

C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER\obj\ARMV4I\retail\b
spbacklight.obj because filename is missing from build database
024:INFO ] Will Build
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER\ because target:
C:\WINCE600\platform\123456\lib\ARMV4I\retail\lcdcbacklight.lib is
missing.
025:PROGC ] Building LIB Pass in
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER\ directory.
026:PROG ] 'NMAKE.EXE TargetLibFiles -i -c BUILDMSG=Stop.
BUILDROOT=C:\WINCE600\PLATFORM\123456 LINKONLY=1 NOPASS0=1'
027:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\Sources.default
028:INFO ] makefile.def: BUILDROOT is C:\WINCE600\PLATFORM\123456
029:INFO ] makefile.def: Including
C:\WINCE600\PLATFORM\123456\sources.cmn
030:INFO ] makefile.def: Including
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER\sources
031:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\Sources.CE
032:INFO ] Directory:
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER
033:INFO ] TARGETNAME: lcdcbacklight
034:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\sources.ReleaseType_PLATFORM
035:INFO ] Will Build

C:\WINCE600\platform\common\lib\ARMV4I\retail\advbacklight_common_fsl_v2.lib
because target:
C:\WINCE600\platform\123456\lib\ARMV4I\retail\AdvBacklight.lib is missing.
036:INFO ] Will Build
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\CTLPNL\ because target:
C:\WINCE600\platform\123456\lib\ARMV4I\retail\AdvBacklight.lib is missing.
037:PROGC ] Building LIB Pass in
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\CTLPNL\ directory.
038:PROG ] 'NMAKE.EXE TargetLibFiles -i -c BUILDMSG=Stop.
BUILDROOT=C:\WINCE600\PLATFORM\123456 LINKONLY=1 NOPASS0=1'
039:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\Sources.default
040:INFO ] makefile.def: BUILDROOT is C:\WINCE600\PLATFORM\123456
041:INFO ] makefile.def: Including
C:\WINCE600\PLATFORM\123456\sources.cmn
042:INFO ] makefile.def: Including
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\CTLPNL\sources
043:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\Sources.CE
044:INFO ] Directory:
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\CTLPNL
045:INFO ] TARGETNAME: AdvBacklight
046:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\sources.ReleaseType_PLATFORM
047:WARNN ] File:
C:\WINCE600\platform\123456\lib\ARMV4I\retail\lcdcbacklight.lib does not
exist (2).
048:WARNN ] File:
C:\WINCE600\platform\123456\lib\ARMV4I\retail\AdvBacklight.lib does not
exist (2).
049:INFO ] Will Build
C:\WINCE600\platform\common\lib\ARMV4I\retail\backlight_common_fsl_v2.lib
because target:
C:\WINCE600\platform\123456\target\ARMV4I\retail\lcdcbacklight.dll is
missing.
050:INFO ] Will Build
C:\WINCE600\platform\common\lib\ARMV4I\retail\backlight_common_fsl_v2.def
because target:
C:\WINCE600\platform\123456\target\ARMV4I\retail\lcdcbacklight.dll is
missing.
051:INFO ] Will Build

C:\WINCE600\OSDesigns\123456_OsDesign\123456_OsDesign\Wince600\123456_ARMV4I
\cesysgen\sdk\lib\ARMV4I\retail\coredll.lib because target:
C:\WINCE600\platform\123456\target\ARMV4I\retail\lcdcbacklight.dll is
missing.
052:INFO ] Will Build

C:\WINCE600\OSDesigns\123456_OsDesign\123456_OsDesign\Wince600\123456_ARMV4I
\cesysgen\sdk\lib\ARMV4I\retail\ceosutil.lib because target:
C:\WINCE600\platform\123456\target\ARMV4I\retail\lcdcbacklight.dll is
missing.
053:INFO ] Will Build

C:\WINCE600\OSDesigns\123456_OsDesign\123456_OsDesign\Wince600\123456_ARMV4I
\cesysgen\oak\lib\ARMV4I\retail\ceddk.lib because target:
C:\WINCE600\platform\123456\target\ARMV4I\retail\lcdcbacklight.dll is
missing.
054:INFO ] Will Build
C:\WINCE600\platform\123456\lib\ARMV4I\retail\cspddk.lib because target:
C:\WINCE600\platform\123456\target\ARMV4I\retail\lcdcbacklight.dll is
missing.
055:INFO ] Will Build

C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER\obj\ARMV4I\retail\b
spbacklight.obj because filename is missing from build database
056:INFO ] Will Build
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER\ because target:
C:\WINCE600\platform\123456\target\ARMV4I\retail\lcdcbacklight.dll is
missing.
057:PROGC ] Building LINK Pass in
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER\ directory.
058:PROG ] 'NMAKE.EXE TargetExeFiles -i -c BUILDMSG=Stop.
BUILDROOT=C:\WINCE600\PLATFORM\123456 LINKONLY=1 NOPASS0=1MAKEDLL=1'
059:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\Sources.default
060:INFO ] makefile.def: BUILDROOT is C:\WINCE600\PLATFORM\123456
061:INFO ] makefile.def: Including
C:\WINCE600\PLATFORM\123456\sources.cmn
062:INFO ] makefile.def: Including
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER\sources
063:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\Sources.CE
064:INFO ] Directory:
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\DRIVER
065:INFO ] TARGETNAME: lcdcbacklight
066:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\sources.ReleaseType_PLATFORM
067:INFO ] Will Build

C:\WINCE600\platform\common\lib\ARMV4I\retail\advbacklight_common_fsl_v2.lib
because target:
C:\WINCE600\platform\123456\target\ARMV4I\retail\AdvBacklight.dll is
missing.
068:INFO ] Will Build

C:\WINCE600\platform\common\lib\ARMV4I\retail\advbacklight_common_fsl_v2.def
because target:
C:\WINCE600\platform\123456\target\ARMV4I\retail\AdvBacklight.dll is
missing.
069:INFO ] Will Build

C:\WINCE600\OSDesigns\123456_OsDesign\123456_OsDesign\Wince600\123456_ARMV4I
\cesysgen\sdk\lib\ARMV4I\retail\coredll.lib because target:
C:\WINCE600\platform\123456\target\ARMV4I\retail\AdvBacklight.dll is
missing.
070:INFO ] Will Build

C:\WINCE600\OSDesigns\123456_OsDesign\123456_OsDesign\Wince600\123456_ARMV4I
\cesysgen\sdk\lib\ARMV4I\retail\commctrl.lib because target:
C:\WINCE600\platform\123456\target\ARMV4I\retail\AdvBacklight.dll is
missing.
071:INFO ] Will Build
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\CTLPNL\ because target:
C:\WINCE600\platform\123456\target\ARMV4I\retail\AdvBacklight.dll is
missing.
072:PROGC ] Building LINK Pass in
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\CTLPNL\ directory.
073:PROG ] 'NMAKE.EXE TargetExeFiles -i -c BUILDMSG=Stop.
BUILDROOT=C:\WINCE600\PLATFORM\123456 LINKONLY=1 NOPASS0=1MAKEDLL=1'
074:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\Sources.default
075:INFO ] makefile.def: BUILDROOT is C:\WINCE600\PLATFORM\123456
076:INFO ] makefile.def: Including
C:\WINCE600\PLATFORM\123456\sources.cmn
077:INFO ] makefile.def: Including
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\CTLPNL\sources
078:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\Sources.CE
079:INFO ] Directory:
C:\WINCE600\PLATFORM\123456\src\DRIVERS\BACKLIGHT\CTLPNL
080:INFO ] TARGETNAME: AdvBacklight
081:INFO ] makefile.def: Including
C:\WINCE600\public\common\oak\misc\sources.ReleaseType_PLATFORM
082:PROGC ] Saving C:\WINCE600\PLATFORM\123456\Build.dat.
083:INFO ] Done.
084:PROGC ] Done.
085:PROGC ] Files Warnings Errors
086:PROGC ] Midl 0 0 0
087:PROGC ] Message 0 0 0
088:PROGC ] Precomp Header 0 0 0
089:PROGC ] Resource 0 0 0
090:PROGC ] MASM 0 0 0
091:PROGC ] SHASM 0 0 0
092:PROGC ] ARMASM 0 0 0
093:PROGC ] MIPSASM 0 0 0
094:PROGC ] C++ 0 0 0
095:PROGC ] C 0 0 0
096:PROGC ] Static Libraries 0 0 0
097:PROGC ] Exe's 0 0 0
098:PROGC ] Dll's 0 0 0
099:PROGC ] Preprocess deffile 0 0 0
100:PROGC ] Resx 0 0 0
101:PROGC ] CSharp Compile 0 0 0
102:PROGC ] Other 0 0 0
103:PROGC ]
104:PROGC ] Total 0 0 0
105:PROGC ]
106:PROGC ] 0 Warnings, 0 Errors
107:PROGC ] GetSystemTimes (seconds): Idle: 0 Kernel: 0 User: 0
108:PROGC ] Elapsed time (seconds): 0

Thanks
--
SteM




.



Relevant Pages

  • Problem with obj files in sysgen phase
    ... seems to be missing. ... BUILD: Compile and Link for x86. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: build -c from Mystery Solved
    ... Selected installed Via's BSP and drivers. ... >> target: obj\x86\debug\startup.obj is missing. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: build -c from Mystery Solved
    ... Senior Engineer ... > target: obj\x86\debug\startup.obj is missing. ... > Paul A. Lowe ...
    (microsoft.public.windowsce.platbuilder)
  • Error compiling backlight driver
    ... because target: obj\ARMV4I\retail\bspbacklight.obj is missing. ... 019:INFO] TARGETNAME: lcdcbacklight ...
    (microsoft.public.windowsce.platbuilder)
  • Re: SH4 bootloader
    ... BUILD: Will Compile ... Maybe something is wrong in source file, but I had compared it with other source files and I could not see any difference. ...
    (microsoft.public.windowsce.platbuilder)