I have got the first problem solved. It was a file in thw wrong directory so the error message was misleading.
Anyway I've now got to the end "installing the framework" and I still get erros and warnings. Any ideas?
C:\pic18 demo\Firmware\main.c:455:Error [1105] symbol 'USB_BUS_SENSE' has not been defined
C:\pic18 demo\Firmware\main.c:702:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:705:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:813:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:814:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:816:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:820:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:828:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:828:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:832:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:832:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:836:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:836:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:840:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:840:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:846:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:847:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:854:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:855:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:857:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:861:Warning [2058] call of function without prototype
C:\pic18 demo\Firmware\main.c:986:Error [1105] symbol 'sw2' has not been defined
C:\pic18 demo\Firmware\main.c:995:Error [1105] symbol 'sw2' has not been defined
Halting build on first failure as requested.
----------------------------------------------------------------------
Release build of project `C:\pic18 demo\Firmware\USB Device - CDC - Basic Demo - C18 - PICDEM FSUSB.mcp' failed.
Language tool versions: mpasmwin.exe v5.54, mplink.exe v5.00, mcc18.exe v3.47, mplib.exe v5.00
Fri Jan 23 10:10:46 2015
----------------------------------------------------------------------
BUILD FAILED