Re: SNMP with PB 4.2 - test sample not being built ?
From: sergeir (anonymous_at_discussions.microsoft.com)
Date: 12/20/04
- Next message: Vinay Satishchandra Trivedi: "Configuring LAN Card in Windows ce.net"
- Previous message: Manoj: "Re: slot process r right"
- In reply to: Paul G. Tobey [eMVP]: "Re: SNMP with PB 4.2 - test sample not being built ?"
- Next in thread: Chuck Lin: "Re: SNMP with PB 4.2 - test sample not being built ?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 20 Dec 2004 00:04:44 -0800
Hi Paul,
unfortunately there are several places which have to be
modified for this included with PB example to be built by
PB, in addition to just drag and drop os SNMP component
into platform window form catalog window.
Lots of experimentation and test trials ( certainly wasted
time) have revelaed the following at least must be done
for the included with PB example to be built by PB - for
those who are interested continue to read on, uhhh
0. drag and drop SNMP component - mentioned above, obvious
1. your platform have to have somehow the following
definitions CE_MODULES_WINSOCK and PPP. I have no idea how
to add winsock by itself to my platform. So a crude method
was used to add FTP update sample, that did it - but we
don't need FTP update example for this platform. Weird ...
2. somehow one must have defined the
CE_MODULES_SNMP_SNMPTESTMIB for the build. Just adding the
example doesn't do it for me.
3. modify dirs file to include subfolder of snmtestmib nto
build process
4. modify Makefile in C:\WINCE420\PUBLIC\COMMON\CESYSGEN
to add the build command for this example explicitly, by
hand.
5. common.bib has the required line conditional, I used
project.bib instead with unconditional case, Paul is right
common.bib should work as is, if definitions are ok, they
were not in my case, so project.bib approach was simpler.
That probably will make it built and include into with
nk.bin.
However to work ( i.e. for this built dll gets loaded into
device.exe) what is left is to modify project.reg and
include .mib file into nk.bin
Thanks Paul
Regards
Sergei
>-----Original Message-----
>I'm certainly no build system expert, but if SYSGEN_SNMP
is set, which it
>should be if you have included the SNMP support from the
catalog, then that
>should be getting built in your flat release directory...
>
>It won't be in project.bib; it's in common.bib, if that
module is in the
>list of CE modules...
>
>Paul T.
>
>"sergeir" <anonymous@discussions.microsoft.com> wrote in
message
>news:02b701c4e428$580e6660$a501280a@phx.gbl...
>> Hi Paul,
>>
>> You are correct but not quite.
>> snmp_snmptestmib showing up in the list of modules to be
>> included in the OS - true, it is not in the project.bib.
>> Because if I add it there my platform nk.bin will not be
>> built - makeimg will fail to find the file
>> snmp_snmptestmib.dll. That's because it is not being
built
>> by PB.
>>
>> The corresponding to my platform cesysgen.bat file
>> contains the following relevant info
>>
>> if "%SYSGEN_SNMP%"=="1" set CE_MODULES=%CE_MODULES% snmp
>> snmp_mibii snmp_hostmib snmp_snmptestmib
>> if "%SYSGEN_SNMP%"=="1" set SYSGEN_TOOLHELP=1
>>
>> but the ($flatreleasedir) does not contain the desired
>> snmp_snmptestmib.dll, but does contain the
>> snmp_hostmib.dll, snmp.dll and snmp_mibii.dll.
>>
>> What gives ? Do I really miss something else, like
hidden
>> parameter or so ?
>>
>> Thanks,
>>
>> Sergei
>>
>>>-----Original Message-----
>>>Basically what you're missing is snmp_snmptestmib
showing
>> up in the list of
>>>modules to be included in the OS. As I remember,
though,
>> the test MIB is
>>>incliuded by default. Isn't it listed in your
>> cesysgen.bat along with the
>>>other SNMP components?
>>>
>>>Paul T.
>>>
>>>"sergeir" <anonymous@discussions.microsoft.com> wrote in
>> message
>>>news:097601c4e385$83b92140$a401280a@phx.gbl...
>>>> Dear experts,
>>>>
>>>> I have studied the PB 4.2 most recent documentation
and
>>>> have combed through the several related newsgroups
>> looking
>>>> for the information leading to finding the culprit in
my
>>>> test case with SNMP.
>>>>
>>>> Description : PB 4.2, platform is x86 based, VIA BSP,
>>>> simple web pad project ( that's doesn't really matter,
>>>> isn't it ?)
>>>>
>>>> Have included int the platform
>>>> Networking->LocalAreaNetwork->Realtek 8139
>>>> App & Servcs->Device Management->SNMP (has ! sign)
>>>> Communications Services and Networking->Networking -
>>>> Local...->Wired Local Area Network
>>>> Communications Services and Networking->Networking -
Wide
>>>> Area.....->Wired Local Area Network->Dial up; PPP;
TAPI
>>>> Communications Services and Networking->Networking
>>>> Features->TCP/IP
>>>>
>>>> What esle should one add for test SNMp project to
work ?
>>>>
>>>> Test SNMP project - a simple DLL supposed to be loaded
>> by
>>>> device.exe. This DLL source code is provided by
>> Microsoft
>>>> and is a part of PB. One can see its source code when
>>>> expanding PB catalog tree under SNMP node. You would
see
>>>> dllmain.c, mibentry.c etc.
>>>>
>>>> I have done clean rebuild all command and enabled
depth
>>>> tree build is set on too. Did also a command like
>> build -
>>>> no luck. The resulting snmp_snmptestmib.dll is not
being
>>>> built by PB ! Even though its mates snmp_mibii.dll and
>>>> snmp_hostmib.dll are built, incorporated into nk.bin
and
>>>> then loaded properly by device.exe.
>>>>
>>>> Looking into the makefile one can see that
>>>> snmp_snmptestmib.dll is in there and is supposed to be
>>>> built the same way as the snmp_hostmib.dll is.
>>>>
>>>> Can anybody shed some light on this SNMP sample in PB
>> 4.2 ?
>>>>
>>>> Thanks
>>>>
>>>> Sergei
>>>
>>>
>>>.
>>>
>
>
>.
>
- Next message: Vinay Satishchandra Trivedi: "Configuring LAN Card in Windows ce.net"
- Previous message: Manoj: "Re: slot process r right"
- In reply to: Paul G. Tobey [eMVP]: "Re: SNMP with PB 4.2 - test sample not being built ?"
- Next in thread: Chuck Lin: "Re: SNMP with PB 4.2 - test sample not being built ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|