Tried to make Gurux.DLMS.cpp\GuruxDLMSClientExample
First the error appeared:
In file included from src/../include/../../development/include/GXDLMSSettings.h:41,
from src/../include/../../development/include/GXDLMS.h:42,
from src/../include/../../development/include/GXDLMSClient.h:38,
from src/../include/../../development/include/GXDLMSSecureClient.h:38,
from src/../include/communication.h:68,
from src/communication.cpp:35:
src/../include/../../development/include/GXPlcSettings.h:40:10: fatal error: GXByteBuffer.h: No such file or directory
#include "GXByteBuffer.h"
In folder /development/include/folder contains only the GXBytebuffer.h file. I copied it to GXByteBuffer.h. Because the code also needs a file with a small "b".
An error occurred during assembly:
src/communication.cpp: In member function ‘int CGXCommunication::Open(const char*, int)’:
src/communication.cpp:588:13: error: ‘iec’ was not declared in this scope
if (iec)
^~~
make: *** [makefile:31: obj/communication.o] Error 1
I have not been able to make project. How do I fix the error?
Hi,
Hi,
Thank you for pointing this out. I made an issue from this and this is now in testing.
https://www.gurux.fi/node/18509
Change this line:
if (iec)
to
if (m_Parser->GetInterfaceType() == DLMS_INTERFACE_TYPE_HDLC_WITH_MODE_E)
The new version is released today.
BR,
Mikko
Thanks for the answer.
Thanks for the answer.
OK. I'll download the new version, check it out tomorrow!
The previous errors
The previous errors disappeared, the following appeared:
/usr/bin/ld: cannot find -lgurux_dlms_cpp
collect2: error: ld returned 1 exit status
make: *** [makefile:27: bin/gurux.dlms.client.bin] Error 1
I solved the problem.
I solved the problem.
https://www.gurux.fi/comment/11416#comment-11416
I went back and build the development project first , then resumed the server example build , and this time linker found it
Thanks, Mr Kurumi!