Hi all,
After going through more of the LCDproc documentation, it looks to me as
though it can mostly be made an ordinary dependent package of EMC, like
tk/tcl, python or ncurses. LCDproc itself is split into servers and clients,
where only the server needs to be included and where clients would be added
the same way as any other EMC user interface (tkemc, axis, etc). Optionally,
only the drivers supported by these user interfaces could be included, or
more generically, include all of them.
What is above my pay grade at this point is how EMC itself gets packaged. I
did not find instructions for that on linuxcnc.org. The instructions for
packaging LCDproc are as follows:
-- CREATING DISTRIBUTION SPECIFIC PACKAGES --------------------------
Instead of manually configuring, compiling and installing LCDproc you
may use the support files in the LCDproc source tree to create an
installation package specific to your distribution
Debian:
- Rename the .tgz file with the sources to lcdproc_VERSION.orig.tar.gz
cp lcdproc-VERSION.tgz lcdproc_VERSION.orig.tar.gz
- Extract the source tar ball
tar xvzf lcdproc_VERSION.orig.tar.gz
- Copy the debian/ directory below scripts/ to the root of the
source tree
cp -a lcdproc-VERSION/scripts/debian lcdproc-VERSION/
- Generate .deb debian package
cd lcdproc-VERSION/
dpkg-buildpackage -rfakeroot -sd
cd ..
This creates a file named lcdproc_VERSION-RELEASE_ARCH.deb
that contains the LCDproc suite as a regular Debian package.
------------------------------------------------------------------------
Then to run the server at startup (I assume a similar script can be run by
scripts/emc to have it startup with EMC):
-- PUTTING LCDPROC IN SYSTEM STARTUP -----------------------------------
It's nice to have LCDproc start when the computer boots, so here's how
to do it:
WARNING: Make sure you have modified the configuration file (/etc/LCDd.conf)
so that LCDd enters the background mode.
Otherwise LCDd will lock your system.
Debian: (the easy way)
- Install the previously created .deb package (as root)
dpkg -i lcdproc_VERSION-RELEASE_ARCH.deb
--------------------------------------------------------------------------
I know I am going to be getting in way over my head here, but can someone
point me to how the EMC packages are built, and thus how I would go about
including LCDproc as a dependency for EMC. (Note: By EMC I really am
referring exclusively to EMC2). I have played around with dpkg and related
programs a little, but I have never created a package of my own.
Thanks,
Eric
> After digging through the documentation a little more, what I
> see is that
> lcdproc is distributed as debian packages, which should make
> integrating
> with EMC fairly easy. Further, the interface is via a
> standard tcp socket.
> Thus no language specific interface is required, although a
> common interface
> module could be written to standardize the interface between
> lcdproc and
> EMC.
>
> Thus from the perspective of EMC, it could include just the
> binary package,
> or create a sub-branch which includes all of the lcdproc
> source code too.
> Unlike classic ladder, it appears that no modifications to
> lcdproc would be
> required to use it with EMC. Which means the latest binaries
> should always
> be compatible, unless of course an upgrade was made which
> broke backwards
> compatibility.
>
> What would be the recommended approach, from the perspective
> of the EMC
> source code? Obviously the binary install would include just
> the binaries.
> But should the lcdproc source code be included with the EMC
> source code, or
> should that always run from the binaries, and just reference
> lcdproc as a
> separate open source project?
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers