Difference between revisions of "Startup Info For Developers"

From LinuxMCE
Jump to: navigation, search
m ('''First Steps in making your own device driver''' (WIP))
m ('''First Steps in making your own device driver''' (WIP))
Line 14: Line 14:
 
       cp /usr/pluto/lib/* /usr/src/lmce/LinuxMCE-0810/src/lib
 
       cp /usr/pluto/lib/* /usr/src/lmce/LinuxMCE-0810/src/lib
  
5- export SNR_LDFLAGS=" "
+
      export SNR_LDFLAGS=" "
 
       SNR_CPPFLAGS="-DKDE-LinuxMCE"
 
       SNR_CPPFLAGS="-DKDE-LinuxMCE"
  
 +
Create the template via WebAdmin (add new device?)
  
6- Create the template via WebAdmin (add new device?)
+
Sqlcvs update to DCE via WebAdmin
  
7-  Sqlcvs update to DCE via WebAdmin
+
        cd to /usr/src/lmce/LinuxMCE-0810/src/DCEGen  
 
+
8-  cd to /usr/src/lmce/LinuxMCE-0810/src/DCEGen  
+
 
         and run DCEGen -d templatenumber
 
         and run DCEGen -d templatenumber
  
9-  run usr/src/lmce/LinuxMCE-0810/src/sql2cpp
+
        run usr/src/lmce/LinuxMCE-0810/src/sql2cpp
  
10-  cd /usr/src/lmce/LinuxMCE-0810/src/nameofdevice
+
        cd /usr/src/lmce/LinuxMCE-0810/src/nameofdevice
  
11-  chmod +x post_make.sh and make bin
+
      chmod +x post_make.sh and make bin
  
12- cp /src/nameofdevice /usr/pluto/bin
+
      cp /src/nameofdevice /usr/pluto/bin
  
13- Add device via WebAdmin (advanced>configuration>devices)
+
Add device via WebAdmin (advanced>configuration>devices)
  
  

Revision as of 19:57, 4 May 2010

First Steps in making your own device driver (WIP)

      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
      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/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:

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