2009-05-26

Setup Dual Head for EeePC with Ubuntu


  1. refer to How to setup Dual Head for Intel Graphics with RandR 1.2
  2. edit /etc/X11/xorg.conf for Section "Screen"
    SubSection "Display"
    Depth 32

    Virtual 2048 2048

    EndSubSection

  3. restart X with "ctrl-alt-backspace"
  4. confirm the maximum "Screen 0" size is 2048x2048 with "xrandr -q"
  5. set the screen layout
    xrandr --output VGA --pos 0x0
    xrandr --output LVDS --pos 0x1024

EeePC model: 904
Linux distribution: Ubuntu 8.04 LTS

2009-05-04

Build EMC2 on CentOS 5.3 (x86_64)

Required packages:
  • pth-devel
  • bwidget
  • tcl-devel
  • tk-devel
  • libtermcap-devel
  • readline-devel
  • libXmu-devel
  • tkinter
sudo yum install pth-devel bwidget tcl-devel tk-devel libtermcap-devel readline-devel libXmu-devel tkinter
cd /usr/share/tcl8.4; sudo ln -sf ../../share/bwidget1.8.0 BWidget

edit src/hal/utils/Submakefile
  1. locate for ../bin/halrmt
  2. remove $(READLINE_LIBS) from its dependent list
  3. add $(READLINE_LIBS) to "@$(CXX) $(LDFLAGS) -o $@ $^ -lpthread"


../bin/halrmt: $(call TOOBJS, $(HALRMTSRCS)) ../lib/libemcini.so.0 ../lib/libnml.so.0 ../lib/libemchal.so.0
$(ECHO) Linking $(notdir $@)
@$(CXX) $(LDFLAGS) -o $@ $^ -lpthread $(READLINE_LIBS)


cd src
./configure --enable-simulator --enable-run-in-place
make
cd ../; . ./scripts/emc-environment
unset LD_LIBRARY_PATH # to disable incorrect xilinx library search path
emc

2009-05-03

Build EMC2 on Windwos

1. GNU PTH Library
2. BWidget:
  • download BWidget-*.tar.bz2 from tclib.sf.net
  • uncompress and copy it to /usr/share/BWidget
  • verify the installation with 'tclsh'
  • % set auto_path
  • % package require BWidget
Build emc2
  1. cd src
  2. ./configure --enable-simulator --enable-run-in-place
  3. make (stuck at here: cannot build libnml on Windows)
    # Before running the software, set the emc environment:
    # . (top dir)/scripts/emc-environment
    # To run the software type
    # emc
  4. libnml is forked from rcslib
  5. rcslib can be built with MinGW; cannot be built with cygwin
  6. replace libnml with rcslib?
  7. port libnml to cygwin?
  8. skip emc2 and try orocos?