Hari,
I am struggling a little getting this to work but I have written down everything I did as I was going to update the Wiki page, here goes:
1. install this package: 'sudo apt-get install libmysqlclient-dev'
You may receive the following message:
"Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libmysqlclient-dev is a virtual package provided by:
libmysqlclientXX-dev 5.0.67-0ubuntu6.1
You should explicitly select one to install.
E: Package libmysqlclient-dev has no installation candidate"
if you do receive this message the re-run the command replacing the your original command with the start of line 4 of the message, for example: 'sudo apt-get install libmysqlclientXX-dev'
2. go to
http://sourceforge.net/projects/owfs/files/owfs and find out what the latest package is, for me that was 'owfs-2.8p5.tar.gz' in directory '
http://sourceforge.net/projects/owfs/files/owfs/2.8p5/' (i.e.
http://sourceforge.net/projects/owfs/files/owfs/2.8p5/owfs-2.8p5.tar.gz - we will use this later) I will use
http://sourceforge.net/projects/owfs/files/owfs/XXXXX/owfs-XXXXX.tar.gz in the steps.
2. follow the code below, you may have to have root privileges so use 'sudo' in front of the follow code:
cd /usr/src
wget http://sourceforge.net/projects/owfs/files/owfs/XXXXX/owfs-XXXXX.tar.gz
tar zxpf owfs-XXXXX.tar.gz
cd owfs-XXXXX
./configure
make
make install
(from Hari's post in the forum -
http://forum.linuxmce.org/index.php?topic=11328.0)
sudo -i
cd /usr/src/
svn co http://svn.linuxmce.org/svn/branches/LinuxMCE-0810/src LinuxMCE-0810/src
cp /usr/pluto/lib/* LinuxMCE-0810/src/lib
cd LinuxMCE-0810/src/OneWire
make bin
I get some errors at this point:
Computing dependencies for ../Gen_Devices/OneWireBase.cpp done
Computing dependencies for OneWire.cpp done
Computing dependencies for Main.cpp done
g++ -c -I.. -I../DCE -I/usr/include/mysql -DKDE_LMCE -DDEBUG -DTHREAD_LOG -DLOG_ALL_QUERIES -I/opt/owfs/include -Wall -fPIC -ggdb3 Main.cpp -o Main.o
g++ -c -I.. -I../DCE -I/usr/include/mysql -DKDE_LMCE -DDEBUG -DTHREAD_LOG -DLOG_ALL_QUERIES -I/opt/owfs/include -Wall -fPIC -ggdb3 OneWire.cpp -o OneWire.o
OneWire.cpp:26:21: error: owcapi.h: No such file or directory
OneWire.cpp: In member function ‘virtual bool DCE::OneWire::GetConfig()’:
OneWire.cpp:74: error: ‘OW_init’ was not declared in this scope
OneWire.cpp: In member function ‘virtual void DCE::OneWire::readDevices()’:
OneWire.cpp:243: error: ‘OW_get’ was not declared in this scope
make: *** [OneWire.o] Error 1
Any ideas what went wrong?