|
Re: Wrong decoding of matched / unmatched messages paths in log files [message #1833362 is a reply to message #1833350] |
Sun, 11 October 2020 10:50 |
|
Hi Michael,
I tried to compile on an Ubuntu 18.04 machine, but the compilation fails with
:
g++ -c -DLINUX -I. -I/home/james00/titan.core/Install/include -I. -I../src -Wall -O2 -o J1939_Isobus_test_decoder_debug.o J1939_Isobus_test_decoder_debug.cc
g++ -c -DLINUX -I. -I/home/james00/titan.core/Install/include -I. -I../src -Wall -O2 -o Isobustest_test_encoder.o Isobustest_test_encoder.cc
g++ -c -DLINUX -I. -I/home/james00/titan.core/Install/include -I. -I../src -Wall -O2 -o SocketCAN_PT.o ../src/SocketCAN_PT.cc
../src/SocketCAN_PT.cc:19:10: fatal error: linux/can/j1939.h: No such file or directory
#include <linux/can/j1939.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:177: recipe for target 'SocketCAN_PT.o' failed
make: *** [SocketCAN_PT.o] Error 1
Are there maybe some missing requirements possibly not listed in README.md?
BR
Elemer
|
|
|
Re: Wrong decoding of matched / unmatched messages paths in log files [message #1833364 is a reply to message #1833362] |
Sun, 11 October 2020 14:17 |
Michael Josenhans Messages: 99 Registered: February 2016 |
Member |
|
|
Hi Elemer,
your kernel is too old. Your SocketCAN implementation does not yet provide the j1939 interface file "linux/can/j1939.h".
But in this case this should not be a problem, as the example used in does not use the j1939 SockectCAN test port to demonstrate the bug.
ttcn3_start SocketCAN J1939.cfg J1939_Isobus_test_decoder_debug.tc_can_j1939_IsobusVtEcuSimulationDebug
To compile the SocketCAN test port without J1939 interface the file "SocketCAN_PT.cc" provides a define:
In file /src/SocketCAN_PT.cc line 17 please uncomment:
#define CANJ1939_SUPPORT
to:
//#define CANJ1939_SUPPORT
However, there are 2 newer sections in the file, which I have forgotten to wrap with
#ifdef CANJ1939_SUPPORT
...
#endif //CANJ1939_SUPPORT
This needs to be fixed in future releases.
Therefore it is easiest, if you replace the "SocketCAN_PT.cc" with the attached file. Then it should compile through.
[Updated on: Sun, 11 October 2020 14:20] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03752 seconds