Startup Info For Developers: Difference between revisions
Appearance
Langstonius (talk | contribs) No edit summary |
Langstonius (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
[[Category: Tutorials]] | [[Category: Tutorials]] | ||
{{versioninfo|0810status Current}} | {{versioninfo|0810status=Current}} | ||
== '''First Steps in making your own device driver''' == | == '''First Steps in making your own device driver''' == | ||
Revision as of 19:59, 8 October 2010
| Version | Status | Date Updated | Updated By |
|---|---|---|---|
| 710 | Unknown | N/A | N/A |
| 810 | Unknown | N/A | N/A |
| 1004 | Unknown | N/A | N/A |
| 1204 | Unknown | N/A | N/A |
| 1404 | Unknown | N/A | N/A |
| Usage Information | |||
First Steps in making your own device driver
sudo apt-get install pluto-dcegen pluto-sql2cpp build-essential subversion libmysqlclient15-dev
cd /usr/src
sudo mkdir lmce
sudo chown "youruser" lmce
cd lmce
svn co http://svn.linuxmce.org/svn/branches/LinuxMCE-0810/
cp /usr/pluto/lib/* /usr/src/lmce/LinuxMCE-0810/src/lib
These two lines are no longer needed as the source tree has been pre-prepped.
export SNR_LDFLAGS=" "
SNR_CPPFLAGS="-DKDE-LinuxMCE"
Create the template via WebAdmin (add new device?)
Sqlcvs update to DCE via WebAdmin
cd to /usr/src/lmce/LinuxMCE-0810/src/DCEGen
and run DCEGen -d templatenumber
run usr/src/lmce/LinuxMCE-0810/src/nameofdevice/sql2cpp
cd /usr/src/lmce/LinuxMCE-0810/src/nameofdevice
chmod +x post_make.sh and make bin
cp /src/nameofdevice /usr/pluto/bin
Add device via WebAdmin (advanced>configuration>devices)
To Run the Device:
cd /usr/src/lmce/LinuxMCE-0810/src/nameofdevice
./nameofdevice -r dcerouter -d devicenumber
Compile new changes in c++ code
export SNR_LDFLAGS=" "
export SNR_CPPFLAGS="-DKDE-LinuxMCE"
(or insert the variables in the .profile file)
cd /usr/src/lmce/LinuxMCE-0810/src/nameofdevice
make bin
Send Commands to Device:
- Log in via WebAdmin
- Goto Advanced->Configuration->Devices
- Select your device on the left panel
- Select "Send Command to Device" on the right pane
Thanks to TSCHAKeee2