Don't comment the topic if you have a new question.
You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.
By radiolondra, 20 January, 2012
Hi,
I've some problems with the compilation of the Gurux component (I've not well understood how to do this job).
My goal is to use the components into my Delphi2007 RAD and do some tests (Readout and Profile) with a Landis+Gyr meter (equipped with RS232, GSM and TCP modules) in IEC and DLMS.
I've downloaded all the sources with Tortoisesvn.
I've installed the WTL80 and shared the relative include dir.
With VisualStudio 2010 I built the 3 dll (as indicated in the readme.txt file):
Gurux.Common.dll
GuruxCommon.dll
GXHyperLnk.dll
The 3 Dlls are now into the GXCom/Install/Files directory.
I've attempted to build the application also, but the build failed because they are seeking for other references from the "old" directory (?)
My question is:
1 - is there a documentation like "How to build all the stuffs"?
2 - after built the 3 dll, what I must build to create the ActiveX components?
3 - what I must build to compile the applications (DeviceEditor, DLMSDirector, Director, ...)?
We have ActiveX (COM) component from DLMS. You can use this component from Delphi.
We do not have component for IEC 62056-21. We have support to IEC 62056-21 in GXDeviceEditor. So, you can not use IEC component, but DLMS/COSEM you can.
1. and 2. No we do not have. Go to GXCom directory. There should be buildGuruxDeviceFramework.bat. Run that bat.
Note! You must run this from VisualStudio 2008 cmmand prompth.
Best way to get started is install GXDeviceEditor. It will install all nesessary things for you. After that you can add support for GuruxDLMS and TCP/IP and serial port components.
I've run the batch file (buildGuruxDeviceFramework_2010.bat) from the VS2010 command prompt. The Common build is OK.
But when it start to build the Core, I've the following error:
----------------------------------------------------------------------
Build Core components
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: Core\GuruxScriptParser\Development\GuruxScriptParser_2010.sln
Build failed!!!!!!
C:\Projects\GXCom>
The GuruxScriptParser project is not under the Core dir of GXCom.
Then I've copied it from the "old" dir and put into the Core dir of GXCom and run the batch again.
But I've the following errors:
C:\Projects\GXCom>ECHO Off
----------------------------------------------------------------------
Build common components
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
----------------------------------------------------------------------
Build Core components
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
2>C:\Projects\GXCom\Core\GuruxScriptParser\Development\Shared\GXVariant.h(
89): warning C4996: 'ATL::CComVariant::GetSize': GetSize has been replac
ed by GetSizeMax [C:\Projects\GXCom\Core\GuruxScriptParser\Development\G
uruxScriptParser.vcxproj]
2>C:\Projects\GXCom\Core\GuruxScriptParser\Development\Shared\GXVariant.h(
458): warning C4996: 'ATL::CComVariant::GetSize': GetSize has been repla
ced by GetSizeMax [C:\Projects\GXCom\Core\GuruxScriptParser\Development\
GuruxScriptParser.vcxproj]
2>c:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcom.h
(1994): error C2259: 'ATL::CComObject' : cannot instantiate abstra
ct class [C:\Projects\GXCom\Core\GuruxScriptParser\Development\GuruxScri
ptParser.vcxproj]
2>c:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcom.h
(1994): error C2259: 'ATL::CComObject' : cannot instantiate abstra
ct class [C:\Projects\GXCom\Core\GuruxScriptParser\Development\GuruxScri
ptParser.vcxproj]
2>c:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcom.h
(1994): error C2259: 'ATL::CComObject' : cannot instantiate abstra
ct class [C:\Projects\GXCom\Core\GuruxScriptParser\Development\GuruxScri
ptParser.vcxproj]
2>c:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcom.h
(1994): error C2259: 'ATL::CComObject' : cannot instantiate abstra
ct class [C:\Projects\GXCom\Core\GuruxScriptParser\Development\GuruxScri
ptParser.vcxproj]
2>c:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcom.h
(1994): error C2259: 'ATL::CComObject' : cannot instantiate abstra
ct class [C:\Projects\GXCom\Core\GuruxScriptParser\Development\GuruxScri
ptParser.vcxproj]
2>c:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcom.h
(1994): error C2259: 'ATL::CComObject' : cannot instantiate abstra
ct class [C:\Projects\GXCom\Core\GuruxScriptParser\Development\GuruxScri
ptParser.vcxproj]
Build failed!!!!!!
C:\Projects\GXCom>
Any idea? What can I do?
Many thanks in advance
Robert
Thanks Mikko, I will try from this point.
Anyway I hope the components will be available to build soon.
Thanks for your courtesy.
Have a nice evening
Robert
I'm trying to make Home Automation Devices to reduce consumption of electrical energy.
Can I use Gurux to implement DLMS/COSEM in my device? Does Gurux have such a product?
Before start
For Client example you should also create bin and obj -directories. Change Host name, port and DLMS settings for example. Run make and you are ready to test.
*******************************************************************************************
I did make then happen below failed. Do not know how to "Change Host name, port and DLMS settings for example", so did not do anything.
root@edc:/home/DLMS/Gurux.DLMS.c-master/GuruxDLMSServerExample# make
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
makefile:27: recipe for target 'bin/gurux.dlms.server.bin' failed
make: *** [bin/gurux.dlms.server.bin] Error 1
root@edc:/home/DLMS/Gurux.DLMS.c-master/GuruxDLMSServerExample#
How to build components
Hi,
We have ActiveX (COM) component from DLMS. You can use this component from Delphi.
We do not have component for IEC 62056-21. We have support to IEC 62056-21 in GXDeviceEditor. So, you can not use IEC component, but DLMS/COSEM you can.
1. and 2. No we do not have. Go to GXCom directory. There should be buildGuruxDeviceFramework.bat. Run that bat.
Note! You must run this from VisualStudio 2008 cmmand prompth.
Best way to get started is install GXDeviceEditor. It will install all nesessary things for you. After that you can add support for GuruxDLMS and TCP/IP and serial port components.
Let me know if you have any problems.
BR,
Mikko
How to build components
Hi Mikko,
thank you for your reply.
I've run the batch file (buildGuruxDeviceFramework_2010.bat) from the VS2010 command prompt. The Common build is OK.
But when it start to build the Core, I've the following error:
----------------------------------------------------------------------
Build Core components
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: Core\GuruxScriptParser\Development\GuruxScriptParser_2010.sln
Build failed!!!!!!
C:\Projects\GXCom>
The GuruxScriptParser project is not under the Core dir of GXCom.
Then I've copied it from the "old" dir and put into the Core dir of GXCom and run the batch again.
But I've the following errors:
C:\Projects\GXCom>ECHO Off
----------------------------------------------------------------------
Build common components
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
----------------------------------------------------------------------
Build Core components
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
2>C:\Projects\GXCom\Core\GuruxScriptParser\Development\Shared\GXVariant.h( ' : cannot instantiate abstra ' : cannot instantiate abstra ' : cannot instantiate abstra ' : cannot instantiate abstra ' : cannot instantiate abstra ' : cannot instantiate abstra
89): warning C4996: 'ATL::CComVariant::GetSize': GetSize has been replac
ed by GetSizeMax [C:\Projects\GXCom\Core\GuruxScriptParser\Development\G
uruxScriptParser.vcxproj]
2>C:\Projects\GXCom\Core\GuruxScriptParser\Development\Shared\GXVariant.h(
458): warning C4996: 'ATL::CComVariant::GetSize': GetSize has been repla
ced by GetSizeMax [C:\Projects\GXCom\Core\GuruxScriptParser\Development\
GuruxScriptParser.vcxproj]
2>c:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcom.h
(1994): error C2259: 'ATL::CComObject
ct class [C:\Projects\GXCom\Core\GuruxScriptParser\Development\GuruxScri
ptParser.vcxproj]
2>c:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcom.h
(1994): error C2259: 'ATL::CComObject
ct class [C:\Projects\GXCom\Core\GuruxScriptParser\Development\GuruxScri
ptParser.vcxproj]
2>c:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcom.h
(1994): error C2259: 'ATL::CComObject
ct class [C:\Projects\GXCom\Core\GuruxScriptParser\Development\GuruxScri
ptParser.vcxproj]
2>c:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcom.h
(1994): error C2259: 'ATL::CComObject
ct class [C:\Projects\GXCom\Core\GuruxScriptParser\Development\GuruxScri
ptParser.vcxproj]
2>c:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcom.h
(1994): error C2259: 'ATL::CComObject
ct class [C:\Projects\GXCom\Core\GuruxScriptParser\Development\GuruxScri
ptParser.vcxproj]
2>c:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlcom.h
(1994): error C2259: 'ATL::CComObject
ct class [C:\Projects\GXCom\Core\GuruxScriptParser\Development\GuruxScri
ptParser.vcxproj]
Build failed!!!!!!
C:\Projects\GXCom>
Any idea? What can I do?
Many thanks in advance
Robert
Build
Hi,
Sorry! It is our mistake.
We do not use VB script anymore and we have not removed it from
command prompt build.
We will fix this on next week.
Happy coding,
Mikko
How to build components
Hi Mikko,
do you have x86 already built components? So, in the meantime, I could test them.
Many thanks in advance
Robert
Build
Hi Robert,
Install GXDLMSDirector, GXDeviceEditor or GXDirector from here:
http://www.gurux.fi/Downloads
Fastest way to get started with LG and DLMS is install GXDLSMDirector.
BR,
Mikko
Thanks Mikko, I will try from
Thanks Mikko, I will try from this point.
Anyway I hope the components will be available to build soon.
Thanks for your courtesy.
Have a nice evening
Robert
Using Gurux in Devices
Dear Friends;
I'm trying to make Home Automation Devices to reduce consumption of electrical energy.
Can I use Gurux to implement DLMS/COSEM in my device? Does Gurux have such a product?
Thanks.
Awaiting for your quick reply.
Using Gurux in Devices
Hi,
You can DLMS/COSEM component to do it.
We are just making new version fro GuruxAMI that can be run on Linux and
it supports other protocols as well.
BR,
Mikko
how to build Client example using C
Before start
For Client example you should also create bin and obj -directories. Change Host name, port and DLMS settings for example. Run make and you are ready to test.
*******************************************************************************************
I did make then happen below failed. Do not know how to "Change Host name, port and DLMS settings for example", so did not do anything.
root@edc:/home/DLMS/Gurux.DLMS.c-master/GuruxDLMSServerExample# make
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
makefile:27: recipe for target 'bin/gurux.dlms.server.bin' failed
make: *** [bin/gurux.dlms.server.bin] Error 1
root@edc:/home/DLMS/Gurux.DLMS.c-master/GuruxDLMSServerExample#