Wireshark-dev: Re: [Wireshark-dev] Compiling errors (Win32)
I manged to resolve this issue by navigating
to:
c:\wireshark-rim\epan\dissectors
and running:
c:\python26\python.exe
"../../tools/ncp2222.py" -o packet-ncp2222.c
Prior to this, no matter what I did I got a packet-ncp2222.c file that contained nothing. After doing this it contained code. I manually defined my PYTHON_VER and PYTHON_DIR in config.nmake and I think this causes a problem with epan\dissectors\Makefile.nmake when it checks for the PYTHON var:
!IFDEF PYTHON
@echo Making register.c (using python)
@$(PYTHON) "../../tools/make-dissector-reg.py" . dissectors $(ALL_DISSECTORS_SRC)
!ELSE
@echo Making register.c (using sh)
@$(SH) ../../tools/make-dissector-reg . dissectors $(ALL_DISSECTORS_SRC)
!ENDIF
packet-ncp2222.c: ..\..\tools/ncp2222.py
!IFDEF PYTHON
@echo Making packet-ncp2222.c
$(PYTHON) "../../tools/ncp2222.py" -o packet-ncp2222.c
!ELSE
@echo Faking packet-ncp2222.c...
@echo Python is required to build the NCP disector
@echo Hiding packet-ncp.c...
mv packet-ncp.c packet-ncp.c.save
touch packet-ncp.c $@
!ENDIF
packet-ncp2222.obj: packet-ncp2222.inc
Hopefully this works for you too.