Loading...
 

VSCP

Installation

I don't have Visual Studio on Windows so I'll try to build VSCP on Debian / Lenny.

apt-get install libwxgtk2.8-dev
apt-get install libwxgtk2.8-dbg
apt-get install libz-dev
apt-get install libssl-dev
#apt-get install libgtk2.0-dev
apt-get install g++


./configure --enable-unicode --enable-debug
make
su
make install
mkdir /etc/vscp
cp vscp.conf.linux.example /etc/vscp/vscpd.conf
cp vscpd.startup_script_debian /etc/init.d/vscpd


Problems

make install should install a config file in /etc/vscpd
make install should install a start script in /etc/init.d
vscpd.startup_script_debian should have proper headers for INIT
### BEGIN INIT INFO
# Provides: vscp
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop vscp daemon
### END INIT INFO

default logging should go to its own log file vs. syslog.



make install

/usr/bin/install -c canallogger.so /usr/local/lib
/usr/bin/install -c xapdrv.so /usr/local/lib
/usr/bin/install -c vscpl1.so /usr/local/lib
/usr/bin/install -c cancmd /usr/local/bin
make1: *** No rule to make target `../common/vscp.o', needed by `vscpcmd'. Stop.
/usr/bin/install -c vscpd /usr/local/bin
/bin/sh: line 0: cd: src/vscp/samles/cw: No such file or directory
/usr/bin/install -c mkpasswd /usr/local/bin




Compile and Install wxWindows

aptitude install pkg-config
aptitude install libgtk2.0-dev

wget http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.10.tar.gz
tar zxf wxWidgets-2.8.10.tar.gz
cd wxWidgets-2.8.10
./configure --enable-unicode --enable-richtext --enable-debug
make
make install


./configure --help






Remember to add the path to /usr/local/lib to /etc/ld.so.conf.d/i486-linux-gnu.conf and then issue "ldconfig"
after installing the libs.


Install from svn



mkdir ~/vscp
cd ~/vscp
svn checkout https://m2m.svn.sourceforge.net/svnroot/m2m/trunk
cd ~/vscp/trunk
aclocal
autoreconf -i
./configure --enable-unicode --enable-debug
make
su
make install
mkdir /etc/vscp
cp vscp.conf.linux.example /etc/vscp/vscpd.conf
cp vscpd.startup_script_debian /etc/init.d/vscpd





Contributors to this page: michael .
Page last modified on Wednesday 27 of January, 2010 10:09:45 CST by michael.