|
关于“U1050: Required macro SOURCES=。。。”的错误
[复制链接]
具体情况如下,我在显示驱动代码实现中调用背光驱动,显示驱动代码中导入了背光驱动的LIB文件,后面具体调用过程省略。
#include "VGAoutpch.h"
#include "CH702X.h"
#include "bsp_backlight.h"
#pragma comment(lib,"backlight.lib")
#pragma comment(lib,"backlight_lib.lib")
。。。。。。。。
还编辑了sources文件的内容如下:
!IF "$(BSP_VGAOUT)" == "1"
!ELSE
SKIPBUILD=1
!ENDIF
TARGETNAME=VGAoutpnl
RELEASETYPE=PLATFORM
WINCEOEM=1
CPL=1
DLLENTRY=DllEntry
TARGETTYPE=DYNLINK
TARGETLIBS= \
$(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib \
$(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\Commctrl.lib \
$(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\ceddk.lib \
$(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\drvbaselib.lib \
SOURCELIBS=\
$(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\backlight.lib \
$(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\backlight_lib.lib \
SOURCES= \
VGAoutpnl.rc \
VGAoutpnl.cpp \
CH702X.cpp \
_ISVINCPATH=$(_WINCEROOT)\public\ie\sdk\inc;$(_WINCEROOT)\public\shellsdk\sdk\inc;$(_WINCEROOT)\public\common\sdk\inc;$(_WINCEROOT)\public\common\oak\inc;$(_WINCEROOT)\public\gdiex\sdk\inc;
_OEMINCPATH=$(_WINCEROOT)\public\ie\sdk\inc;$(_WINCEROOT)\public\shellsdk\sdk\inc;$(_WINCEROOT)\public\wceshellfe\oak\inc;$(_WINCEROOT)\public\common\sdk\inc;$(_WINCEROOT)\public\common\oak\inc;$(_WINCEROOT)\public\gdiex\sdk\inc;
INCLUDES= \
$(INCLUDES);$(_TARGETPLATROOT)\SRC\BSP_CONFIG\8801_EPC_V2;$(_TARGETPLATROOT)\SRC\AK_PRIVATE\DRIVERS\BACKLIGHT;$(_TARGETPLATROOT)\SRC\DRIVERS\BACKLIGHT;$(_TARGETPLATROOT)\SRC\AK_PRIVATE\DRIVERS\I2C\INC;$(_TARGETPLATROOT)\SRC\DRIVERS\I2C;$(_WINCEROOT)\\PUBLIC\COMMON\DDK\INC \
最后编译BSP代码,但是生成nb0文件时失败,提示出现如下错误:
BUILD: [01:0000001131:ERRORE] C:\WINCE600\PLATFORM\AK780X\SRC\DRIVERS\VGAOutPNL\sources : ERROR: Your sources file must define the SOURCES= macro.
BUILD: [01:0000001132:ERRORE] C:\WINCE600\public\common\oak\misc\makefile.def(301) : U1050: Required macro SOURCES= not set in C:\WINCE600\PLATFORM\AK780X\SRC\DRIVERS\VGAOutPNL\sources.
BUILD: [01:0000001134:ERRORE] NMAKE.EXE TargetExeFiles -i -c BUILDMSG=Stop. BUILDROOT=C:\WINCE600\PLATFORM\AK780X LINKONLY=1 NOPASS0=1MAKEDLL=1MAKEDLL=1 failed - rc = 2
有没有哪位高手指点一下小弟,为什么我的sources文件定义了SOURCES字段,还是出现这个提示?万分感谢!
|
|