#1 2009-08-03 13:52:40
LCD4LINUX支援VNC了(PPC可以當LCD囉)
LCD4LINUX支援的DISPLAY.
LCD4LINUX VNC driver還有支援0~6個按鍵功能及HTTP JAVA連線.
lcd4linux-0.11.0(vnc).tar.gz包含lcd4linux、lcd4linux.conf、VncViewer.jar(libvncservers)、vncviewer.exe(VNC Client,PC和PPC都可以用),請下載到/opt後解壓縮(tar -zxvf lcd4linux.tar.gz),再執行/opt/etc/lcd4linux即可(vnc port為5900,http port為81,例如:http://192.168.1.1:81/).
如果執行lcd4linux出現security error: group or other have access to '/opt/etc/lcd4linux.conf',請調整一下lcd4linux.conf的檔案屬性(chmod 600 /opt/etc/lcd4linux.conf).
DIY流程:
1.建立編譯的環境:
ipkg install buildroot
ipkg install make
ipkg install automake
ipkg install autoconf
2.下載uinput.h檔案:
因為編譯過程會用到2.4.20核心沒有的uinput.h檔(lcd4linux-0.11.0(vnc).tar.gz裡面也有一個uinput.h)
請將uinput.h放到/opt/include/linux目錄下
3.下載LCD4LINUX原始檔:
原始網站或便當狗
4.部份不相容的driver修正:
可參考OpenWrt
100-drv_RouterBoard.patch
120-remove_parport_outb.patch
140-no_repnop_T6963.patch
160-uinput_defs.patch
5.修改內定lcd4linux.conf路徑:
開啟lcd4linux.c,將所有/etc/lcd4linux.conf改為/opt/etc/lcd4linux.conf
6.編譯產生lcd4linux執行檔:
在lcd4linux原始檔目錄
執行./configure產生Makefile
(執行./configure -h會相關說明,./configure --with-drivers=VNC則編譯後僅支援VNC)
執行make產生lcd4linux執行檔
7.建立及修改lcd4linux.conf:
請參考原始網站或原始檔裡面也有
最後修改: ardayang (2009-08-05 23:43:32)
離線
#4 2009-08-08 23:17:13
Re: LCD4LINUX支援VNC了(PPC可以當LCD囉)
ardayang 提到:
(恕刪)
2.下載uinput.h檔案:
因為編譯過程會用到2.4.20核心沒有的uinput.h檔(lcd4linux-0.11.0(vnc).tar.gz裡面也有一個uinput.h)
請將uinput.h放到/opt/include/linux目錄下
請問lcd4linux-0.11.0(vnc).tar.gz解壓縮後, 在\etc\x11vnc-0.9.8\x11vnc\uinput.h與uinput.h內容不相同, 要使用哪一個?
ardayang 提到:
(恕刪)
4.部份不相容的driver修正:
可參考OpenWrt
100-drv_RouterBoard.patch
120-remove_parport_outb.patch
140-no_repnop_T6963.patch
160-uinput_defs.patch
若只針對VNC, drv_RouterBoard.c, drv_generic_parport.c, drv_G15.c.是否也要修改? 150-addlibmpdclient.patch是否也要加入?
離線
#6 2009-08-08 23:58:52
Re: LCD4LINUX支援VNC了(PPC可以當LCD囉)
離線
#8 2009-08-09 16:52:33
Re: LCD4LINUX支援VNC了(PPC可以當LCD囉)
是的, 有按鍵輸入, 更可惡搞了.
現在要產生Makefile遇到問題:
$ ./configure
checking for a BSD-compatible install... /opt/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/bin/mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /opt/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking if malloc debugging is wanted... no
checking for log in -lm... yes
checking for grep that handles long lines and -e... configure: error: no acceptable grep could be found in /opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/xpg4/bin
#4066, 判斷$ac_cv_path_GREP是否空字串. 我想, 這是韌體內建的grep命令(BusyBox)不支援一些參數(例如: --version, -e等)所導致. 請問ardayang兄有沒有解決方法? 還是說, 經由Debian來處理?
離線
#9 2009-08-09 19:40:09
Re: LCD4LINUX支援VNC了(PPC可以當LCD囉)
hippo 提到:
是的, 有按鍵輸入, 更可惡搞了.
現在要產生Makefile遇到問題:...(恕刪) checking for grep that handles long lines and -e... configure: error: no acceptable grep could be found in /opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/xpg4/bin
#4066, 判斷$ac_cv_path_GREP是否空字串. 我想, 這是韌體內建的grep命令(BusyBox)不支援一些參數(例如: --version, -e等)所導致. 請問ardayang兄有沒有解決方法? 還是說, 經由Debian來處理?
我是用更新過的BusyBox v1.10.3,您可以更新後試看看(ipkg install busybox).
目前都是在asus wl-500gp (Linux ardalan 2.4.20 #18 Sun Mar 30 13:13:29 MSD 2008 mips GNU/Linux) 中編譯的,比較不會有版本的問題,但編譯時要耐心等候.
現在在研究lirc-0.8.5支援ftdi紅外線發射接收,編譯時也發生了問題,目前還在瓶頸中.
gcc -O2 -g -Wall -o .libs/irrecord irrecord.o config_file.o dump_config.o input_map.o libhw_module.a /opt/lib/libftdi.so -L/opt/lib -lusb -Wl,--rpath -Wl,/usr/local/lib
libhw_module.a(hw_ftdi.o): In function `hwftdi_send':
/tmp/mnt/disc1_1/source/lirc/lirc/daemons/hw_ftdi.c:457: undefined reference to `init_send'
/tmp/mnt/disc1_1/source/lirc/lirc/daemons/hw_ftdi.c:463: undefined reference to `send_buffer'
collect2: ld returned 1 exit status
make[3]: *** [irrecord] Error 1
make[3]: Leaving directory `/tmp/mnt/disc1_1/source/lirc/lirc/daemons'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/mnt/disc1_1/source/lirc/lirc/daemons'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/mnt/disc1_1/source/lirc/lirc'
make: *** [all] Error 2
懇請高人指點,謝謝!
離線