Startup Info For Developers: Difference between revisions
Appearance
Jonaspaulo (talk | contribs) |
Jonaspaulo (talk | contribs) |
||
| Line 41: | Line 41: | ||
To Run the | '''To Run the Device:''' | ||
1- cd /usr/src/lmce/LinuxMCE-0810/src/nameofdevice | 1- cd /usr/src/lmce/LinuxMCE-0810/src/nameofdevice | ||
2- ./nameofdevice -r dcerouter -d devicenumber | 2- ./nameofdevice -r dcerouter -d devicenumber | ||
Compile new changes in c++ code | '''Compile new changes in c++ code''' | ||
1- export SNR_LDFLAGS=" " | 1- export SNR_LDFLAGS=" " | ||
export SNR_CPPFLAGS="-DKDE-LinuxMCE" | export SNR_CPPFLAGS="-DKDE-LinuxMCE" | ||
(or insert the variables in the .profile file) | |||
2- cd /usr/src/lmce/LinuxMCE-0810/src/nameofdevice | 2- cd /usr/src/lmce/LinuxMCE-0810/src/nameofdevice | ||
| Line 58: | Line 59: | ||
Send Commands to Device: | '''Send Commands to Device:''' | ||
1- Log in via WebAdmin | 1- Log in via WebAdmin | ||
Revision as of 15:49, 4 May 2010
First Steps in making your own device driver (WIP)
1- sudo apt-get install pluto-dcegen
sudo apt-get install pluto-sql2cpp
sudo apt-get install build-essential
sudo apt-get install subversion
sudo apt-get install libmysqlclient15-dev
2- cd /usr/src
sudo mkdir lmce
sudo chown "youruser" lmce
cd lmce
3- svn co http://svn.linuxmce.org/svn/branches/LinuxMCE-0810/
4- cp /usr/pluto/lib/* /usr/src/lmce/LinuxMCE-0810/src/lib
5- export SNR_LDFLAGS=" "
SNR_CPPFLAGS="-DKDE-LinuxMCE"
6- Create the template via WebAdmin (add new device?)
7- Sqlcvs update to DCE via WebAdmin
8- cd to /usr/src/lmce/LinuxMCE-0810/src/DCEGen
and run DCEGen -d templatenumber
9- run usr/src/lmce/LinuxMCE-0810/src/sql2cpp
10- cd /usr/src/lmce/LinuxMCE-0810/src/nameofdevice
11- chmod +x post_make.sh and make bin
12- cp /src/nameofdevice /usr/pluto/bin
13- Add device via WebAdmin (advanced>configuration>devices)
To Run the Device:
1- cd /usr/src/lmce/LinuxMCE-0810/src/nameofdevice
2- ./nameofdevice -r dcerouter -d devicenumber
Compile new changes in c++ code
1- export SNR_LDFLAGS=" "
export SNR_CPPFLAGS="-DKDE-LinuxMCE"
(or insert the variables in the .profile file)
2- cd /usr/src/lmce/LinuxMCE-0810/src/nameofdevice
3- make bin
Send Commands to Device:
1- Log in via WebAdmin
2- Goto Advanced->Configuration->Devices
3- Select your device on the left panel
4- Select "Send Command to Device" on the right pane
Thanks to TSCHAKeee2