[etherlab-users] Make error while installing the data logging service(dls)
Jayson
ding at mekabot.com
Fri Dec 10 01:15:52 CET 2010
Hi Richard and All
Thank you for helping me out on installing DLS package. The current
version on the website is quite old and I had to fix quite a few bug in
order to make it run. Fortunately, I made it work. I am posting here for
other folks' information.
Step1: include following head file in com_gloabls.hpp
#include <string>
#include <cstring>
#include <sstream>
#include <stdlib.h>
#include <typeinfo>
#include <algorithm>
#include <vector>
Step2: add EoF Macro in com_gloabls.hpp
#define EOF (-1)
If you do not step1 and step2, gcc will have problem to compile know
abs(), sort() and EOF so on.
Step3: I also went through the following command.
# cd /opt/etherlab
note: here the command copy local dls to system init.d folder
# cp etc/init.d/dls /etc/init.d/dls
# cp etc/sysconfig/dls /etc/sysconfig/dls
# cp etc/profile.d/dls /etc/profile.d/dls
*# insserv dls
*Note: while run insserv dls command, there are bunch warnings. You can
ignore of that.
Step4: start dls service.
>>sudo /etc/init.d/dls start
: Shutting down DLS Daemon done
: Starting DLS Daemon dead
Note: the DLS server will dead after a couple of second. I do not know
why DLS daemon is dead. But it does not hurt. In addition before start
the dls service, you need to make sure your real time process and
etherlab buddy are both running correctly.
Step5: configure dls channels in dls_ctl function
>> cd /usr/local/src/dls-1.1-r160/src
>> ./dls_ctl
You need to configure your ip address and adding channels here (You
probably have to know some Germany to work it out.). You can also start
the stop data logging at here.
Step6:
Run dls_view function to view and export your data.
>>./dls_view
The operation here is simple, you should be able to work it out without
knowing Germany.
Good luck with your DLS installation. And let me know I can help at some
points.
Jayson
> Hi Jayson,
>
> OK, the version you have is quite old. I will try to post a new version on the
> homepage. Meanwhile you can try adding
> #include<cstring>
> to com_file.cpp. Hope that does the trick.
>
> - Richard
>
> On Monday 29 November 2010 19:12:48 Jayson Ding wrote:
>
>> Hello Richard
>> Thank you for the quick reply. I tried to add #include<cstdio> in
>> com_time.cpp file.
>> It generates more errors as following:
>> Any hint about how to fix it. Thank you!
>> Jayson
>>
>> make[2]: Entering directory `/usr/local/src/dls-1.1-r160/src'
>> g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -g -O2 -MT
>> libcomdls_a-com_time.o -MD -MP -MF .deps/libcomdls_a-com_time.Tpo -c -o
>> libcomdls_a-com_time.o `test -f 'com_time.cpp' || echo './'`com_time.cpp
>> mv -f .deps/libcomdls_a-com_time.Tpo .deps/libcomdls_a-com_time.Po
>> g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -g -O2 -MT
>> libcomdls_a-com_file.o -MD -MP -MF .deps/libcomdls_a-com_file.Tpo -c -o
>> libcomdls_a-com_file.o `test -f 'com_file.cpp' || echo './'`com_file.cpp
>> com_file.cpp: In member function ‘void COMFile::open_read(const char*)’:
>> com_file.cpp:72: error: ‘strerror’ was not declared in this scope
>> com_file.cpp: In member function ‘void COMFile::open_read_write(const
>> char*)’:
>> com_file.cpp:110: error: ‘strerror’ was not declared in this scope
>> com_file.cpp:117: error: ‘strerror’ was not declared in this scope
>> com_file.cpp:128: error: ‘strerror’ was not declared in this scope
>> com_file.cpp: In member function ‘void COMFile::open_read_append(const
>> char*)’:
>> com_file.cpp:168: error: ‘strerror’ was not declared in this scope
>> com_file.cpp:175: error: ‘strerror’ was not declared in this scope
>> com_file.cpp:186: error: ‘strerror’ was not declared in this scope
>> com_file.cpp: In member function ‘void COMFile::close()’:
>> com_file.cpp:212: error: ‘strerror’ was not declared in this scope
>> com_file.cpp:226: error: ‘strerror’ was not declared in this scope
>> com_file.cpp: In member function ‘void COMFile::write(const char*,
>> unsigned int)’:
>> com_file.cpp:293: error: ‘strerror’ was not declared in this scope
>> com_file.cpp:298: error: ‘strerror’ was not declared in this scope
>> com_file.cpp: In member function ‘void COMFile::append(const char*,
>> unsigned int)’:
>> com_file.cpp:373: error: ‘strerror’ was not declared in this scope
>> com_file.cpp:378: error: ‘strerror’ was not declared in this scope
>> com_file.cpp: In member function ‘void COMFile::seek(unsigned int)’:
>> com_file.cpp:423: error: ‘strerror’ was not declared in this scope
>> com_file.cpp: In member function ‘void COMFile::read(char*, unsigned
>> int, unsigned int*)’:
>> com_file.cpp:460: error: ‘strerror’ was not declared in this scope
>> com_file.cpp: In member function ‘long long int COMFile::calc_size()’:
>> com_file.cpp:492: error: ‘strerror’ was not declared in this scope
>> make[2]: *** [libcomdls_a-com_file.o] Error 1
>> make[2]: Leaving directory `/usr/local/src/dls-1.1-r160/src'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/usr/local/src/dls-1.1-r160'
>> make: *** [all] Error 2
>>
>>
>>> Hello
>>>
>>> gcc is getting stricter all the time...
>>>
>>> I have not tried it out myself, but adding
>>> #include<cstdio>
>>> in the top section of com_time.cpp should help
>>>
>>> - Richard
>>>
>>> On Monday 29 November 2010 00:38:37 Jayson Ding wrote:
>>>
>>>> Dear all
>>>> I tried to install Data logging service on my ubuntu. But I was stuck in
>>>> the following make error.
>>>> Can anyone help me out? thank you.
>>>>
>>>> make all-recursive
>>>> make[1]: Entering directory `/usr/local/src/dls-1.1-r160'
>>>> Making all in src
>>>> make[2]: Entering directory `/usr/local/src/dls-1.1-r160/src'
>>>> g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -g -O2 -MT
>>>> libcomdls_a-com_time.o -MD -MP -MF .deps/libcomdls_a-com_time.Tpo -c -o
>>>> libcomdls_a-com_time.o `test -f 'com_time.cpp' || echo './'`com_time.cpp
>>>> com_time.cpp: In member function ‘std::string COMTime::to_real_time()
>>>> const’:
>>>> *com_time.cpp:416: error: ‘sprintf’ was not declared in this scope*
>>>> make[2]: *** [libcomdls_a-com_time.o] Error 1
>>>> make[2]: Leaving directory `/usr/local/src/dls-1.1-r160/src'
>>>> make[1]: *** [all-recursive] Error 1
>>>> make[1]: Leaving directory `/usr/local/src/dls-1.1-r160'
>>>> make: *** [all] Error 2
>>>>
>>>> While configuring DLS, I installed fltk, FFTW3 ,and bunch of relevant
>>>> libs in order to pass the configuration.
>>>> My system environment is:
>>>>
>>>> linux: 2.6.32.11
>>>> rtai:3.8.1
>>>> etherlab: 1.3-pre
>>>> matlab: 7.4.0.336
>>>> realtime workshop: 6.6
>>>>
>>>> In addition, both data logging service package's software and doc are in
>>>> German.
>>>> Does anyone have me some english support?
>>>>
>>>> Jayson
>>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20101209/36fce67c/attachment-0002.htm>
More information about the Etherlab-users
mailing list