buhhe / VolvoPenta-N2K_Interface

GNU General Public License v3.0
14 stars 8 forks source link

Compilation Error... #2

Closed woodstock37s closed 1 year ago

woodstock37s commented 1 year ago

Hi, I am trying to buildt the VP Interface, but keep getting an error message while compiling. _....\VolvoPenta-N2K_Interface-main\libraries\Aruino_CAN_BUS_MCP2515-master/mcp_can.h:105:10: note: candidate expects 2 arguments, 3 provided

exit status 1

Compilation error: 'MCPANY' was not declared in this scope

I am a rookie...so maybe I have done something wrong? I am using Arduino IDE and did install the NMEA and CAN libraries out of the zip files.

Thank you

buhhe commented 1 year ago

Hi woodstock37s, there are two issues in the pathname of your mcp_can.h which are somewhat strange.

_....\VolvoPenta-N2K_Interface-main\libraries\Aruino_CAN_BUS_MCP2515-master/mcp_can.h ^1^ ^2^

1: It should be Arduino, not Aruino (missing 'd') 2: Supposing you are using a windows environment that should be a backslash not a slash like the other backslaches.

Pls. check if you can open mcp_can.h using that pathname. If yes pls. send me a copy of your mcp_can.h.Maby it differs from mine.

woodstock37s commented 1 year ago

Thank you for answering! I have used the mcp_can.h from the two sources mentioned in the pdf. tried both. I attached the fulll error log file and the two library.zips I have tried

Aruino_CAN_BUS_MCP2515-master.zip from https://github.com/coryjfowler CAN_BUS_Shield-master.zip from https://github.com/ttlappalainen/CAN_BUS_Shield

. CompileErrorLog.txt

woodstock37s commented 1 year ago

when I use the coryjfowler / MCP_CAN_lib it works....