<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Richard and All<br>
<br>
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. <br>
<br>
Step1: include following head file in com_gloabls.hpp<br>
#include <string><br>
#include <cstring><br>
#include <sstream><br>
#include <stdlib.h><br>
#include <typeinfo><br>
#include <algorithm><br>
#include <vector><br>
<br>
Step2: add EoF Macro in com_gloabls.hpp<br>
#define EOF (-1)<br>
If you do not step1 and step2, gcc will have problem to compile know
abs(), sort() and EOF so on. <br>
<br>
Step3: I also went through the following command. <br>
# cd /opt/etherlab<br>
note: here the command copy local dls to system init.d folder<br>
# cp etc/init.d/dls /etc/init.d/dls<br>
# cp etc/sysconfig/dls /etc/sysconfig/dls<br>
# cp etc/profile.d/dls /etc/profile.d/dls<br>
<b># insserv dls<br>
</b>Note: while run insserv dls command, there are bunch warnings. You
can ignore of that. <br>
<br>
Step4: start dls service.<br>
>>sudo /etc/init.d/dls start<br>
: Shutting down DLS Daemon done<br>
: Starting DLS Daemon dead<br>
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. <br>
<br>
Step5: configure dls channels in dls_ctl function<br>
>> cd /usr/local/src/dls-1.1-r160/src <br>
>> ./dls_ctl<br>
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. <br>
<br>
Step6:<br>
Run dls_view function to view and export your data. <br>
>>./dls_view <br>
The operation here is simple, you should be able to work it out without
knowing Germany. <br>
<br>
Good luck with your DLS installation. And let me know I can help at
some points. <br>
<br>
Jayson<br>
<br>
<br>
<blockquote cite="mid:201011301331.36099.ha@igh-essen.com" type="cite">
<pre wrap="">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:
</pre>
<blockquote type="cite">
<pre wrap="">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
</pre>
<blockquote type="cite">
<pre wrap="">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:
</pre>
<blockquote type="cite">
<pre wrap="">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
</pre>
</blockquote>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>